Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Using remote database link

Re: Using remote database link

From: Joe <iets_at_iets.nl>
Date: Wed, 29 Sep 2004 10:07:34 +0200
Message-ID: <415a6d46$0$78772$e4fe514c@news.xs4all.nl>

> The tns service_name needs to be defined in tnsnames.ora *on the > database server* hosting the source database.

Hi I collected my data below (changes a domain into x for privacy) can anyone understand why it doesn't work?

This is what I use for the dblink:

create database link fmpro3 using 'LSRNO4.LSRNO0011S.x.y.z'

/

select count(*) from documentmemos_at_fmpro

/

this is the feedback from TOAD:

create database link fmpro3 using 'LSRNO'

External database created

select count(*) from documentmemos_at_fmpro

ORA-12154: TNS:could not resolve service name

This is my tnsnames.ora on the server:

lsrno_lsrno0010s.x.y.z =

(description =

(ADDRESS_LIST =

(address =

(community= tcp.x.y.z)

(protocol = tcp)

(host = lsrno0010s)

# (host = lsrno0010s.x.y.z)

(port = 1521)

)

)

(connect_data =

(sid = lsrno)

)

)

lsrno_lsrno0011s.x.y.z =

(description =

(ADDRESS_LIST =

(address =

(community= tcp.x.y.z)

(protocol = tcp)

(host = lsrno0011s)

# (host = lsrno0011s.x.y.z)

(port = 1521)

)

)

(connect_data =

(sid = lsrno)

)

)

lsrno_lsrno0012s.x.y.z =

(description =

(ADDRESS_LIST =

(address =

(community= tcp.x.y.z)

(protocol = tcp)

(host = lsrno0012s)

# (host = lsrno0012s.x.y.z)

(port = 1521)

)

)

(connect_data =

(sid = lsrno)

)

)

LSRNO11_4.X.Y.Z =
(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS =

(PROTOCOL = TCP)

(HOST = lsrno0011s)

(PORT = 1521)
)

)

(CONNECT_DATA =

(SERVICE_NAME = LSRNO4.LSRNO0011S.x.Y.Z)

)

) Received on Wed Sep 29 2004 - 03:07:34 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US