dbms_profiler简单例子
来源:互联网 发布:ws小世界网络 编辑:程序博客网 时间:2024/05/23 00:54
1. select dbms_profiler.start_profiler from dual;
START_PROFILER
--------------
0
2. exec p_into_hw;
PL/SQL procedure successfully completed.
Run Date Total Time1 Comment 209-MAR-12 10:35:0633.202012-03-09 10:35:06Note 1: Total Time is in secondsUnit Owner Name Type Timestamp Total Time1 Text Header 2AIKIP_INTO_HWPROCEDURE15-FEB-12 15:22:220.05 Note 1: Total Time is in secondsTop Total Time1 Times Executed Min Time2 Max Time2 Unit Owner Name Type Line Text 10.0510.050.052AIKIP_INTO_HWPROCEDURE4insert into hw_contentionNote 1: Total Time is in seconds
Note 2: Min and Max Time for one execution of this line (in seconds)Line Total Time1 Times Executed Text 10.000PROCEDURE "P_INTO_HW"2 as3 begin4T10.051insert into hw_contention5 select event,p1,p2,p3 from6 v$session_wait7 where event='enq: HW - contention'8 union all9 select event,p1,p2,p3 from10 v$session_wait@gxdb111 where event='enq: HW - contention';120.001commit;130.001end;14 Note 1: Total Time is in seconds
Note Tn: Top "n" Line in terms of Total Time
START_PROFILER
--------------
0
2. exec p_into_hw;
PL/SQL procedure successfully completed.
3. exec dbms_profiler.stop_profiler;
4.SQL> START profiler.sql //根据前面列出的run_id选择
//在运行的当前目录下会生成html文件
profiler.sql - PL/SQL Profiler (MetaLink Note:243755.1)
Profiled Run 2 (plsql_profiler_runs)
Profiled PL/SQL Libraries (plsql_profiler_units)
Top 10 profiled source lines in terms of Total Time (plsql_profiler_data)
Note 2: Min and Max Time for one execution of this line (in seconds)
Unit:2 AIKI.P_INTO_HW (all_source)
Note Tn: Top "n" Line in terms of Total Time
- dbms_profiler简单例子
- DBMS_PROFILER
- DBMS_PROFILER使用指南
- DBMS_PROFILER Package
- PL/SQL Profiler - DBMS_PROFILER
- 安装dbms_profiler的步骤
- 简单例子
- 简单例子
- 简单例子
- oracle中使用DBMS_PROFILER调优
- 简单的Timer例子
- WebServices简单例子
- FTP简单例子
- 国际化(简单例子)
- 链表简单例子
- stl 简单例子
- c的简单例子
- AJAX的简单例子
- Word更新所有域的代码
- 【转】git 中文问题
- Google搜索排名优化-面向搜索引擎的网站设计
- div+定位与浮动
- 图片居中,自适应大小
- dbms_profiler简单例子
- Android APK签名
- setjump和longjump
- 为程序员和设计师准备的10个流程图
- Spring中事务的传播属性详解
- 开源中国推广效果还真不错
- CSS命名规范
- 详解如何实现一个基本的Android用户界面
- [备忘] java jdbc odbc 连接oracle