首页
技术基础
备份恢复
SQL优化
诊断案例
BLOG
留言板
服务
生活
网摘
阅读
下载
墨天轮
English
eygle.com - 留言簿 - 回复留言 - Powered by eYgLe.Com
返回留言簿
回 复 留 言
留言ID:
留言原文:
To
:
eygle
exec dbms_system.set_sql_trace_in_session
做的报告怎么没有执行计划呢?
SQL> alter session set sql_trace=true ;
会话已更改。
SQL> exec dbms_system.set_sql_trace_in_session(9,37,true);
PL/SQL 过程已成功完成。
SQL> exec dbms_system.set_sql_trace_in_session(9,37,false)
PL/SQL 过程已成功完成。
SQL>
tkprof 'D:\Oracle\admin\oradb\udump\oradb_ora_1040.TRC' 'd:\aaaag.txt'
报告如下:
TKPROF: Release 9.2.0.1.0 - Production on 星期六 7月 9 22:45:50 2005
Copyright (c) 1982, 2002, Oracle Corporation.All rights reserved.
Trace file: D:\Oracle\admin\oradb\udump\oradb_ora_1040.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
********************************************************************************
select *
from
t_mz_sf
call count cpuelapsed diskquerycurrentrows
------- -------------- ---------- ---------- ---------- --------------------
Parse10.00 0.00000 0
Execute10.00 0.00000 0
Fetch10.00 0.00030 0
------- -------------- ---------- ---------- ---------- --------------------
total30.00 0.00030 0
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 62
********************************************************************************
OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
call count cpuelapsed diskquerycurrentrows
------- -------------- ---------- ---------- ---------- --------------------
Parse10.00 0.00000 0
Execute10.00 0.00000 0
Fetch10.00 0.00030 0
------- -------------- ---------- ---------- ---------- --------------------
total30.00 0.00030 0
Misses in library cache during parse: 0
OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
call count cpuelapsed diskquerycurrentrows
------- -------------- ---------- ---------- ---------- --------------------
Parse00.00 0.00000 0
Execute00.00 0.00000 0
Fetch00.00 0.00000 0
------- -------------- ---------- ---------- ---------- --------------------
total00.00 0.00000 0
Misses in library cache during parse: 0
1userSQL statements in session.
0internal SQL statements in session.
1SQL statements in session.
********************************************************************************
Trace file: D:\Oracle\admin\oradb\udump\oradb_ora_1040.TRC
Trace file compatibility: 9.00.01
Sort options: default
0session in tracefile.
1userSQL statements in trace file.
0internal SQL statements in trace file.
1SQL statements in trace file.
1unique SQL statements in trace file.
8lines in trace file.
From
:
John
2005.07.09 07:56
管理密码:
请输入管理密码, 否则无法回复.
斑竹昵称:
信息图标: ( 随机 )
BB 代码:
字体
宋体
黑体
隶书
楷体
幼圆
Arial
颜色
天蓝
品蓝
蓝色
深蓝
橙色
橙红
深红
红色
砖红
暗红
绿色
灰绿
海绿
粉红
果红
桃红
紫色
紫蓝
棕木
沙褐
土黄
深褐
土绿
灰色
大小
1号
2号
3号
4号
5号
内容:
如果想删除回复, 请点击最下面的删除回复按钮.
[COLOR=blue]你直接看一下trace文件,先不要格式化[/COLOR]
删 除 回 复
管理密码:
请输入管理员密码, 只有版主才能删除回复.
Copyright © 2003~2012
eygle.com
All Rights Reserved.
Powered by:
www.eygle.com