Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

database link issue

Status
Not open for further replies.

maswien

Technical User
Sep 24, 2003
1,286
CA

I created database link in a oracle 10g database to connect to a oracle 9i database, when I access the tables from these link, it keeps giving me the error like :

ORA-12154: TNS:could not resolve the connect identifier specified


Any idea?
 

The same create database link SQL statement works in the 9i database, I mean I can query the link created with the same statement in a 9i database, but not in a 10g database.
 
Make sure the names in the TNSNAMES file are consistent with those in the link script where the link is created.

-------------------------
The trouble with doing something right the first time is that nobody appreciates how difficult it was - Steven Wright
 

I checked the tnsnames.ora and listener.ora, I started 10g listener using lsnrctl, I run command 'status' then I got list of databases, I found this list is not stable, at beginning one or two 9i database are missing, then after while I run status I can see they appear! then the database link works!

Why that happen?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top