Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vendor code 17002 to connect to SQLDeveloper [closed]

I'm trying to connect to a database using SQLDeveloper and I get the following error:

An Error was Encountered performing The requested operation:  IO Error: Conection reset  Vendor code 17002. 

Could you please help me?

like image 866
Gutenberg Avatar asked Jan 15 '13 15:01

Gutenberg


People also ask

How do I fix vendor code 17002?

First check the tnsnames. ora file and ensure that it points to the correct server and port. If the Forms server is on another machine, test the TNS resolve with tnsping from the command prompt. Finally, check the listener.

Where are sqldeveloper connections stored?

It is stored in a file called connections. xml under \Users[User]\AppData\Roaming\SQL Developer\System\ When i renamed the file, all my connection info went away. I renamed it back, and it all came back.


2 Answers

Listed are the steps that could rectify the error:

  1. Press Windows+R
  2. Type services.msc and strike Enter
  3. Find all services starting with ora start these services and wait!!
  4. When your server specific service is initialized (in my case it was orcl)
  5. Now run mysql or whatever you are using and start coding.P
like image 155
Wajid Hussain Siddiqi Avatar answered Oct 05 '22 23:10

Wajid Hussain Siddiqi


I encountered same problem with ORACLE 11G express on Windows. After a long time waiting I got the same error message.

My solution is to make sure the hostname in tnsnames.ora (usually it's not "localhost") and the default hostname in sql developer(usually it's "localhost") same. You can either do this by changing it in the tnsnames.ora, or filling up the same in the sql developer.

Oh, of course you need to reboot all the oracle services (just to be safe).

Hope it helps.


I came across the similar problem again on another machine, but this time above solution doesn't work. After some trying, I found restarting all the oracle related services can fix the problem. Originally when the installation is done, connection can be made. Somehow after several reboot of computer, there is problem. I change all the oracle services with start time as auto. And once I could not connect, I restart them all over again (the core service should be restarted at last order), and works fine.

Some article says it might be due to the MTS problem. Microsoft's problem. Maybe!

like image 33
luckyfish Avatar answered Oct 06 '22 00:10

luckyfish