Home » RDBMS Server » Networking and Gateways » Database Link Oracle 9i to Oracle 8i
Database Link Oracle 9i to Oracle 8i [message #67417] Mon, 12 July 2004 22:48 Go to next message
Atul P
Messages: 61
Registered: June 2003
Location: Mumbai-Jakarta
Member

Hi all

I need small help.

I am having two databases on is Oracle 8i and the other is Oracle 9i Release-2.

Now from Oracle 9i Database I wish to connect to Oracle 8i for some data.

I am trying to create a Database link for the same.I give the following command :

"create public database link 9ito8i connect to scott identified by tiger using 'ora8i';"

Also I have given the rights to create database link on 9i        and create session on 8i for respective users.

Howevere when i try to access data from 9i to 8i it gives me follwing error :

Command : Select * from scott.emp@9ito8i 

ERROR at line 1:
ORA-12154: TNS:could not resolve service name

Can anyone tell me what to do in this case.

On both Net8 is configured. Please as this is urgent. Thanks to all in advance

Regards

Atul P

 

 
Re: Database Link Oracle 9i to Oracle 8i [message #67418 is a reply to message #67417] Tue, 13 July 2004 00:34 Go to previous messageGo to next message
Daljit Singh
Messages: 290
Registered: October 2003
Location: Texas
Senior Member
Hi,

It seems that you are creating this link on a machine which is not the server means you are connected through a client machine with the server and trying to create the dblink. And that 'ora8i' net string is available at ur client machine basically it should be in your 9i server's TNS file.

To check this try to make a SQL connection from 9i server to ur 8i server using ur ora8i net string. If u get the same error then add this tns entry in 9i server TNS file OR while creating dblink instead of specifying the net service variable just paste the connect string.

Best Regards
Daljit Singh.
Re: Database Link Oracle 9i to Oracle 8i [message #67420 is a reply to message #67418] Tue, 13 July 2004 20:19 Go to previous messageGo to next message
Atul P
Messages: 61
Registered: June 2003
Location: Mumbai-Jakarta
Member

Thanks Mr Daljit singh.
That helps em a lot and saves a lto of my work.

Regards
Atul P
Re: Database Link Oracle 9i to Oracle 8i [message #67445 is a reply to message #67420] Wed, 28 July 2004 07:03 Go to previous messageGo to next message
Jose
Messages: 11
Registered: December 2001
Junior Member
Necesito saber como hacer un DB_LINK paso a paso para conectar dos bases de datos que estan en un mismo servidor
Re: Database Link Oracle 9i to Oracle 8i [message #67583 is a reply to message #67417] Fri, 29 October 2004 00:16 Go to previous messageGo to next message
sagar
Messages: 11
Registered: December 2000
Junior Member
You need to put entry in tnsname.ora file for the database you would like to access.

thanks
Sagar M.
Re: Database Link Oracle 9i to Oracle 8i [message #67679 is a reply to message #67417] Sat, 01 January 2005 07:57 Go to previous messageGo to next message
Ganesh
Messages: 31
Registered: November 2000
Member
hey help me plz
Re: Database Link Oracle 9i to Oracle 8i [message #67680 is a reply to message #67679] Sun, 02 January 2005 22:03 Go to previous message
Atul P
Messages: 61
Registered: June 2003
Location: Mumbai-Jakarta
Member

Yes Ganesh

what do you need .
Previous Topic: JVM_Bind:8080
Next Topic: Oracle 8 Installation Problem.
Goto Forum:
  


Current Time: Fri Nov 22 03:19:08 CST 2024