errorstack使用

尛樣兒發表於2010-05-03

[oracle@blliu oradata]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.5.0 - Production on Mon May 3 01:39:20 2010

Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL>
SQL>
SQL>
SQL> alter session set events ='903 trace name errorstack level 3';

Session altered.

SQL> create table 1test (id number);
create table 1test (id number)
             *
ERROR at line 1:
ORA-00903: invalid table name


SQL> oradebug setmypid
Statement processed.
SQL> oradebug tracefile_name
/u01/app/oracle/db_1/rdbms/log/test_ora_15539.trc
SQL> !vi /u01/app/oracle/db_1/rdbms/log/test_ora_15539.trc

*** ACTION NAME:() 2010-05-03 01:41:09.535
*** MODULE NAME:(
(TNS V1-V3)) 2010-05-03 01:41:09.535
*** SERVICE NAME:(SYS$USERS) 2010-05-03 01:41:09.535
*** SESSION ID:(39.299) 2010-05-03 01:41:09.535
*** 2010-05-03 01:41:09.535
ksedmp: internal or fatal error
ORA-00903: invalid table name
Current SQL statement for this session:
create table 1test (id number)
----- Call Stack Trace -----
calling              call     entry                argument values in hex
location             type     point                (? means dubious value)

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23135684/viewspace-661806/,如需轉載,請註明出處,否則將追究法律責任。

相關文章