Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does Oracle SQL Developer store connections?

I have an application that I can't get connected to my Oracle Database 11g Express Edition. I created a test database in this edition, and I can connect to the database fine using Oracle SQL Developer, create tables, views etc. However, I'm having a hard time getting connected via my application. Where is the connection information? In what file? I wanted to compare my connection info with what is set up in the SQL Explorer's file. I found all the *.ora files and renamed them to see if I could find what file (through the process of elimination) the connections were stored in, but I wasn't successful. Any help would be appreciated.

like image 740
Shane Avatar asked Oct 31 '11 14:10

Shane


People also ask

How do I save connections in SQL Developer?

(I am using Oracle SQL developer) 1) Go to View -> Connections 2) Right click on Connections -> Export Connections 3) Select the connections that you wish to export. Click Next. 3) Provide name to the file. Say export.


2 Answers

It was in a slightly different location for me than those listed above

\Users\[user]\AppData\Roaming\SQL Developer\system3.2.20.09.87\o.jdeveloper.db.connection.11.1.1.4.37.59.48\connections.xml 
like image 125
Dowlers Avatar answered Oct 16 '22 08:10

Dowlers


Assuming you have lost these while upgrading versions like I did, follow these steps to restore:

  1. Open SQL Developer
  2. Right click on Connections
  3. Chose Import Connections...
  4. Click Browse (should open to your SQL Developer directory)
  5. Drill down to "systemx.x.xx.xx" (replace x's with your previous version of SQL Developer)
  6. Find and drill into a folder that has ".db.connection." in it (for me, it was in o.jdeveloper.db.connection.11.1.1.4.37.59.48)
  7. select connections.xml and click open

You should then see the list of connections that will be imported

like image 21
iDurocher Avatar answered Oct 16 '22 07:10

iDurocher