Home » RDBMS Server » Server Administration » Database link 9i - RDB
Database link 9i - RDB [message #63554] Fri, 15 October 2004 04:52 Go to next message
Maarten
Messages: 9
Registered: October 2004
Junior Member
Hi,

I have got two databases; a Oracle 9.2.0.1.0 and a RDB (Oracle Rdb OCI Server Release 7.1.5.9.1 - Production, Level 1.7
Oracle Rdb SQL Release 7.1.0.4.0 - Production)

I want to compare the data of two tables, one in the 9i dbase and the other in RDB, so I created a db link in the 9i database as in

CREATE PUBLIC DATABASE LINK name_of_my_link
CONNECT to user_account IDENTIFIED BY password
USING 'this_instance';

but I get the error:

SQL> select * from all_tables@whsdata;
select * from all_tables@whsdata
                         *
ERROR at line 1:
ORA-12154: TNS:could not resolve service name

But I can start up a SQL session and log on to the RDB database without any problems, so tnsnames.ora is correct. Has anybody got an idea what could be wrong?

Thanks! Maarten.

 
Re: Database link 9i - RDB [message #63589 is a reply to message #63554] Tue, 19 October 2004 05:30 Go to previous messageGo to next message
Ankur
Messages: 22
Registered: August 2000
Junior Member
Please check the global_names parameter of the server on which you have created the database link.
If it is set to true the database link name should be same as the global_name of the remote database.
Re: Database link 9i - RDB [message #63590 is a reply to message #63589] Tue, 19 October 2004 05:49 Go to previous messageGo to next message
Ankur
Messages: 22
Registered: August 2000
Junior Member
Also using keyword should be followed by the remote database connect string and not this instance
Re: Database link 9i - RDB [message #63591 is a reply to message #63589] Tue, 19 October 2004 06:17 Go to previous message
Maarten
Messages: 9
Registered: October 2004
Junior Member
Ankur,

This tip solved the problem.

Thanks!

Maarten.
Previous Topic: SQLLDR
Next Topic: How to load table by datafile name?
Goto Forum:
  


Current Time: Mon Feb 03 13:39:19 CST 2025