Can you help me with my database link problem please.
Something just went wrong here :(
You see, I have 2 10g DBs on both WIN2003 (ORCL, AND ORCL2).
On ORCL server I created a database link connecting to ORCL2.
I also make a connection test first, say:
At db server 1,
C:\> sqlplus scott/tiger@orcl (connected)
C:\> sqlplus scott/tiger@orcl2 (connected)
Connecting back to orcl (conn scott/tiger@orcl) I then create a db link:
SQL> create database link orcl2_lnk connect to scott identified by
tiger using 'orcl2';
SQL> select * from tab@orcl2_lnk;
select * from tab@orcl2_lnk
*
ERROR at line 1:
ORA-12154: TNS:could not resolve the connect identifier specified
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Of course hunnies I know that I have made several db link connections before, like 100s of times and this is my first time to fail
Tha fact that I can connect to orcl2 at sever1
C:\> sqlplus scott/tiger@orcl2 (connected)
means I have entry of orcl2 in the tnsnames.ora at server1
congratulations, you've just given everybody SCOTT's access rights, good luck on that security audit
Anyway, you have an issue with your networking, period. Either your tnsnames.ora file is messed up (most likely) or your listener.ora file is not listening correctly (less likely).
Bookmarks