3. 格式化后的trace文件分析
Trace file: GERPC_ora_63701322_delete_1t_001.trc
Sort options: prsela exeela fchela
********************************************************************************
count = number of times OCI procedure was executed
表示当前的操作被执行了多少次
cpu = cpu time in seconds executing
当前的操作消耗的CPU时间(秒)
elapsed = elapsed time in seconds executing
当前的操作用了多少CPU及等待时间
disk = number of physical reads of buffers from disk
当前阶段读硬盘(或文件系统buffer)的次数,该值越小越好
query = number of buffers gotten for consistent read
当前阶段以consistent方式从db buffer中查询的buffer数。对于select查询,
其buffer一般都是以consistent mode方式被读取。
current = number of buffers gotten in current mode (usually for update)
当前阶段以current mode方式从db buffer中查询的buffer数,常常是针对DML。
current mode与consistent mode的区别见下面的总结。
query+current 的和是该SQL总的存取的buffer数目。
rows = number of rows processed by the fetch or execute call
SQL语句最后处理的行数,对于select语句,该值产生于fetch阶段;对于dml
该值产生于execute阶段。
********************************************************************************
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/35489/viewspace-1124821/ ,如需转载,请注明出处,否则将追究法律责任。