ORA-12154: TNS:could not resolve service name [message #66883] |
Thu, 27 February 2003 11:22 |
Bushan
Messages: 11 Registered: February 2003
|
Junior Member |
|
|
Hi , I am trying to use dblink feature for the first time.I have 2 Solaris boxes with Oracle8 Enterprise Edition Release 8.0.4.0.0 on both.
This is what I did,
On machine1:
step 1: Added the following lines to tnsnames.ora file
hnpis88_tcp_wg8 =
(DESCRIPTION =
ADDRESS = (PROTOCOL= TCP)(Host= hnpis88)(Port= 1521))
CONNECT_DATA = (SID = WG8))
)
step 2: Ran this script to create a db link
create public database link dblink29
connect to user identified by password
using 'hnpis88_tcp_wg8';
I got 'Database link created'.
step 3: I did the following query to test the db link,
SQL> select count(*) from tablename@dblink29;
I am getting the following error:
ORA-12154: TNS:could not resolve service name
Machine2 : This is what I have in machine2's tnsnames.ora file
HNPIS88_TCP_WG8 =
(DESCRIPTION =
ADDRESS = (PROTOCOL = TCP)(HOST = HNPIS88)(PORT =1521))
(CONNECT_DATA = (SID = WG8))
)
What am I doing wrong? Please help. Thanks.
|
|
|
|
|
|
Re: ORA-12154: TNS:could not resolve service name [message #66912 is a reply to message #66888] |
Tue, 11 March 2003 11:36 |
Bushan
Messages: 11 Registered: February 2003
|
Junior Member |
|
|
Hi , I think I have a problem with my listener. I checked for the listener status using 'lsnrctl status' it says 'The listener supports no services'. I am pretty sure I have an Oracle instance running on this machine. How can I make the listener support my Oracle instance? Thanks for your help in advance.
|
|
|
|