Home » RDBMS Server » Networking and Gateways » JDBC thin Exception (10g)
JDBC thin Exception [message #283904] Wed, 28 November 2007 06:55 Go to next message
wojtyla
Messages: 17
Registered: March 2005
Location: USA
Junior Member

While connecting to a 10g db i am getting this exception from jdbc .Can someone help me here

java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=169870080)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3678)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:352)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:365)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:547)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:347)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
Re: JDBC thin Exception [message #283911 is a reply to message #283904] Wed, 28 November 2007 07:01 Go to previous messageGo to next message
Mohammad Taj
Messages: 2412
Registered: September 2006
Location: Dubai, UAE
Senior Member

ORA-12505: TNS:listener does not currently know of SID given in connect descriptor

Cause: The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a SID for an instance (usually a database instance) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.

Action: - Wait a moment and try to connect a second time.

- Check which instances are currently known by the listener by executing: lsnrctl services <listener name>

- Check that the SID parameter in the connect descriptor specifies an instance known by the listener.

- Check for an event in the listener.log file.

Re: JDBC thin Exception [message #283936 is a reply to message #283911] Wed, 28 November 2007 07:34 Go to previous messageGo to next message
wojtyla
Messages: 17
Registered: March 2005
Location: USA
Junior Member

the oci client can connect to the database but thin cant
so i dont thnk it is a listner issue
Re: JDBC thin Exception [message #284055 is a reply to message #283936] Wed, 28 November 2007 12:07 Go to previous message
DreamzZ
Messages: 1666
Registered: May 2007
Location: Dreamzland
Senior Member
Check your 10g drivers for connectivity.Do you have updated drivers?

http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
Previous Topic: ora-12154
Next Topic: Solution to Oracle 9i TNS Listener crash on a Windows 2000 or Windows XP Pro configuration
Goto Forum:
  


Current Time: Tue Apr 16 08:14:41 CDT 2024