9i client tnsping error 2004-02-18 - By Guang Mei
Hi:
I found the problem. The problem was that I did not specify env TNS_ADMIN in
my .profile so oracle would look at
/var/opt/oracle directory first, which happen to have some old sqlnet.ora
and tnsnames.ora.
After I added the correct TNS_ADMIN in my .profile all works fine now.
Guang
-- --Original Message-- --
From: oracle-l-bounce@(protected)
[mailto:oracle-l-bounce@(protected)]On Behalf Of QuijadaReina, Julio C
Sent: Wednesday, February 18, 2004 3:36 PM
To: oracle-l@(protected)
Subject: RE: 9i client tnsping error
Guang,
Try using full tnsname NPD.INCYTE.COM when tnsping 'ing.
Does that work for you?
Julio Cesar Quijada-Reina
Programmer Analyst
Computer Services at Alfred State College
-- --Original Message-- --
From: oracle-l-bounce@(protected)
[mailto:oracle-l-bounce@(protected)] On Behalf Of Guang Mei
Sent: Wednesday, February 18, 2004 2:18 PM
To: Oracle-L-freelists
Subject: 9i client tnsping error
Hi:
I have just installed oracle client 9.2.0.1.0 on one unix box (called
curly), and I am trying to connect to an oracle 8173 server (on another
unix
box, called rex). During the installastion, the net service part had
test
successful and it installed sqlnet.ora and tnsnames.ora automatically.
The files are those:
curly$ cat sqlnet.ora
# SQLNET.ORA Network Configuration File:
/oracle/product/9.2.0.1.0/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DEFAULT_DOMAIN = incyte.com
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
curly$ cat tnsnames.ora
# TNSNAMES.ORA Network Configuration File:
/oracle/product/9.2.0.1.0/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
NPD.INCYTE.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = rex)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = NPD)
)
)
ping is working ok,
but tnsping is not working:
curly$ tnsping NPD
TNS Ping Utility for Solaris: Version 9.2.0.1.0 - Production on
18-FEB-2004
14:09:02
Copyright (c) 1997 Oracle Corporation. All rights reserved.
Used parameter files:
/oracle/product/9.2.0.1.0/network/admin/sqlnet.ora
TNS-03505: Failed to resolve name
-- If I do sqlplus user/password@(protected), I will get:
SQL*Plus: Release 9.2.0.1.0 - Production on Wed Feb 18 14:11:18 2004
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
ERROR:
ORA-12154 (See ORA-12154.ora-code.com): TNS:could not resolve service name
-- looking at sqlnet.log:
curly$ more sqlnet.log
***********************************************************************
Fatal NI connect error 12545, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=beq)(PROGRAM=/oracle/product/9.2.0.1.0/b
in/o
racle)(ARGV0=oracle)(AR
GS= '(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq))) ')(DETACH=NO))(CONN
ECT_
DATA=(CID=(PROGRAM=)(HOS
T=curly)(USER=oracle))))
VERSION INFORMATION:
TNS for Solaris: Version 9.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for Solaris: Version
9.2.0.1.0 -
Production
Time: 18-FEB-2004 14:11:19
Tracing not turned on.
Tns error struct:
nr err code: 0
ns main err code: 12545
TNS-12545: Connect failed because target host or object does not
exist
ns secondary err code: 12560
nt main err code: 515
TNS-00515: Connect failed because target host or object does not
exist
nt secondary err code: 2
nt OS err code: 0
I have done client installation before and never had this kind of
situation.
ANy idea what could be the problem?
TIA.
Guang
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe send email to: oracle-l-request@(protected)
put 'unsubscribe ' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe send email to: oracle-l-request@(protected)
put 'unsubscribe ' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe send email to: oracle-l-request@(protected)
put 'unsubscribe ' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
|
|