首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 冲浪宝典 > 网络资源 > Oracle自带的profsum.sql产生的结果示例
【标  题】:Oracle自带的profsum.sql产生的结果示例
【关键字】:Oracle,profsum.sql
【来  源】:http://www.cublog.cn/u/7579/showart.php?id=145064

Oracle自带的profsum.sql产生的结果示例


已更新2行。

PL/SQL 过程已成功完成。

GRAND_TOTA
----------
   1560.57

  RUNID RUN_COMMENT    SECONDS
------- ----------- ----------
      1 no mod      643.964701
      2 mod          1158.1919

  RUNID RUN_COMMENT UNIT_OWNER  UNIT_NAME      SECONDS   PERCEN
------- ----------- ----------- -------------- --------- ------
      1 no mod      SCOTT       NO_MOD            506.44   78.6
      2 mod         SCOTT       DO_MOD           1054.13   91.0

UNIT_OWNER  UNIT_NAME      SECONDS   PERCENTAG
----------- -------------- --------- ---------
SCOTT       DO_MOD           1054.13     67.55
SCOTT       NO_MOD            506.44     32.45

未选定行

未选定行

SECONDS  UNIT_OWNER  UNIT_NAME       LINE# TEXT
-------- ----------- -------------- ------ ---------------------
   709.7 SCOTT       DO_MOD              8 if ( mod(cnt,1000) =
                                           0 )
   171.4 SCOTT       NO_MOD              8 if ( cnt = 1000 )
   160.3 SCOTT       NO_MOD              7 cnt := cnt + 1;
   158.5 SCOTT       DO_MOD              5 for i in 1 .. 500000
   155.0 SCOTT       NO_MOD              5 for i in 1 .. 500000
   147.3 SCOTT       DO_MOD              7 cnt := cnt + 1;
    38.6 SCOTT       DO_MOD             10 commit;
    19.4 SCOTT       NO_MOD             10 commit;
已选择8行。

PL/SQL 过程已成功完成。

未选定行

未选定行

LINES_EXECUTED
--------------
             0

LINES_PRESENT
-------------
            0
=================================trace info=================================
===========================Results for run #1 made on 24-7月 -06 17:04:39 =========================
(no mod) Run total time:    643.96 seconds
Unit #1: SCOTT.NO_MOD - Total time:    506.44 seconds
1                                                procedure no_mod as
2           0   0                                    cnt number := 0;
3                                                begin
4           0   0                                    dbms_profiler.start_profiler( 'no mod' );
5     500,001   154.96648  .00030993                 for i in 1 .. 500000
6                                                    loop
7     500,000   160.32336  .00032064                     cnt := cnt + 1;
8     500,000   171.38172  .00034276                     if ( cnt = 1000 )
9                                                        then
10         500   19.431397  .03886279                         commit;
11         500   .33597007  .00067194                         cnt := 0;
12                                                        end if;
13                                                    end loop;
14           1   .0034496  .0034496                   dbms_profiler.stop_profiler;
15                                                end;
===========================Results for run #2 made on 24-7月 -06 17:04:50 =========================
(mod) Run total time:   1158.19 seconds
Unit #1: SCOTT.DO_MOD - Total time:   1054.13 seconds
1                                                procedure do_mod as
2           0   0                                    cnt number := 0;
3                                                begin
4           0   0                                    dbms_profiler.start_profiler( 'mod' );
5     500,001   158.52169  .00031704                 for i in 1 .. 500000
6                                                    loop
7     500,000   147.34272  .00029468                     cnt := cnt + 1;
8     500,000   709.65247  .00141930                     if ( mod(cnt,1000) = 0 )
9                                                        then
10         500   38.609054  .07721810                         commit;
11                                                        end if;
12                                                    end loop;
13           1   .00322387  .00322387                 dbms_profiler.stop_profiler;
14                                                end;
============================================================================
PL/SQL 过程已成功完成。
================== Profiler report - all runs rolled up ===================
Unit SCOTT.DO_MOD:
1                                                procedure do_mod as
2           0   0                                    cnt number := 0;
3                                                begin
4           0   0                                    dbms_profiler.start_profiler( 'mod' );
5     500,001   158.52169  .00031704                 for i in 1 .. 500000
6                                                    loop
7     500,000   147.34272  .00029468                     cnt := cnt + 1;
8     500,000   709.65247  .00141930                     if ( mod(cnt,1000) = 0 )
9                                                        then
10         500   38.609054  .07721810                         commit;
11                                                        end if;
12                                                    end loop;
13           1   .00322387  .00322387                 dbms_profiler.stop_profiler;
14                                                end;
Unit SCOTT.NO_MOD:
1                                                procedure no_mod as
2           0   0                                    cnt number := 0;
3                                                begin
4           0   0                                    dbms_profiler.start_profiler( 'no mod' );
5     500,001   154.96648  .00030993                 for i in 1 .. 500000
6                                                    loop
7     500,000   160.32336  .00032064                     cnt := cnt + 1;
8     500,000   171.38172  .00034276                     if ( cnt = 1000 )
9                                                        then
10         500   19.431397  .03886279                         commit;
11         500   .33597007  .00067194                         cnt := 0;
12                                                        end if;
13                                                    end loop;
14           1   .0034496  .0034496                   dbms_profiler.stop_profiler;
15                                                end;
============================================================================
PL/SQL 过程已成功完成。
 
DBMS_PROFILER使用指南:【上一篇】
用Tom的profsum.sql脚本产生的结果示例:【下一篇】
【相关文章】
  • redhat as3 安装oracle9i 及升级补丁
  • Oracle常用的函数集锦
  • Oracle module install and uninstall
  • Oracle 11g何时推出?
  • 连接Oracle数据库
  • Middlegen-Hibernate-r5使用之 oracle10g(Inber原创)
  • ORACLE软件瘦身
  • oracle事务嵌套
  • oracle的一些基本操作
  • Oracle中传输表空间
  • 【随机文章】
  • Fc2下五笔输入法的问题
  • 非 root 权限如何读写Linux文件
  • 为金山虚拟光驱扩展浏览器上下文菜单功能
  • 用bandwidthd进行网络流量检测和分析
  • Initrd
  • Ulead SmartSaver Pro 3.0秘籍点点通(六)
  • 谈谈C++继承中的重载,覆盖和隐藏
  • 我的 Win98+Win2K+Linux 装配方案
  • 两大门户内情曝光 网易媚日新浪动荡
  • SQL Server中死锁产生的原因及解决办法
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.