Output format of a 10046 sql trace file

本文档展示了Oracle9i数据库中TRC文件的具体内容,包括会话ID、应用程序名称、模块名、操作等信息,并记录了SQL语句的解析、绑定、执行及等待事件的详细情况。

The header

/appl/oracle/admin/EI1T/udump/ei1t_ora_14246.trc
Oracle9i Enterprise Edition Release 9.2.0.3.0 - 64bit Production
JServer Release 9.2.0.3.0 - Production
ORACLE_HOME = /appl/oracle/product/9.2.0
System name:    SunOS
Node name:      sdsunn01
Release:        5.9
Version:        Generic_112233-08
Machine:        sun4u
Instance name: EI1T
Redo thread mounted by this instance: 1
Oracle process number: 17
Unix process pid: 14246, image: oracle@sdsunn01�(TNS V1-V3)

*** 2003-10-13 16:13:59.450
*** SESSION ID:(45.30) 2003-10-13 16:13:59.429
APPNAME mod='SQL*Plus' mh=3669949024 act='' ah=4029777240

APPNAME:Application name which can be set with dbms_application_info
mod:module name
mh:module hash
act:Action
ah:Action hash value

The content

=====================
PARSING IN CURSOR #6 len=107 dep=1 uid=44 oct=6 lid=44 tim=1621758552415 hv=3988607735 ad='902c07a8'
UPDATE rn_lu_lastname_loca set entr_loca_id_plz14 = translate(entr_loca_id_plz14,'_','-') where rowid = :b1
END OF STMT
PARSE #6:c=0,e=981,p=0,cr=0,cu=0,mis=1,r=0,dep=1,og=0,tim=1621758552403
BINDS #6:
 bind 0: dty=1 mxl=32(18) mal=00 scl=00 pre=00 oacflg=13 oacfl2=1 size=32 offset=0
   bfp=10331d748 bln=32 avl=18 flg=09
   value="AAAHINAATAAAwTTABV"
WAIT #6: nam='db file sequential read' ela= 12170 p1=6 p2=197843 p3=1
WAIT #6: nam='db file sequential read' ela= 8051 p1=14 p2=261084 p3=1
WAIT #6: nam='db file sequential read' ela= 7165 p1=19 p2=147722 p3=1
WAIT #6: nam='db file sequential read' ela= 9604 p1=19 p2=133999 p3=1
WAIT #6: nam='db file sequential read' ela= 6381 p1=19 p2=133801 p3=1
EXEC #6:c=10000,e=45750,p=5,cr=1,cu=10,mis=0,r=1,dep=1,og=4,tim=1621758598343
FETCH #5:c=0,e=357,p=0,cr=5,cu=0,mis=0,r=0,dep=1,og=4,tim=1621758598896
EXEC #1:c=30000,e=116691,p=36,cr=35,cu=10,mis=0,r=1,dep=0,og=4,tim=1621758599043
WAIT #1: nam='SQL*Net message to client' ela= 5 p1=1413697536 p2=1 p3=0
WAIT #1: nam='SQL*Net message from client' ela= 2283 p1=1413697536 p2=1 p3=0

Lines that start with WAIT

lenLength of SQL statement.
depRecursive depth of the cursor.
uidSchema user id of parsing user.
octOracle command type.
lidPrivilege user id.
elaElapsed time. 8i: in 1/1000th of a second, 9i: 1/1'000'000th of a second
timTimestamp. Pre-Oracle9i, the times recorded by Oracle only have a resolution of 1/100th of a second (10mS). As of Oracle9i some times are available to microsecond accuracy (1/1,000,000th of a second). The timestamp can be used to determine times between points in the trace file. The value is the value in v$timer when the line was written. If there are TIMESTAMPS in the file you can use the difference between 'tim' values to determine an absolute time.
hvHash id.
adSQLTEXT address (see v$sqlarea and v$sqltext).

Lines that start with PARSE, EXEC or FETCH

#nn = number of cursor
ccpu time
eelapsed time
pphysical reads
crconsistant reads
cucurrent mode reads
mismiss in cache (?)
rrows processed
deprecursive depth
og optimizer goal
timtime


source:http://www.adp-gmbh.ch/ora/misc/trace_file_format.html

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值