trace session

trace session
scott @ORCL >   alter  session  set  sql_trace = true;

会话已更改。

scott
@ORCL >    select  c.value  ||   ' / '   ||  d.instance_name  ||
  
2                       ' _ora_ '   ||  a.spid  ||   ' .trc '  trace
  
3      from  v$process a, v$session b, v$parameter c, v$instance d
  
4     where  a.addr  =  b.paddr
  
5       and  b.audsid  =  userenv( ' sessionid ' )
  
6       and  c.name  =   ' user_dump_dest '
  
7    /

TRACE
-- ------------------------------------------------------------------------------
--
------------------
D:\ORACLE\PRODUCT\ 10.2 . 0 \ADMIN\ORCL\UDUMP / orcl_ora_2444.trc

scott
@ORCL >  host tkprof  ' D:\ORACLE\PRODUCT\10.2.0\ADMIN\ORCL\UDUMP/orcl_ora_2444
.trc
'
output 
=  d:\test. log

TKPROF: Release 
10.2 . 0.1 . 0   -  Production  on  星期一 4月  6   11 : 43 : 56   2009

Copyright (c) 
1982 2005 , Oracle.   All  rights reserved.


scott
@ORCL >

scott @ORCL >   select   *   from  scott.emp;
scott
@ORCL >  host tkprof  ' D:\ORACLE\PRODUCT\10.2.0\ADMIN\ORCL\UDUMP/
.trc
'
output 
=  d:\test. log

TKPROF: Release 
10.2 . 0.1 . 0   -  Production  on  星期一 4月  6   11 : 47 : 24   20

Copyright (c) 
1982 2005 , Oracle.   All  rights reserved.



scott
@ORCL >

output content :    test.log

TKPROF: Release 
10.2 . 0.1 . 0   -  Production  on  星期一 4月  6   11 : 47 : 24   2009

Copyright (c) 
1982 2005 , Oracle.   All  rights reserved.

Trace 
file : D:\ORACLE\PRODUCT\ 10.2 . 0 \ADMIN\ORCL\UDUMP / orcl_ora_2444.trc
Sort options: 
default

********************************************************************************
count      =   number   of  times OCI  procedure  was executed
cpu      
=  cpu time  in  seconds executing 
elapsed  
=  elapsed time  in  seconds executing
disk       =   number   of  physical reads  of  buffers  from   disk
query    
=   number   of  buffers gotten  for  consistent  read
current    =   number   of  buffers gotten  in   current  mode (usually  for   update )
rows     
=   number   of  rows processed  by  the  fetch   or   execute  call
********************************************************************************

alter  session  set  sql_trace = true


call     
count        cpu    elapsed        disk       query     current         rows
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse         0        0.00         0.00            0            0            0             0
Execute        1        0.00         0.00            0            0            0             0
Fetch          0        0.00         0.00            0            0            0             0
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
total         1        0.00         0.00            0            0            0             0

Misses 
in  library cache during parse:  0
Misses 
in  library cache during  execute 1
Optimizer mode: ALL_ROWS
Parsing 
user  id:  54   
********************************************************************************

BEGIN  DBMS_OUTPUT.GET_LINES(:LINES, :NUMLINES);  END ;


call     
count        cpu    elapsed        disk       query     current         rows
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse         3        0.00         0.00            0            0            0             0
Execute        3        0.00         0.00            0            0            0             3
Fetch          0        0.00         0.00            0            0            0             0
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
total         6        0.00         0.00            0            0            0             3

Misses 
in  library cache during parse:  0
Optimizer mode: ALL_ROWS
Parsing 
user  id:  54   
********************************************************************************

select   text  
from
 
view where  rowid = : 1


call     
count        cpu    elapsed        disk       query     current         rows
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse         4        0.00         0.00            0            0            0             0
Execute        4        0.00         0.01            0            0            0             0
Fetch          4        0.00         0.00            0            8            0             4
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
total        12        0.00         0.01            0            8            0             4

Misses 
in  library cache during parse:  1
Misses 
in  library cache during  execute 1
Optimizer mode: CHOOSE
Parsing 
user  id: SYS   (recursive depth:  1 )

