ORA-12154: TNS:could not resolve service name [message #584358] |
Mon, 13 May 2013 06:26 |
Hossain
Messages: 11 Registered: October 2004 Location: Dhaka
|
Junior Member |
|
|
Hi Experts,
I have overwritten tnsnames.ora file with newone. In new tnsnames.ora file I have added new host string, remaining all unchanged.
after that, when trying to connect using sqlplus(from windows machine, sqlplusw.exe), working fine. But when trying to connect through putty getting error.
ORA-12154: TNS:could not resolve service name
for the same reason my scheduled cron tab can not run export backup. cron tab error is
EXP-00056: ORACLE error 12154 encountered
ORA-12154: TNS:could not resolve service name
EXP-00000: Export terminated unsuccessfully
I am suspecting problem may be due to file accessing permission related issue. But cant solve it. Current tnsnames.ora files permission is
# ls -l admin
total 112
-rw-r--r-- 1 oracle oinstall 14661 Apr 26 2002 libnk59.exp
-rw-r--r-- 1 oracle oinstall 643 Apr 26 2002 libnk59.imp
-rw-r--r-- 1 oracle oinstall 5728 Apr 26 2002 libnrad9.exp
-rw-r--r-- 1 oracle oinstall 405 Apr 26 2002 libnrad9.imp
-rw-r--r-- 1 oracle oinstall 932 Jan 24 2008 listener.ora
drwxr-xr-x 2 oracle oinstall 256 Jan 21 2008 samples
-rw-r--r-- 1 oracle oinstall 130 Mar 18 2002 shrept.lst
-rw-r--r-- 1 oracle oinstall 24 Apr 29 2002 snmp_ro.ora
-rw-r----- 1 oracle oinstall 38 Oct 21 2010 sqlnet.ora
-rwxr-xr-x 1 oracle oinstall 1102 May 13 12:31 tnsnames.ora
Regards
Hossain
-
Attachment: error.GIF
(Size: 20.96KB, Downloaded 1993 times)
|
|
|
|
|
|
|
|