Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: TNS_ADMIN
Hi,
Al,
The order should be this :
I think you may have a stray tnsnames.ora in your /etc directory.
Cheers,
Mike
-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of Rusnak, George A.
(SEC-Lee) CTR
Sent: 04 November 2004 15:59
To: oracle-l_at_freelists.org
Subject: TNS_ADMIN
Group,
HOST MACHINE: HP-UX B.11.11 U 9000/800
ORACLE : Oracle9i Enterprise Edition Rel. 9.2.0.5.0 - 64 bit
LISTENER: Version 10.1.0.2.0
TNSNAMES.ORA: ls -lai $ORACLE_HOME/network/admin/tnsnames.ora
-rw-r--r-- 1 oracle dba 6546 Nov 3 13:11/opt/oracle/product/9.2.0/network/admin/tnsnames.ora PROBLEM:
from ses_army_at_csucmis; from ses_army_at_csucmis * ERROR at line 2: ORA-12154: TNS:could not resolve service name
rusnakga>export TNS_ADMIN=$ORACLE_HOME/network/admin SQL> select count(*)
from ses_army_at_csucmis;
COUNT(*) ---------- 3
QUESTION:
The tnsnames.ora is in the default location and it is not found until
TNS_ADMIN is set. How do I find out where TNS_ADMIN is pointing at the
system level, if there is such a thing ? Why do I have to set TNS_ADMIN at
the session level ?????
TIA,
Al Rusnak
Oracle Certified Professional
DBA - CISIS, Computer Operations
-- http://www.freelists.org/webpage/oracle-l ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ -- http://www.freelists.org/webpage/oracle-l ******************************************************************************************** E mail Disclaimer You agree that you have read and understood this disclaimer and you agree to be bound by its terms. The information contained in this e-mail and any files transmitted with it (if any) are confidential and intended for the addressee only. If you have received this e-mail in error please notify the originator. This e-mail and any attachments have been scanned for certain viruses prior to sending but CE Electric UK Funding Company nor any of its associated companies from whom this e-mail originates shall be liable for any losses as a result of any viruses being passed on. No warranty of any kind is given in respect of any information contained in this e-mail and you should be aware that that it might be incomplete, out of date or incorrect. It is therefore essential that you verify all such information with us before placing any reliance upon it. CE Electric UK Funding Company Lloyds Court 78 Grey Street Newcastle upon Tyne NE1 6AF Registered in England and Wales: Number 3476201 ******************************************************************************************** -- http://www.freelists.org/webpage/oracle-lReceived on Tue Nov 09 2004 - 05:38:07 CST
![]() |
![]() |