Strange problem with ORA-12154 from only one client
Hi all,
I have a strange problem.
I have three 11.2.0.1 databases on three different hosts.
For simplicity lets say:
Host1: database ovm1a
Host2: database ovm7a
Host3: database ovm8a
I have a database schema in all three databases named EHJ. In all three databases, there are fixed user
database links to the other databases. So EHJ in ovm1a has two links, one to ovm7a and one to ovm8a. The EHJ schema in ovm7a has two fixed user links to the EHJ schema in the ovm1a and ovm8a databases. And the same is true for the EHJ schema in the third database, ovm8a.
If I log into the EHJ schema for each of the three databases, I can successfully select over the database links. I've been using the SQL statement: select count(*) from user_users@dblink_name;
For each of the two links in each of the three databases, the query returns 1 so I know the database links are working properly and I have my networking setup properly.
Now, here is the weirdness.
I have an Oracle Application Server where our Oracle Forms and Reports run. The Oracle client on this install is 10.1.0.5. I've got a tnsnames.ora file setup on this Oracle App server to connect to all three databases ovm1a, ovm7a and ovm8a. I can successfully use the 10.2.0.5 client SQL*PLUS to connect to the EHJ schema in the ovms1, ovms7 and ovms8 databases.
However, (and only when) connected to the ovm1a database from this client, attempts to select over the link throw the famous error: ORA-12154: TNS:could not resolve the connect identifier specified
This error happens with both links in the ovm1a database when connected via this one client.
BUT, if I connect using the same 10.1.0.5 client to the EHJ schema in the ovm7a or ovm8a databases, the database links in those two databases are working just fine.
I'm pulling my hair out trying to figure this out.
I've tried using SQL*PLUS from my desktop machine (10g R2 client) connecting to the EHJ schema on all three databases and the db links all work fine.
Any help in trying to troubleshoot this would be greatly appreciated.
Cheers