Re: db link

  • From: Mindaugas Navickas <mnavickas@xxxxxxxxx>
  • To: Brian.Zelli@xxxxxxxxxxxxxxx, "oracle-l@xxxxxxxxxxxxx" <oracle-l@xxxxxxxxxxxxx>
  • Date: Thu, 29 Oct 2009 10:50:04 -0700 (PDT)

Brian,

I would try to create a DBlink with full TNS definition - to see if it's 
working - e.g.

Create public database link "LIMS_TO_ERT" connect to "XXX"  identified by 
"XXXXX"  
using '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL = TCP)(HOST=xxxxxxx)(PORT 
= 1521))) (CONNECT_DATA= (SID=dbsid) ) )'

I know, it doesn't answer your question - why tns address is not read from 
tnsnames.ora, however above can serve as a workaround.

Regards
Mike Navickas
Oracle&DB2 DBA




________________________________
From: "Zelli, Brian" <Brian.Zelli@xxxxxxxxxxxxxxx>
To: "oracle-l@xxxxxxxxxxxxx" <oracle-l@xxxxxxxxxxxxx>
Sent: Thu, October 29, 2009 12:35:09 PM
Subject: db link


I'm creating a link:
 
  1  Create public database link "LIMS_TO_ERT" connect to "XXX"
  2  identified by "XXXXX"
  3  using 'PRODERT.ROSWELLPARK.ORG'
 
it tells me the link is created, yet when I try and access thru the link I get:
 
SQL> desc rpci.ert_lims_iface@lims_to_ert;
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
 
I have the PRODERT.ROSWELLPARK.ORG in my tnsnames and I can connect with 
sqlplus to that db.  So what's wrong?  All we did was move the database to a 
new server. 
 
ciao,
Brian
 
This email message may contain legally privileged and/or confidential 
information. If you are not the intended recipient(s), or the employee or agent 
responsible for the delivery of this message to the intended recipient(s), you 
are hereby notified that any disclosure, copying, distribution, or use of this 
email message is prohibited. If you have received this message in error, please 
notify the sender immediately by e-mail and delete this email message from your 
computer. Thank you.
  • References:

Other related posts: