ORA-12154-Error while executing sql through database link [message #66529] |
Tue, 23 July 2002 21:37 |
Sanjay R
Messages: 1 Registered: July 2002
|
Junior Member |
|
|
I am having problems accessing tables using database link. I would be highly obliged if you help me resolve it.
I am trying to create a database link from my windows 2000 professional client to oracle 8i databases on HPUX.
I have two databases on two different servers and i need to access a table in one database from another database.
I have updated the tnsnames.ora on my local system with following entries
---
PPROD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = prd)(PORT = 1521))
(CONNECT_DATA =(SID = PROD))
)
NPROD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = dev)(PORT = 1522))
(CONNECT_DATA = (SID = CLONE))
)
---
I have created the database link using the following command:
create database link ofprod
connect to current_user
using 'PPROD';
when I execute the following command, I get an error:
SELECT * FROM jobcust_mapping@ofprod;
The error I encounter is
ERROR at line 1:
ORA-12154: TNS:could not resolve service name
Can you please help to how to resolve this problem.Is there any setting that I need to do at the server end. Is there anything that I need to check to ensure that the database link works.....
Thanks in advance
|
|
|
|
|
|