Rows     Row Source Operation
-- -----  ---------------------------------------------------
       1    TABLE  ACCESS  BY   USER  ROWID  VIEW $ (cr = 1  pr = 0  pw = 0  time = 44  us)

********************************************************************************

select   /**/ /*+ rule */  bucket_cnt, row_cnt, cache_cnt, null_cnt,  timestamp #, 
  sample_size, minimum, maximum, distcnt, lowval, hival, density, col#, 
  spare1, spare2, avgcln 
from
 hist_head$ 
where  obj# = : 1   and  intcol# = : 2


call     
count        cpu    elapsed        disk       query     current         rows
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse         2        0.00         0.00            0            0            0             0
Execute       22        0.00         0.05            0            0            0             0
Fetch         22        0.00         0.00            1           65            0            21
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
total        46        0.00         0.05            1           65            0            21

Misses 
in  library cache during parse:  1
Misses 
in  library cache during  execute 1
Optimizer mode: 
RULE
Parsing 
user  id: SYS   (recursive depth:  2 )

Rows     Row Source Operation
-- -----  ---------------------------------------------------
       0    TABLE  ACCESS  BY   INDEX  ROWID HIST_HEAD$ (cr = 2  pr = 0  pw = 0  time = 89  us)
      
0     INDEX  RANGE SCAN I_HH_OBJ#_INTCOL# (cr = 2  pr = 0  pw = 0  time = 64  us)(object id  257 )

********************************************************************************

 
select  c.value  ||   ' / '   ||  d.instance_name  ||
                   
' _ora_ '   ||  a.spid  ||   ' .trc '  trace
  
from  v$process a, v$session b, v$parameter c, v$instance d
 
where  a.addr  =  b.paddr
   
and  b.audsid  =  userenv( ' sessionid ' )
   
and  c.name  =   ' user_dump_dest '

call     
count        cpu    elapsed        disk       query     current         rows
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse         1        0.04         0.06            0            0            0             0
Execute        1        0.00         0.00            0            0            0             0
Fetch          2        0.01         0.01            0            0            0             1
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
total         4        0.06         0.07            0            0            0             1

Misses 
in  library cache during parse:  1
Optimizer mode: ALL_ROWS
Parsing 
user  id:  54   

Rows     Row Source Operation
-- -----  ---------------------------------------------------
       1   HASH  JOIN   (cr = 0  pr = 0  pw = 0  time = 11814  us)
   
1381    MERGE  JOIN  CARTESIAN (cr = 0  pr = 0  pw = 0  time = 25753  us)
      
1     MERGE  JOIN  CARTESIAN (cr = 0  pr = 0  pw = 0  time = 1909  us)
      
1      MERGE  JOIN  CARTESIAN (cr = 0  pr = 0  pw = 0  time = 1606  us)
      
1       MERGE  JOIN  CARTESIAN (cr = 0  pr = 0  pw = 0  time = 1456  us)
      
1        HASH  JOIN   (cr = 0  pr = 0  pw = 0  time = 1284  us)
      
1         NESTED LOOPS  (cr = 0  pr = 0  pw = 0  time = 357  us)
      
1          FIXED  TABLE   FULL  X$KSUSE (cr = 0  pr = 0  pw = 0  time = 296  us)
      
1          FIXED  TABLE  FIXED  INDEX  X$KSLED (ind: 2 ) (cr = 0  pr = 0  pw = 0  time = 23  us)
     
19         FIXED  TABLE   FULL  X$KSUPR (cr = 0  pr = 0  pw = 0  time = 167  us)
      
1        BUFFER SORT (cr = 0  pr = 0  pw = 0  time = 106  us)
      
1         FIXED  TABLE   FULL  X$QUIESCE (cr = 0  pr = 0  pw = 0  time = 25  us)
      
1       BUFFER SORT (cr = 0  pr = 0  pw = 0  time = 84  us)
      
1        FIXED  TABLE   FULL  X$KVIT (cr = 0  pr = 0  pw = 0  time = 32  us)
      
1      BUFFER SORT (cr = 0  pr = 0  pw = 0  time = 237  us)
      
1       FIXED  TABLE   FULL  X$KSUXSINST (cr = 0  pr = 0  pw = 0  time = 181  us)
   
1381     BUFFER SORT (cr = 0  pr = 0  pw = 0  time = 11807  us)
   
