TNS-03505: Failed to resolve name [message #485802] |
Fri, 10 December 2010 01:19 |
abeer83
Messages: 5 Registered: February 2007
|
Junior Member |
|
|
Logged in as the oracle user if I issue a tnsping it works:
-bash-3.00$ tnsping mm70a
TNS Ping Utility for Solaris: Version 11.1.0.6.0 - Production on 10-DEC-2010 02:39:58
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
/export/home/oracle/product/11.1.0/db_3/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 149.235.72.31)(PORT = 1524)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = mm70a)))
OK (20 msec)
If I try the same from another user on the same server I get the following:
bash-3.00$ tnsping
TNS Ping Utility for Solaris: Version 11.1.0.6.0 - Production on 10-DEC-2010 02:37:48
Copyright (c) 1997, 2007, Oracle. All rights reserved.
TNS-03502: Insufficient arguments. Usage: tnsping <address> [<count>]
bash-3.00$ tnsping mm70a
TNS Ping Utility for Solaris: Version 11.1.0.6.0 - Production on 10-DEC-2010 02:39:40
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
/export/home/oracle/product/11.1.0/db_3/network/admin/sqlnet.ora
TNS-03505: Failed to resolve name
bash-3.00$
My .profile has the following:
PATH=/export/home/oracle/product/11.1.0/db_3/bin:/usr/sbin:/usr/bin
export PATH
export ORACLE_HOME=/export/home/oracle/product/11.1.0/db_3
export LD_LIBRARY_PATH=${ORACLE_HOME}/lib32:${ORACLE_HOME}/lib
tnsnames.ora:
MM70A =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 149.235.72.31)(PORT = 1524))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = mm70a)
)
)
sqlnet.ora:
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT,ONAMES, HOSTNAME)
LSNRCTL> status lsnr11g
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias lsnr11g
Version TNSLSNR for Solaris: Version 11.1.0.6.0 - Production
Start Date 10-DEC-2010 02:48:04
Uptime 0 days 0 hr. 0 min. 7 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /export/home/oracle/product/11.1.0/db_3/network/admin/listener.ora
Listener Log File /export/home/oracle/diag/tnslsnr/artcs1/lsnr11g/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=artcs1)(PORT=1524)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "cs11gsol" has 1 instance(s).
Instance "cs11gsol", status UNKNOWN, has 1 handler(s) for this service...
Service "mm70a" has 1 instance(s).
Instance "mm70a", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL>
Any assistance would be greatly appreciated. I have looked and tried everything I can think of and still can't get it to work.
BTW, from the client I can log in using username/password if I set the sid in the env but username/password@SID does not work.
Thanks,
AI
|
|
|
|