Oracle 10g数据库中如何分析响应时间
2007-05-13 12:27:36 来源:WEB开发网核心提示: APPLICATION_WAIT_TIME CONCURRENCY_WAIT_TIME CLUSTER_WAIT_TIME USER_IO_WAIT_TIME PLSQL_EXEC_TIME JAVA_EXEC_TIME这些新的列有助于确定很多信息,例如:一个存储过程中花费在PL/SQL代
APPLICATION_WAIT_TIME
CONCURRENCY_WAIT_TIME
CLUSTER_WAIT_TIME
USER_IO_WAIT_TIME
PLSQL_EXEC_TIME
JAVA_EXEC_TIME
这些新的列有助于确定很多信息,例如:一个存储过程中花费在PL/SQL代码和标准SQL执行上的时间的对比,以及一个SQL语句经历的任何详细的用户I/O等待。例如:下面的SQL语句能帮助找到前5位用户I/O等待最高的SQL语句:
select * from
(select sql_text,
sql_id,
elapsed_time,
cpu_time,
user_io_wait_time
from sys.v_$sqlarea
order by 5 desc)
where rownum < 6;
SQL_TEXT SQL_ID ELAPSED_TIME CPU_TIME USER_IO_WAIT_TIME
DECLARE job BINARY_INTEGER := :job;
next_date DATE := :mydate; broken BOOLEAN :
6gvch1xu9ca3g 11077912 747091 8593479
select /*+ index(idl_ub1$ i_idl_ub11) +*/ piece#,
length,piece from idl_ub1
$ wher cvn54b7yz0s8u 6455976 220128 6427409
select s.synonym_name object_name,
o.object_type from sys.all_synonyms s,
s fqmpmkfr6pqyk 11814078 6958760 3189450
select /*+ rule */ bucket, endpoint, col#,
epvalue from histgrm$ where obj#=:1 a db78fxqxwxt7r
2737680 193937 2689611
select /*+ index(idl_ub2$ i_idl_ub21) +*/ piece#,
length,piece from idl_ub2$
where 39m4sx9k63ba2 2322664 108100 2307700
更多精彩
赞助商链接