1381      FIXED  TABLE   FULL  X$KSPPCV (cr = 0  pr = 0  pw = 0  time = 9681  us)
      
1    FIXED  TABLE   FULL  X$KSPPI (cr = 0  pr = 0  pw = 0  time = 1210  us)

********************************************************************************

select  obj#,type#,ctime,mtime,stime,status,dataobj#,flags,oid$, spare1, 
  spare2 
from
 obj$ 
where  owner# = : 1   and  name = : 2   and  namespace = : 3   and  remoteowner  is   null  
  
and  linkname  is   null   and  subname  is   null


call     
count        cpu    elapsed        disk       query     current         rows
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse         1        0.00         0.00            0            0            0             0
Execute        1        0.00         0.00            0            0            0             0
Fetch          1        0.00         0.00            0            3            0             1
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
total         3        0.00         0.00            0            3            0             1

Misses 
in  library cache during parse:  1
Misses 
in  library cache during  execute 1
Optimizer mode: CHOOSE
Parsing 
user  id: SYS   (recursive depth:  1 )

Rows     Row Source Operation
-- -----  ---------------------------------------------------
       1    TABLE  ACCESS  BY   INDEX  ROWID OBJ$ (cr = 3  pr = 0  pw = 0  time = 101  us)
      
1     INDEX  RANGE SCAN I_OBJ2 (cr = 2  pr = 0  pw = 0  time = 55  us)(object id  37 )

********************************************************************************

select  t.ts#,t. file #,t.block#,nvl(t.bobj#, 0 ),nvl(t.tab#, 0 ),t.intcols,
  nvl(t.clucols,
0 ),t.audit$,t.flags,t.pctfree$,t.pctused$,t.initrans,
  t.maxtrans,t.rowcnt,t.blkcnt,t.empcnt,t.avgspc,t.chncnt,t.avgrln,
  t.analyzetime,t.samplesize,t.cols,t.property,nvl(t.degree,
1 ),
  nvl(t.instances,
1 ),t.avgspc_flb,t.flbcnt,t.kernelcols,nvl(t.trigflag,  0 ),
  nvl(t.spare1,
0 ),nvl(t.spare2, 0 ),t.spare4,t.spare6,ts.cachedblk,ts.cachehit,
  ts.logicalread 
from
 tab$ t, tab_stats$ ts 
where  t.obj# =  : 1   and  t.obj#  =  ts.obj# ( + )


call     
count        cpu    elapsed        disk       query     current         rows
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse         1        0.00         0.00            0            0            0             0
Execute        1        0.00         0.00            0            0            0             0
Fetch          1        0.00         0.00            0            4            0             1
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
total         3        0.00         0.00            0            4            0             1

Misses 
in  library cache during parse:  1
Misses 
in  library cache during  execute 1
Optimizer mode: CHOOSE
Parsing 
user  id: SYS   (recursive depth:  1 )

Rows     Row Source Operation
-- -----  ---------------------------------------------------
       1   NESTED LOOPS  OUTER  (cr = 4  pr = 0  pw = 0  time = 149  us)
      
1     TABLE  ACCESS CLUSTER TAB$ (cr = 3  pr = 0  pw = 0  time = 79  us)
      
1      INDEX   UNIQUE  SCAN I_OBJ# (cr = 2  pr = 0  pw = 0  time = 33  us)(object id  3 )
      
0     TABLE  ACCESS  BY   INDEX  ROWID TAB_STATS$ (cr = 1  pr = 0  pw = 0  time = 37  us)
      
0      INDEX   UNIQUE  SCAN I_TAB_STATS$_OBJ# (cr = 1  pr = 0  pw = 0  time = 16  us)(object id  709 )

********************************************************************************

select  i.obj#,i.ts#,i. file #,i.block#,i.intcols,i.type#,i.flags,i.property,
  i.pctfree$,i.initrans,i.maxtrans,i.blevel,i.leafcnt,i.distkey,i.lblkkey,
  i.dblkkey,i.clufac,i.cols,i.analyzetime,i.samplesize,i.dataobj#,
  nvl(i.degree,
1 ),nvl(i.instances, 1 ),i.rowcnt,mod(i.pctthres$, 256 ),
  i.indmethod#,i.trunccnt,nvl(c.unicols,
