All Oracle Error Codes
Oracle DBA Forum

Frequent Oracle Errors

TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated


Mercadante, Thomas F


A slight correction:

The search order is
.5 A stray tnsnames.ora file somewhere directly in your path.  <=====
2. The Global Configuration Directory (e.g. /etc or /var/opt/oracle)
3. Then $ORACLE_HOME/network/admin

PS.. TNS_ADMIN is stricly optional. We don't use it. We rely on the
tnsnames.ora file to be in the $ORACLE_HOME/network/admin directory.

Tom Mercadante
Oracle Certified Professional

-----Original Message-----
From: Feighery, Raymond (RBS Insurance)
Sent: Thursday, November 04, 2004 11:19 AM
To: 'george.rusnak@(protected)
Subject: RE: TNS_ADMIN

The search order is
2. The Global Configuration Directory (e.g. /etc or /var/opt/oracle) 3. Then

I suspect you have a tnsnames.ora in /etc with no definition for your target


-----Original Message-----
From: Rusnak, George A. (SEC-Lee) CTR [mailto:george.rusnak@(protected)]
Sent: Thursday, November 04, 2004 3:59 PM
To: oracle-l@(protected)
Subject: TNS_ADMIN


HOST MACHINE: HP-UX B.11.11 U 9000/800
ORACLE : Oracle9i Enterprise Edition Rel. - 64 bit
TNSNAMES.ORA: ls -lai $ORACLE_HOME/network/admin/tnsnames.ora
              -rw-r--r--  1 oracle   dba    6546 Nov 3 13:11
rusnakga>unset TNS_ADMIN
SQL>   select count(*)
        from ses_army@(protected);
        from ses_army@(protected)
    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@(protected);


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 ?????


Al Rusnak
Oracle Certified Professional
DBA - CISIS, Computer Operations

* 804-734-8210
* george.rusnak@(protected)



Churchill Insurance Company Limited, registered in England with number
2258947, registered office Churchill Court, Westmoreland Road, Bromley,
Kent, BR1 1DP. Churchill Insurance Company Limited is authorised and
regulated by the Financial Services Authority and is a member of The Royal
Bank of Scotland Group.
This email is intended for the addressee only and may contain confidential,
proprietary or legally privileged information. If you are not the intended
recipient of this email you should notify us immediately and delete it. You
should not copy, print, distribute, disclose or use any part of it. We
reserve the right to monitor and record all electronic communications
through our networks. We cannot accept any liability for viruses
transmitted via this email once it has left our network.