Links
Home
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
Is there an Event for Capturing Oracle Errors in a Trace File?

Is there an Event for Capturing Oracle Errors in a Trace File?

2004-09-16       - By biti_rainy

Reply:     1     2     3     4  

hi,Andrew V Zitelli


the EVENT# like sqlcode ,for example

select count(*) from (select * from member order by member_level)
*
ERROR at line 1:
ORA-01652 (See ORA-01652.ora-code.com): unable to extend temp segment by 128 in tablespace FCPTEST

################
sqlcode = 1652
you can set event 1652
##########################


ALTER SESSION SET EVENTS '1652 trace name errorstack level 1 ';


or
alter system set events '1652 trace name errorstack level 1 ';
alter system set events '1652 trace name errorstack off ';


then generate the trace file

[oracle@(protected) udump]$ more ocndev_ora_15452.trc
/opt/oracle/admin/ocn/udump/ocndev_ora_15452.trc
Oracle9i Enterprise Edition Release 9.2.0.3.0 - Production
JServer Release 9.2.0.3.0 - Production
ORACLE_HOME = /opt/oracle/products/9.2.0
System name: Linux
Node name: oradev
Release: 2.4.9-e.3
Version: #1 Fri May 3 17:02:43 EDT 2002
Machine: i686
Instance name: ocndev
Redo thread mounted by this instance: 1
Oracle process number: 15
Unix process pid: 15452, image: oracle@(protected) (TNS V1-V3)

*** SESSION ID:(85.639) 2004-08-24 17:50:19.030
*** 2004-08-24 17:50:19.030
ksedmp: internal or fatal error
ORA-01652 (See ORA-01652.ora-code.com): unable to extend temp segment by 128 in tablespace FCPTEST
Current SQL statement for this session:
select count(*) from (select * from alibaba.member order by member_level)
-- -- Call Stack Trace -- --
calling call entry argument values in hex
location type point (? means dubious value)
-- ---- ---- ---- -- -- ----- -- ---- ---- ---- -- -- ---- ---- ---- ---- -----
ksedmp()+269 call ksedst()+0 0 ? 0 ? 0 ? 0 ? 71417550 ?
70ECF9B8 ?
ksddoa()+446 call ksedmp()+0 1 ? AA703A8 ? 40622470 ?
674 ? 1 ? 406224D4 ?
ksdpcg()+521 call ksddoa()+0 40622470 ? AA703A8 ?
ksdpec()+220 call ksdpcg()+0 674 ? BFFE8D88 ? 1 ?
ksfpec()+133 call ksdpec()+0 674 ? 674 ? AA6D304 ?







Best regards

msn: biti_rainy@(protected)
a dba from alibaba(china)

---- from the mail-- --
>Is there an Oracle event that can be set, to capture the details of the
>database session 's errors in a trace file ? Use of Oracle event 10046
>provides only a simple indication that an error was raised, but does not
>provide details. For example:
>
> EXEC
>#1:c=10000,e=10498,p=0,cr=10,cu=9,mis=0,r=0,dep=0,og=4,tim=1526794508053
> ERROR #1:err=1 tim=156343757
>
>I would like to capture the error number (e.g. ORA-12345 (See ORA-12345.ora-code.com)) and pertinent
>text if possible. I do not require the entire error stack, simply the
>error as returned to a client application. Can anyone point me to details
>on an event like this? I am using Oracle 9.2 and 10.1 under Solaris.
>
>Kind regards,
>
>Andy Zitelli,
>Raytheon, Fullerton, CA
>
>--
>http://www.freelists.org/webpage/oracle-l
>
>.


????????????????


--
http://www.freelists.org/webpage/oracle-l