QUOTE (burleson @ Mar 29 2012, 12:03 AM)

Hi Bob,
Invoke SQL*Plus from the OS command line "sqlplus fred@flintstone".
If this fails, check to ensure that your listener is the flintstone service defined
Also, bounce your listsner process:
lsnrctl stop
lsnrctl start
Listener bounced. The inline sql plus works and it seems to work as a DBA level user (names and spacing changed for formatting below:
SQL*Plus: Release 11.2.0.2.0 Production on Thu Mar 29 09:28:44 2012
Copyright © 1982, 2010, Oracle. All rights reserved.
SQL> connect / as sysdba
Connected.
SQL> select count(*) from abc.prdt_dtl_d@ADQA;
COUNT(*)
----------
20072
SQL> connect abc_qa_user/pwuser1
Connected.
SQL> select count(*) from abc.prdt_dtl_d@ADQA;
COUNT(*)
----------
20072
SQL> connect abc_qa_user/pw4ebim1@aaqa.oracle.abc.com
Connected.
SQL> select count(*) from abc.prdt_dtl_d@ADQA;
select count(*) from abc.prdt_dtl_d@ADQA
*
ERROR at line 1:
ORA-12154: TNS:could not resolve the connect identifier specified
Logging in as a DBA or another user, I can compile the procedures that use this link, within the abc_qa_user schema. I can call the view's that use that link with no error. Within this owning schema, it cannot compile it's own views and cannot call across either a public or private db link. It seems to also fail when connected
The issue doesn't seem to be being able to connect. The issue seems to be being able to call a db link, public or private, successfully. I've recreated the link and even createing a new basic user. Connect as owner, FROM the server, success. Connect as owner FROM the server but specify the connect descriptor, I connect fine, can see all objects but fail to use my own, or public, database link with the TNS error above. Very weird.
Bob