0 ),nvl(c.deferrable# + c.valid#, 0 ),
  nvl(i.spare1,i.intcols),i.spare4,i.spare2,i.spare6,decode(i.pctthres$,
null ,
  
null ,mod(trunc(i.pctthres$ / 256 ), 256 )),ist.cachedblk,ist.cachehit,
  ist.logicalread 
from
 ind$ i, ind_stats$ ist, (
select  enabled,  min (cols) unicols,
  
min (to_number(bitand(defer, 1 ))) deferrable#, min (to_number(bitand(defer, 4 ))) 
  valid# 
from  cdef$  where  obj# = : 1   and  enabled  >   1   group   by  enabled) c  where  
  i.obj#
= c.enabled( + and  i.obj#  =  ist.obj#( + and  i.bo# = : 1   order   by  i.obj#


call     
count        cpu    elapsed        disk       query     current         rows
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse         1        0.00         0.00            0            0            0             0
Execute        1        0.00         0.00            0            0            0             0
Fetch          2        0.01         0.03            1            8            0             1
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
total         4        0.01         0.04            1            8            0             1

Misses 
in  library cache during parse:  1
Misses 
in  library cache during  execute 1
Optimizer mode: CHOOSE
Parsing 
user  id: SYS   (recursive depth:  1 )

Rows     Row Source Operation
-- -----  ---------------------------------------------------
       1   SORT  ORDER   BY  (cr = 8  pr = 1  pw = 0  time = 34366  us)
      
1    HASH  JOIN   OUTER  (cr = 8  pr = 1  pw = 0  time = 34281  us)
      
1     NESTED LOOPS  OUTER  (cr = 5  pr = 0  pw = 0  time = 209  us)
      
1       TABLE  ACCESS CLUSTER IND$ (cr = 4  pr = 0  pw = 0  time = 99  us)
      
1        INDEX   UNIQUE  SCAN I_OBJ# (cr = 2  pr = 0  pw = 0  time = 37  us)(object id  3 )
      
0       TABLE  ACCESS  BY   INDEX  ROWID IND_STATS$ (cr = 1  pr = 0  pw = 0  time = 75  us)
      
0        INDEX   UNIQUE  SCAN I_IND_STATS$_OBJ# (cr = 1  pr = 0  pw = 0  time = 54  us)(object id  711 )
      
1      VIEW   (cr = 3  pr = 1  pw = 0  time = 33397  us)
      
1      SORT  GROUP   BY  (cr = 3  pr = 1  pw = 0  time = 33368  us)
      
1        TABLE  ACCESS  BY   INDEX  ROWID CDEF$ (cr = 3  pr = 1  pw = 0  time = 33222  us)
      
3         INDEX  RANGE SCAN I_CDEF2 (cr = 2  pr = 1  pw = 0  time = 33165  us)(object id  51 )

********************************************************************************

select  pos#,intcol#,col#,spare1,bo#,spare2 
from
 icol$ 
where  obj# = : 1


call     
count        cpu    elapsed        disk       query     current         rows
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse         1        0.00         0.00            0            0            0             0
Execute        1        0.00         0.00            0            0            0             0
Fetch          2        0.00         0.00            0            4            0             1
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
total         4        0.00         0.00            0            4            0             1

Misses 
in  library cache during parse:  1
Misses 
in  library cache during  execute 1
Optimizer mode: CHOOSE
Parsing 
user  id: SYS   (recursive depth:  1 )

Rows     Row Source Operation
-- -----  ---------------------------------------------------
       1    TABLE  ACCESS  BY   INDEX  ROWID ICOL$ (cr = 4  pr = 0  pw = 0  time = 65  us)
      
1     INDEX  RANGE SCAN I_ICOL1 (cr = 3  pr = 0  pw = 0  time = 45  us)(object id  40 )

********************************************************************************

select  name,intcol#,segcol#,type#,length,nvl( precision #, 0 ),decode(type#, 2 ,
  nvl(scale,
- 127 /**/ /*MAXSB1MINAL*/ ), 178 ,scale, 179 ,scale, 180 ,scale, 181 ,scale, 182 ,
  scale,
183 ,scale, 231 ,scale, 0 ), null $,fixedstorage,nvl(deflength, 0 ), default $,
  rowid,col#,property, nvl(charsetid,
0 ),nvl(charsetform, 0 ),spare1,spare2,
  nvl(spare3,
0
from
 col$ 
where  obj# = : 1   order   by  intcol#


call     
count        cpu    elapsed        disk       query     current         rows
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse         1        0.00         0.00            0            0            0             0
Execute        1        0.00         0.00            0            0            0             0
Fetch          9        0.00         0.00            0            3            0             8
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
total        11        0.00         0.00            0            3            0             8

Misses 
in  library cache during parse:  1
Misses 
in  library cache during  execute 1
Optimizer mode: CHOOSE
Parsing 
user  id: SYS   (recursive depth:  1 )

Rows     Row Source Operation
-- -----  ---------------------------------------------------
       8   SORT  ORDER   BY  (cr = 3  pr = 0  pw = 0  time = 189  us)
      
8     TABLE  ACCESS CLUSTER COL$ (cr = 3  pr = 0  pw = 0  time = 116  us)
      
1      INDEX   UNIQUE  SCAN I_OBJ# (cr = 2  pr = 0  pw = 0  time = 31  us)(object id  3 )

********************************************************************************

select  type#,blocks,extents,minexts,maxexts,extsize,extpct, user #,iniexts,
  NVL(lists,
65535 ),NVL(groups, 65535 ),cachehint,hwmincr, NVL(spare1, 0 ),
  NVL(scanhint,
0
from
 seg$ 
where  ts# = : 1   and   file # = : 2   and  block# = : 3


call     
count        cpu    elapsed        disk       query     current         rows
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse         2        0.00         0.00            0            0            0             0
Execute        2        0.00         0.00            0            0            0             0
Fetch          2        0.00         0.00            0            6            0             2
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
total         6        0.00         0.00            0            6            0             2

Misses 
in  library cache during parse:  1
Misses 
in  library cache during  execute 1
Optimizer mode: CHOOSE
Parsing 
user  id: SYS   (recursive depth:  1 )

Rows     Row Source Operation
-- -----  ---------------------------------------------------
       1    TABLE  ACCESS CLUSTER SEG$ (cr = 3  pr = 0  pw = 0  time = 71  us)
      
1     INDEX   UNIQUE  SCAN I_FILE#_BLOCK# (cr = 2  pr = 0  pw = 0  time = 27  us)(object id  9 )

********************************************************************************

select  o.owner#,o.name,o.namespace,o.remoteowner,o.linkname,o.subname,
  o.dataobj#,o.flags 
from
 obj$ o 
where  o.obj# = : 1


call     
count        cpu    elapsed        disk       query     current         rows
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse         1        0.00         0.00            0            0            0             0
Execute        1        0.00         0.00            0            0            0             0
Fetch          1        0.00         0.00            0            3            0             1
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
total         3        0.00         0.00            0            3            0             1

Misses 
in  library cache during parse:  1
Misses 
in  library cache during  execute 1
Optimizer mode: CHOOSE
Parsing 
user  id: SYS   (recursive depth:  1 )

Rows     Row Source Operation
-- -----  ---------------------------------------------------
       1    TABLE  ACCESS  BY   INDEX  ROWID OBJ$ (cr = 3  pr = 0  pw = 0  time = 63  us)
      
1     INDEX   UNIQUE  SCAN I_OBJ1 (cr = 2  pr = 0  pw = 0  time = 28  us)(object id  36 )

********************************************************************************

select  col#, grantee#, privilege#, max (mod(nvl( option $, 0 ), 2 )) 
from
 objauth$ 
where  obj# = : 1   and  col#  is   not   null   group   by  privilege#, col#, 
  grantee# 
order   by  col#, grantee#


call     
count        cpu    elapsed        disk       query     current         rows
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse         1        0.00         0.00            0            0            0             0
Execute        1        0.00         0.00            0            0            0             0
Fetch          1        0.00         0.00            0            2            0             0
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
total         3        0.00         0.00            0            2            0             0

Misses 
in  library cache during parse:  1
Misses 
in  library cache during  execute 1
Optimizer mode: CHOOSE
Parsing 
user  id: SYS   (recursive depth:  1 )

Rows     Row Source Operation
-- -----  ---------------------------------------------------
       0   SORT  GROUP   BY  (cr = 2  pr = 0  pw = 0  time = 141  us)
      
0     TABLE  ACCESS  BY   INDEX  ROWID OBJAUTH$ (cr = 2  pr = 0  pw = 0  time = 92  us)
      
0      INDEX  RANGE SCAN I_OBJAUTH1 (cr = 2  pr = 0  pw = 0  time = 72  us)(object id  103 )

********************************************************************************

select  grantee#,privilege#,nvl(col#, 0 ), max (mod(nvl( option $, 0 ), 2 ))
from
 objauth$ 
where  obj# = : 1   group   by  grantee#,privilege#,nvl(col#, 0 order   by  
  grantee#


call     
count        cpu    elapsed        disk       query     current         rows
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse         1        0.00         0.00            0            0            0             0
Execute        1        0.01         0.00            0            0            0             0
Fetch          1        0.00         0.00            0            2            0             0
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
total         3        0.01         0.00            0            2            0             0

Misses 
in  library cache during parse:  1
Misses 
in  library cache during  execute 1
Optimizer mode: CHOOSE
Parsing 
user  id: SYS   (recursive depth:  1 )

Rows     Row Source Operation
-- -----  ---------------------------------------------------
       0   SORT  GROUP   BY  (cr = 2  pr = 0  pw = 0  time = 109  us)
      
0     TABLE  ACCESS  BY   INDEX  ROWID OBJAUTH$ (cr = 2  pr = 0  pw = 0  time = 57  us)
      
0      INDEX  RANGE SCAN I_OBJAUTH1 (cr = 2  pr = 0  pw = 0  time = 35  us)(object id  103 )

********************************************************************************

select  con#,obj#,rcon#,enabled,nvl(defer, 0
from
 cdef$ 
where  robj# = : 1


call     
count        cpu    elapsed        disk       query     current         rows
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse         1        0.00         0.00            0            0            0             0
Execute        1        0.01         0.00            0            0            0             0
Fetch          2        0.00         0.00            0            3            0             1
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
total         4        0.01         0.01            0            3            0             1

Misses 
in  library cache during parse:  1
Misses 
in  library cache during  execute 1
Optimizer mode: CHOOSE
Parsing 
user  id: SYS   (recursive depth:  1 )

Rows     Row Source Operation
-- -----  ---------------------------------------------------
       1    TABLE  ACCESS  BY   INDEX  ROWID CDEF$ (cr = 3  pr = 0  pw = 0  time = 65  us)
      
1     INDEX  RANGE SCAN I_CDEF3 (cr = 2  pr = 0  pw = 0  time = 43  us)(object id  52 )

********************************************************************************

select   /**/ /*+ rule */  bucket, endpoint, col#, epvalue 
from
 histgrm$ 
where  obj# = : 1   and  intcol# = : 2   and  row# = : 3   order   by  bucket


call     
count        cpu    elapsed        disk       query     current         rows
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse         1        0.00         0.00            0            0            0             0
Execute        9        0.00         0.00            0            0            0             0
Fetch          9        0.00         0.00            0           27            0           158
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
total        19        0.00         0.00            0           27            0           158

Misses 
in  library cache during parse:  1
Misses 
in  library cache during  execute 1
Optimizer mode: 
RULE
Parsing 
user  id: SYS   (recursive depth:  2 )

Rows     Row Source Operation
-- -----  ---------------------------------------------------
      20   SORT  ORDER   BY  (cr = 3  pr = 0  pw = 0  time = 381  us)
     
20     TABLE  ACCESS CLUSTER HISTGRM$ (cr = 3  pr = 0  pw = 0  time = 197  us)
      
1      INDEX   UNIQUE  SCAN I_OBJ#_INTCOL# (cr = 2  pr = 0  pw = 0  time = 35  us)(object id  252 )

********************************************************************************

select  con#,type#,condlength,intcols,robj#,rcon#,match#,refact,nvl(enabled, 0 ),
  rowid,cols,nvl(defer,
0 ),mtime,nvl(spare1, 0
from
 cdef$ 
where  obj# = : 1


call     
count        cpu    elapsed        disk       query     current         rows
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse         1        0.00         0.00            0            0            0             0
Execute        1        0.00         0.00            0            0            0             0
Fetch          4        0.00         0.00            0            8            0             3
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
total         6        0.00         0.00            0            8            0             3

Misses 
in  library cache during parse:  1
Misses 
in  library cache during  execute 1
Optimizer mode: CHOOSE
Parsing 
user  id: SYS   (recursive depth:  1 )

Rows     Row Source Operation
-- -----  ---------------------------------------------------
       3    TABLE  ACCESS  BY   INDEX  ROWID CDEF$ (cr = 8  pr = 0  pw = 0  time = 64  us)
      
3     INDEX  RANGE SCAN I_CDEF2 (cr = 5  pr = 0  pw = 0  time = 64  us)(object id  51 )

********************************************************************************

select  intcol#,nvl(pos#, 0 ),col#,nvl(spare1, 0
from
 ccol$ 
where  con# = : 1


call     
count        cpu    elapsed        disk       query     current         rows
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse         1        0.00         0.00            0            0            0             0
Execute        3        0.00         0.00            0            0            0             0
Fetch          6        0.00         0.04            2           12            0             3
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
total        10        0.00         0.04            2           12            0             3

Misses 
in  library cache during parse:  1
Misses 
in  library cache during  execute 1
Optimizer mode: CHOOSE
Parsing 
user  id: SYS   (recursive depth:  1 )

Rows     Row Source Operation
-- -----  ---------------------------------------------------
       1    TABLE  ACCESS  BY   INDEX  ROWID CCOL$ (cr = 4  pr = 1  pw = 0  time = 36948  us)
      
1     INDEX  RANGE SCAN I_CCOL1 (cr = 3  pr = 1  pw = 0  time = 36919  us)(object id  54 )

********************************************************************************

select   *  
from
 scott.emp


call     
count        cpu    elapsed        disk       query     current         rows
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse         1        0.03         0.03            0            0            0             0
Execute        1        0.00         0.00            0            0            0             0
Fetch          2        0.01         0.03            6            8            0            14
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
total         4        0.04         0.06            6            8            0            14

Misses 
in  library cache during parse:  1
Optimizer mode: ALL_ROWS
Parsing 
user  id:  54   

Rows     Row Source Operation
-- -----  ---------------------------------------------------
      14    TABLE  ACCESS  FULL  EMP (cr = 8  pr = 6  pw = 0  time = 30407  us)




********************************************************************************

OVERALL TOTALS 
FOR   ALL  NON - RECURSIVE STATEMENTS

call     
count        cpu    elapsed        disk       query     current         rows
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse         5        0.07         0.10            0            0            0             0
Execute        6        0.00         0.00            0            0            0             3
Fetch          4        0.03         0.04            6            8            0            15
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
total        15        0.10         0.15            6            8            0            18

Misses 
in  library cache during parse:  2
Misses 
in  library cache during  execute 1


OVERALL TOTALS 
FOR   ALL  RECURSIVE STATEMENTS

call     
count        cpu    elapsed        disk       query     current         rows
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse        20        0.00         0.01            0            0            0             0
Execute       50        0.03         0.11            0            0            0             0
Fetch         67        0.01         0.08            4          158            0           205
-- ----- ------  -------- ---------- ---------- ---------- ----------  ----------
total       137        0.04         0.21            4          158            0           205

Misses 
in  library cache during parse:  15
Misses 
in  library cache during  execute 15

    
6    user   SQL statements  in  session.
   
50   internal SQL statements  in  session.
   
56   SQL statements  in  session.
********************************************************************************
Trace 
file : D:\ORACLE\PRODUCT\ 10.2 . 0 \ADMIN\ORCL\UDUMP / orcl_ora_2444.trc
Trace 
file  compatibility:  10.01 . 00
Sort options: 
default

       
1   session  in  tracefile.
       
6    user   SQL statements  in  trace  file .
      
50   internal SQL statements  in  trace  file .
      
56   SQL statements  in  trace  file .
      
19    unique  SQL statements  in  trace  file .
     
539   lines  in  trace  file .
     
213   elapsed seconds  in  trace  file .


你可能感兴趣的:(trace session)