You've been given hints of what to do. Here's a more detailed answer; hopefully, it'll help.
Basically, every Oracle software product (I've worked with) has its own TNSNAMES.ORA
file. If you want to be able to connect to a new database, you have to enter it into each of those TNSNAMES.ORA
files. "6 files" means "6 edits" (or "1 edit + 5 copies") which means that have 6 exactly the same files.
In order to avoid that, use option which will let you to keep and maintain only one TNSNAMES.ORA
file. In order to do that, I'd suggest you to
- create a new directory (such as - on MS Windows -
c:\ora_library
)
- copy any of existing tnsnames.ora files in there
- edit its contents so that it contains all databases you are connecting to
- then create
tns_admin
environment variable. Again, on MS Windows (7):
- Start - right click "Computer" - Properties
- Advanced system settings
- Advanced tab - Environment variables button
- For System variables, create a new variable whose name is
tns_admin
and its value is directory you've previously created: c:\ora_library
If you check it on the command prompt, it looks like this:
C:\>set tns_admin
tns_admin=C:\ora_library
That's all; the next step is to test it. No matter which Oracle software you try, it should be able to establish connection.
From now on, any change you have to make should be done in the c:\ora_library\tnsnames.ora
file; disregard any other file (you can even delete them or rename to e.g. tnsnames.old
to avoid confusion).