使用10046

 

 

 

[oracle@Srv02 ~]$ sqlplus sys/321@qxptfh01 as sysdba
[uniread] Loaded history (930 lines)

SQL*Plus: Release 10.2.0.5.0 - Production on Thu Dec 4 12:04:25 2014

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> alter session set events '10046 trace name context forever,level 12';

Session altered.

SQL> select * from t1;

    DEPTNO DNAME          LOC
---------- -------------- -------------
        10 ACCOUNTING     NEW YORK
        20 RESEARCH       DALLAS
        30 SALES          CHICAGO
        40 OPERATIONS     BOSTON

SQL> oradebug setmypid
Statement processed.
SQL> oradebug tracefile_name
/u01/app/oracle/admin/qxptfh01/udump/qxptfh01_ora_25745.trc
SQL> alter session set events '10046 trace name context off';

Session altered.

SQL> 

[oracle@Srv02 udump]$ more /u01/app/oracle/admin/qxptfh01/udump/qxptfh01_ora_25745.trc
/u01/app/oracle/admin/qxptfh01/udump/qxptfh01_ora_25745.trc
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORACLE_HOME = /u01/app/oracle/product/db_1
System name:    Linux
Node name:      Srv02.csyinhua.com
Release:        2.6.18-238.el5
Version:        #1 SMP Sun Dec 19 14:22:44 EST 2010
Machine:        x86_64
Instance name: qxptfh01
Redo thread mounted by this instance: 1
Oracle process number: 15
Unix process pid: 25745, image: oracle@Srv02.csyinhua.com

*** 2014-12-04 12:05:23.063
*** ACTION NAME:() 2014-12-04 12:05:23.063
*** MODULE NAME:(sqlplus@Srv02.csyinhua.com (TNS V1-V3)) 2014-12-04 12:05:23.063
*** SERVICE NAME:(qxptfh01) 2014-12-04 12:05:23.063
*** SESSION ID:(1075.2383) 2014-12-04 12:05:23.063
WAIT #1: nam='SQL*Net message to client' ela= 2 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1384439377991442
WAIT #1: nam='SQL*Net message from client' ela= 6281389 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1384439384273299
=====================
PARSING IN CURSOR #1 len=16 dep=0 uid=0 oct=3 lid=0 tim=1384439384276830 hv=2245880055 ad='95df4900'
select * from t1
END OF STMT
PARSE #1:c=4000,e=3387,p=0,cr=0,cu=0,mis=1,r=0,dep=0,og=1,tim=1384439384276820
BINDS #1:
EXEC #1:c=0,e=82,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=1384439384277018
WAIT #1: nam='SQL*Net message to client' ela= 3 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1384439384277068
FETCH #1:c=0,e=177,p=0,cr=3,cu=0,mis=0,r=1,dep=0,og=1,tim=1384439384277295
WAIT #1: nam='SQL*Net message from client' ela= 632 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1384439384277993
WAIT #1: nam='SQL*Net message to client' ela= 1 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1384439384278070
FETCH #1:c=0,e=60,p=0,cr=1,cu=0,mis=0,r=3,dep=0,og=1,tim=1384439384278109
*** 2014-12-04 12:05:39.913
WAIT #1: nam='SQL*Net message from client' ela= 10168865 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1384439394447115
STAT #1 id=1 cnt=4 pid=0 pos=1 obj=94145 op='TABLE ACCESS FULL T1 (cr=4 pr=0 pw=0 time=159 us)'
WAIT #0: nam='SQL*Net message to client' ela= 7 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1384439394516979
WAIT #0: nam='SQL*Net message from client' ela= 7049946 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1384439401567012
WAIT #0: nam='SQL*Net message to client' ela= 2 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1384439401567217
*** 2014-12-04 12:06:00.616
WAIT #0: nam='SQL*Net message from client' ela= 13096989 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1384439414664312
WAIT #0: nam='SQL*Net message to client' ela= 3 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1384439414664482
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章