This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes oracle thin driver conection error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "oracle thin driver conection error" Watch "oracle thin driver conection error" New topic
Author

oracle thin driver conection error

praveen kanakarajan
Ranch Hand

Joined: Apr 27, 2005
Posts: 54
im getting this error when i try to connect oracle.

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

is it any compatibility problem bcos it has worked with oracle 8i earlier.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

More likely you don't have any permissions to connect to the instance you are trying to connect to.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Lars Vonk
Ranch Hand

Joined: Aug 05, 2005
Posts: 30
Hello,

The code you received 12514 is an ORA message. It means that the servicename given in the connect descriptor is not known by the TNS listener. Verify you entered the right name in the connect descriptor. Also check that that name exists in your tnsnames.ora

Lars
[ August 18, 2005: Message edited by: Lars Vonk ]
praveen kanakarajan
Ranch Hand

Joined: Apr 27, 2005
Posts: 54
thansk for the help.also i faced a problem after this.oracle was returning internal error which we had to solve by using the classes.zip and other file provided with oracle 9i (also heard there a work around for it but im not sure).This im mentioning bcos it may help someone someday
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: oracle thin driver conection error
 
Similar Threads
Configuration
Getting error like " Listener refused the connection with the following error: ORA-12514, ..."
ORA-12514: TNS:listener could not resolve SERVICE_NAME given?
can't connect to oracle database
ORA-12514 error