打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
terry笔记]Oracle会话追踪(二):TKPROF

在系统下执行tkprof,效果是把trace文件转换成可供人类阅读的格式

TKPROF: Release 11.2.0.3.0 - Development on Sat Aug 24 13:51:24 2013Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.Trace file: ora11g_ora_5829.trcSort options: fchela ********************************************************************************count     = number of times OCI procedure was executedcpu        = cpu time in seconds executingelapsed  = elapsed time in seconds executingdisk       = number of physical reads of buffers from diskquery    = number of buffers gotten for consistent readcurrent  = number of buffers gotten in current mode (usually for update)rows     = number of rows processed by the fetch or execute call********************************************************************************SQL ID: 9kcpyjv574vjc Plan Hash: 3617692013select * from t1 where owner='SYSTEM'call     count       cpu    elapsed       disk      query    current        rows------- ------  -------- ---------- ---------- ---------- ----------  ----------Parse        1      0.00       0.00          0          1          0           0  Execute      1      0.00       0.00          0          0          0           0  Fetch       40      0.00       0.01       1065       1106          0         573------- ------  -------- ---------- ---------- ---------- ----------  ----------total       42      0.00       0.01       1065       1107          0         573Misses in library cache during parse: 1Optimizer mode: ALL_ROWSParsing user id: 86  (U1)Number of plan statistics captured: 1Rows (1st) Rows (avg) Rows (max)  Row Source Operation---------- ---------- ----------  ---------------------------------------------------       573        573        573  TABLE ACCESS FULL T1 (cr=1106 pr=1065 pw=0 time=4866 us cost=298 size=71622 card=346)Rows     Execution Plan-------  ---------------------------------------------------      0  SELECT STATEMENT   MODE: ALL_ROWS    573   TABLE ACCESS (FULL) OF 'T1' (TABLE)
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
sql trace基础
使用 10046 查看执行计划并读懂 trace 文件
索引组织表 IOT (ORACLE)
在高并发、高负载的情况下,如何给表添加字段并设置DEFAULT值?
Oracle绑定变量和审计功能影响性能吗?Python告诉你
ORA-00603,ORA-01595,ORA-00600非正常关机导致的UNDO损坏
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服