你好,游客 登录 注册 搜索
背景:
阅读新闻

Oracle AWR报告生成与查看

[日期:2011-04-09] 来源:Linux社区  作者: 小鹏 [字体:大 中 小]

AWR生成的近2天的快照64-70的报告,以text格式。


WORKLOAD REPOSITORY report for

DB Name         DB Id    Instance     Inst Num Release     RAC Host
------------ ----------- ------------ -------- ----------- --- ------------
PENG           620748923 peng                1 10.2.0.4.0  NO  localhost

              Snap Id      Snap Time      Sessions Curs/Sess
            --------- ------------------- -------- ---------
Begin Snap:        64 13-Dec-10 02:00:47        19       2.2
  End Snap:        70 13-Dec-10 05:30:37        22       3.3
   Elapsed:              209.83 (mins)
   DB Time:                0.36 (mins)

Cache Sizes
~~~~~~~~~~~                       Begin        End
                             ---------- ----------
               Buffer Cache:        60M        60M  Std Block Size:         8K
           Shared Pool Size:        88M        88M      Log Buffer:     2,856K

Load Profile
~~~~~~~~~~~~                            Per Second       Per Transaction
                                   ---------------       ---------------
                  Redo size:                439.64              5,306.75
              Logical reads:                 21.65                261.29
              Block changes:                  5.95                 71.78
             Physical reads:                  0.13                  1.58
            Physical writes:                  0.20                  2.40
                 User calls:                  0.11                  1.33
                     Parses:                  0.85                 10.22
                Hard parses:                  0.03                  0.37
                      Sorts:                  0.47                  5.66
                     Logons:                  0.03                  0.33
                   Executes:                  1.69                 20.37
               Transactions:                  0.08

  % Blocks changed per Read:   27.47    Recursive Call %:    99.02
 Rollback per transaction %:    0.00       Rows per Sort:    12.00

Instance Efficiency Percentages (Target 100%)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            Buffer Nowait %:  100.00       Redo NoWait %:  100.00
            Buffer  Hit   %:   99.42    In-memory Sort %:  100.00
            Library Hit   %:   96.19        Soft Parse %:   96.43
         Execute to Parse %:   49.83         Latch Hit %:   99.99
Parse CPU to Parse Elapsd %:   88.97     % Non-Parse CPU:   88.19

 Shared Pool Statistics        Begin    End
                              ------  ------
             Memory Usage %:   65.77   86.66
    % SQL with executions>1:   60.66   83.60
  % Memory for SQL w/exec>1:   56.64   84.07

Top 5 Timed Events                                         Avg %Total
~~~~~~~~~~~~~~~~~~                                        wait   Call
Event                                 Waits    Time (s)   (ms)   Time Wait Class
------------------------------ ------------ ----------- ------ ------ ----------
Streams AQ: qmn coordinator wa          130       1,084   8341 ######      Other
os thread startup                       139          12     84   54.5 Concurrenc
CPU time                                             10          48.1
control file parallel write           2,238           8      3   35.6 System I/O
log file parallel write               1,290           6      5   29.6 System I/O
          -------------------------------------------------------------
Time Model Statistics                        DB/Inst: PENG/peng  Snaps: 64-70
-> Total time in database user-calls (DB Time): 21.3s
-> Statistics including the word "background" measure background process
   time, and so do not contribute to the DB time statistic
-> Ordered by % or DB time desc, Statistic name

Statistic Name                                       Time (s) % of DB Time
------------------------------------------ ------------------ ------------
sql execute elapsed time                                 23.0        107.9
DB CPU                                                   10.2         48.1
PL/SQL execution elapsed time                             6.5         30.5
parse time elapsed                                        5.5         26.0
hard parse elapsed time                                   4.4         20.8
hard parse (sharing criteria) elapsed time                0.5          2.5
hard parse (bind mismatch) elapsed time                   0.4          2.1
PL/SQL compilation elapsed time                           0.3          1.6
connection management call elapsed time                   0.1           .3
repeated bind elapsed time                                0.0           .2
failed parse elapsed time                                 0.0           .1
DB time                                                  21.3          N/A
background elapsed time                               1,143.2          N/A
background cpu time                                      23.6          N/A
          -------------------------------------------------------------

Wait Class                                    DB/Inst: PENG/peng  Snaps: 64-70
-> s  - second
-> cs - centisecond -     100th of a second
-> ms - millisecond -    1000th of a second
-> us - microsecond - 1000000th of a second
-> ordered by wait time desc, waits desc

                                                                  Avg
                                       %Time       Total Wait    wait     Waits
Wait Class                      Waits  -outs         Time (s)    (ms)      /txn
-------------------- ---------------- ------ ---------------- ------- ---------
Other                             281   42.3            1,087    3867       0.3
System I/O                     12,338     .0               14       1      11.8
Concurrency                       140     .0               12      83       0.1
User I/O                        1,028     .0                3       3       1.0
Commit                            121     .0                1      11       0.1
Network                           521     .0                0       0       0.5
Application                        12     .0                0       0       0.0
          -------------------------------------------------------------

Wait Events                                  DB/Inst: PENG/peng  Snaps: 64-70
-> s  - second
-> cs - centisecond -     100th of a second
-> ms - millisecond -    1000th of a second
-> us - microsecond - 1000000th of a second
-> ordered by wait time desc, waits desc (idle events last)

                                                                   Avg
                                             %Time  Total Wait    wait     Waits
Event                                 Waits  -outs    Time (s)    (ms)      /txn
---------------------------- -------------- ------ ----------- ------- ---------
Streams AQ: qmn coordinator             130   91.5       1,084    8341       0.1
os thread startup                       139     .0          12      84       0.1
control file parallel write           2,238     .0           8       3       2.1
log file parallel write               1,290     .0           6       5       1.2
latch free                              131     .0           2      17       0.1
db file sequential read                 828     .0           2       3       0.8
log file sync                           121     .0           1      11       0.1
db file scattered read                  170     .0           1       5       0.2
control file sequential read          8,810     .0           0       0       8.4
SQL*Net more data to client             237     .0           0       0       0.2
LGWR wait for redo copy                   9     .0           0       6       0.0
latch: redo allocation                    3     .0           0      14       0.0
SQL*Net more data from clien              2     .0           0       4       0.0
rdbms ipc reply                           8     .0           0       0       0.0
SQL*Net message to client               282     .0           0       0       0.3
SQL*Net break/reset to clien             12     .0           0       0       0.0
buffer busy waits                         1     .0           0       2       0.0
direct path read                         30     .0           0       0       0.0
Streams AQ: qmn slave idle w            549   25.1      21,100   38433       0.5
jobq slave wait                       2,364   91.6      12,639    5346       2.3
virtual circuit status                  225  100.0      12,285   54600       0.2
Streams AQ: qmn coordinator             306   80.4      11,137   36396       0.3
SQL*Net message from client             279     .0       4,369   15659       0.3
Streams AQ: waiting for time              2  100.0       3,905 #######       0.0
class slave wait                          3     .0           0      40       0.0
          -------------------------------------------------------------

Background Wait Events                       DB/Inst: PENG/peng  Snaps: 64-70
-> ordered by wait time desc, waits desc (idle events last)

                                                                   Avg
                                             %Time  Total Wait    wait     Waits
Event                                 Waits  -outs    Time (s)    (ms)      /txn
---------------------------- -------------- ------ ----------- ------- ---------
events in waitclass Other               150   79.3       1,084    7229       0.1
os thread startup                       139     .0          12      84       0.1
control file parallel write           2,238     .0           8       3       2.1
log file parallel write               1,290     .0           6       5       1.2
control file sequential read          4,816     .0           0       0       4.6
db file scattered read                   16     .0           0       7       0.0
buffer busy waits                         1     .0           0       2       0.0
rdbms ipc message                    23,052   93.9     129,260    5607      22.1
pmon timer                            2,280  100.0      12,286    5389       2.2
smon timer                               25   80.0      11,492  459690       0.0
Streams AQ: qmn coordinator             306   80.4      11,137   36396       0.3
Streams AQ: waiting for time              2  100.0       3,905 #######       0.0
          -------------------------------------------------------------

Operating System Statistics                   DB/Inst: PENG/peng  Snaps: 64-70

Statistic                                       Total
-------------------------------- --------------------
BUSY_TIME                                       8,277
IDLE_TIME                                     646,374
IOWAIT_TIME                                     2,368
NICE_TIME                                          99
SYS_TIME                                        5,358
USER_TIME                                       2,222
LOAD                                                0
RSRC_MGR_CPU_WAIT_TIME                              0
PHYSICAL_MEMORY_BYTES                     527,708,160
NUM_CPUS                                            1
          -------------------------------------------------------------

Service Statistics                           DB/Inst: PENG/peng  Snaps: 64-70
-> ordered by DB Time

                                                             Physical    Logical
Service Name                      DB Time (s)   DB CPU (s)      Reads      Reads
-------------------------------- ------------ ------------ ---------- ----------
SYS$USERS                                21.0         10.1        395    239,984
peng                                      0.3          0.2          5        207
SYS$BACKGROUND                            0.0          0.0      1,512     36,060
pengXDB                                   0.0          0.0          0          0
          -------------------------------------------------------------

Service Wait Class Stats                      DB/Inst: PENG/peng  Snaps: 64-70
-> Wait Class info for services in the Service Statistics section.
-> Total Waits and Time Waited displayed for the following wait
   classes:  User I/O, Concurrency, Administrative, Network
-> Time Waited (Wt Time) in centisecond (100th of a second)

Service Name
----------------------------------------------------------------
 User I/O  User I/O  Concurcy  Concurcy     Admin     Admin   Network   Network
Total Wts   Wt Time Total Wts   Wt Time Total Wts   Wt Time Total Wts   Wt Time
--------- --------- --------- --------- --------- --------- --------- ---------
SYS$USERS
      389       108         0         0         0         0       438         4
peng
        5         4         0         0         0         0        73         1
SYS$BACKGROUND
      644       198       140      1162         0         0         0         0
          -------------------------------------------------------------

SQL ordered by Elapsed Time                  DB/Inst: PENG/peng  Snaps: 64-70
-> Resources reported for PL/SQL code includes the resources used by all SQL
   statements called by the code.
-> % Total DB Time is the Elapsed Time of the SQL statement divided
   into the Total Database Time multiplied by 100

  Elapsed      CPU                  Elap per  % Total
  Time (s)   Time (s)  Executions   Exec (s)  DB Time    SQL Id
---------- ---------- ------------ ---------- ------- -------------
        10          5            2        4.9    45.9 572fbaj0fdw2b
Module: sqlplus@localhost (TNS V1-V3)
select output from table(dbms_workload_repository.awr_report_html( :dbid,
 :inst_num,
 :bid, :eid,
 :rpt_options ))

         5          3          193        0.0    22.9 6gvch1xu9ca3g
DECLARE job BINARY_INTEGER := :job; next_date DATE := :mydate; broken BOOLEAN :
= FALSE; BEGIN EMD_MAINTENANCE.EXECUTE_EM_DBMS_JOB_PROCS(); :mydate := next_date
; IF broken THEN :b := 1; ELSE :b := 0; END IF; END;

         2          1            6        0.3     8.3 bunssq950snhf
insert into wrh$_sga_target_advice (snap_id, dbid, instance_number, SGA_SIZ
E, SGA_SIZE_FACTOR, ESTD_DB_TIME, ESTD_PHYSICAL_READS) select :snap_id, :dbi
d, :instance_number, SGA_SIZE, SGA_SIZE_FACTOR, ESTD_DB_TIME, ESTD_PHYSICAL_R
EADS from v$sga_target_advice

         2          1            2        0.8     7.2 2vs8phnpj4zu9
Module: sqlplus@localhost (TNS V1-V3)
select dbms_workload_repository.create_snapshot() from dual

         1          1            5        0.3     6.2 d92h3rjp0y217
begin prvt_hdm.auto_execute( :db_id, :inst_id, :end_snap ); end;

         1          1          155        0.0     3.9 abtp0uqvdb1d3
CALL MGMT_ADMIN_DATA.EVALUATE_MGMT_METRICS(:tguid, :mguid, :result)

         0          0           68        0.0     1.7 db78fxqxwxt7r
select bucket, endpoint, col#, epvalue from histgrm$ where obj#=:1 a
nd intcol#=:2 and row#=:3 order by bucket

         0          0          323        0.0     1.3 aykvshm7zsabd
select size_for_estimate, size_factor * 100 f,
 estd_physical_read_time, estd_physical_reads
from v$db_cache_advice where id = '3'

         0          0            2        0.1     1.1 gkqvbzsfpngvy
Module: sqlplus@localhost (TNS V1-V3)
select * from (select nvl((sqt.elap/1000000), to_number(null)
), nvl((sqt.cput/1000000), to_number(null)), sqt.exec,
 decode(sqt.exec, 0, to_number(null), (sqt.el
ap / sqt.exec / 1000000)), (100 * (sqt.elap / :dbtime)) norm_val,

         0          0          209        0.0     1.1 6d64jpfzqc9rv
INSERT INTO MGMT_METRICS_RAW (TARGET_GUID, COLLECTION_TIMESTAMP, METRIC_GUID, KE
Y_VALUE, VALUE, STRING_VALUE) VALUES (:B5 , :B4 , :B3 , :B2 , NULL, :B1 )

         0          0            2        0.1     1.0 8dw6saa5zu2sk
Module: sqlplus@localhost (TNS V1-V3)
select service_name, uio_waits, uio_time, con_waits, con_time, adm_w
aits, adm_time, net_waits, net_time from (select stat1.service_na
me service_name, db_time, uio_waits, uio_time, con_waits, con_time, adm_w
aits, adm_time, net_waits, net_time from (select s1.service_name,

         0          0           15        0.0     1.0 cvn54b7yz0s8u
select piece#,length,piece from idl_ub1$ wher
e obj#=:1 and part=:2 and version=:3 order by piece#

         0          0            2        0.1     1.0 2ax2x0u7qygq6
SQL ordered by Elapsed Time                  DB/Inst: PENG/peng  Snaps: 64-70
-> Resources reported for PL/SQL code includes the resources used by all SQL
   statements called by the code.
-> % Total DB Time is the Elapsed Time of the SQL statement divided
   into the Total Database Time multiplied by 100

  Elapsed      CPU                  Elap per  % Total
  Time (s)   Time (s)  Executions   Exec (s)  DB Time    SQL Id
---------- ---------- ------------ ---------- ------- -------------
Module: sqlplus@localhost (TNS V1-V3)
select * from (select sqt.bget, sqt.exec,
 decode(sqt.exec, 0, to_number(null), (sqt.bget / sqt
.exec)), (100*sqt.bget)/:gets norm_val, nvl((sqt.cput
/1000000), to_number(null)), nvl((sqt.elap/1000000), to_number(null

          -------------------------------------------------------------

SQL ordered by CPU Time                      DB/Inst: PENG/peng  Snaps: 64-70
-> Resources reported for PL/SQL code includes the resources used by all SQL
   statements called by the code.
-> % Total DB Time is the Elapsed Time of the SQL statement divided
   into the Total Database Time multiplied by 100

    CPU      Elapsed                  CPU per  % Total
  Time (s)   Time (s)  Executions     Exec (s) DB Time    SQL Id
---------- ---------- ------------ ----------- ------- -------------
         5         10            2        2.41    45.9 572fbaj0fdw2b
Module: sqlplus@localhost (TNS V1-V3)
select output from table(dbms_workload_repository.awr_report_html( :dbid,
 :inst_num,
 :bid, :eid,
 :rpt_options ))

         3          5          193        0.01    22.9 6gvch1xu9ca3g
DECLARE job BINARY_INTEGER := :job; next_date DATE := :mydate; broken BOOLEAN :
= FALSE; BEGIN EMD_MAINTENANCE.EXECUTE_EM_DBMS_JOB_PROCS(); :mydate := next_date
; IF broken THEN :b := 1; ELSE :b := 0; END IF; END;

         1          2            6        0.16     8.3 bunssq950snhf
insert into wrh$_sga_target_advice (snap_id, dbid, instance_number, SGA_SIZ
E, SGA_SIZE_FACTOR, ESTD_DB_TIME, ESTD_PHYSICAL_READS) select :snap_id, :dbi
d, :instance_number, SGA_SIZE, SGA_SIZE_FACTOR, ESTD_DB_TIME, ESTD_PHYSICAL_R
EADS from v$sga_target_advice

         1          2            2        0.39     7.2 2vs8phnpj4zu9
Module: sqlplus@localhost (TNS V1-V3)
select dbms_workload_repository.create_snapshot() from dual

         1          1          155        0.00     3.9 abtp0uqvdb1d3
CALL MGMT_ADMIN_DATA.EVALUATE_MGMT_METRICS(:tguid, :mguid, :result)

         1          1            5        0.12     6.2 d92h3rjp0y217
begin prvt_hdm.auto_execute( :db_id, :inst_id, :end_snap ); end;

         0          0          323        0.00     1.3 aykvshm7zsabd
select size_for_estimate, size_factor * 100 f,
 estd_physical_read_time, estd_physical_reads
from v$db_cache_advice where id = '3'

         0          0          400        0.00     1.0 5kyb5bvnu3s04
SELECT DISTINCT METRIC_GUID FROM MGMT_METRICS WHERE TARGET_TYPE = :B3 AND METRIC
_NAME = :B2 AND METRIC_COLUMN = :B1

         0          0          209        0.00     1.1 6d64jpfzqc9rv
INSERT INTO MGMT_METRICS_RAW (TARGET_GUID, COLLECTION_TIMESTAMP, METRIC_GUID, KE
Y_VALUE, VALUE, STRING_VALUE) VALUES (:B5 , :B4 , :B3 , :B2 , NULL, :B1 )

         0          0        1,123        0.00     1.0 6ssrk2dqj7jbx
select job, nvl2(last_date, 1, 0) from sys.job$ where (((:1 <= next_date) and (n
ext_date <= :2)) or ((last_date is null) and (next_date < :3))) and (field1
= :4 or (field1 = 0 and 'Y' = :5)) and (this_date is null) order by next_date, j
ob

         0          0           68        0.00     1.7 db78fxqxwxt7r
select bucket, endpoint, col#, epvalue from histgrm$ where obj#=:1 a
nd intcol#=:2 and row#=:3 order by bucket

         0          0           15        0.01     1.0 cvn54b7yz0s8u
select piece#,length,piece from idl_ub1$ wher
e obj#=:1 and part=:2 and version=:3 order by piece#

         0          0            2        0.07     1.1 gkqvbzsfpngvy
Module: sqlplus@localhost (TNS V1-V3)
select * from (select nvl((sqt.elap/1000000), to_number(null)
), nvl((sqt.cput/1000000), to_number(null)), sqt.exec,
 decode(sqt.exec, 0, to_number(null), (sqt.el
SQL ordered by CPU Time                      DB/Inst: PENG/peng  Snaps: 64-70
-> Resources reported for PL/SQL code includes the resources used by all SQL
   statements called by the code.
-> % Total DB Time is the Elapsed Time of the SQL statement divided
   into the Total Database Time multiplied by 100

    CPU      Elapsed                  CPU per  % Total
  Time (s)   Time (s)  Executions     Exec (s) DB Time    SQL Id
---------- ---------- ------------ ----------- ------- -------------
ap / sqt.exec / 1000000)), (100 * (sqt.elap / :dbtime)) norm_val,

         0          0            2        0.07     1.0 8dw6saa5zu2sk
Module: sqlplus@localhost (TNS V1-V3)
select service_name, uio_waits, uio_time, con_waits, con_time, adm_w
aits, adm_time, net_waits, net_time from (select stat1.service_na
me service_name, db_time, uio_waits, uio_time, con_waits, con_time, adm_w
aits, adm_time, net_waits, net_time from (select s1.service_name,

         0          0            2        0.05     1.0 2ax2x0u7qygq6
Module: sqlplus@localhost (TNS V1-V3)
select * from (select sqt.bget, sqt.exec,
 decode(sqt.exec, 0, to_number(null), (sqt.bget / sqt
.exec)), (100*sqt.bget)/:gets norm_val, nvl((sqt.cput
/1000000), to_number(null)), nvl((sqt.elap/1000000), to_number(null

          -------------------------------------------------------------

SQL ordered by Gets                          DB/Inst: PENG/peng  Snaps: 64-70
-> Resources reported for PL/SQL code includes the resources used by all SQL
   statements called by the code.
-> Total Buffer Gets:         272,528
-> Captured SQL account for     109.2% of Total

                                Gets              CPU     Elapsed
  Buffer Gets   Executions    per Exec   %Total Time (s)  Time (s)    SQL Id
-------------- ------------ ------------ ------ -------- --------- -------------
       188,827            2     94,413.5   69.3     4.83      9.78 572fbaj0fdw2b
Module: sqlplus@localhost (TNS V1-V3)
select output from table(dbms_workload_repository.awr_report_html( :dbid,
 :inst_num,
 :bid, :eid,
 :rpt_options ))

        33,886          193        175.6   12.4     2.85      4.88 6gvch1xu9ca3g
DECLARE job BINARY_INTEGER := :job; next_date DATE := :mydate; broken BOOLEAN :
= FALSE; BEGIN EMD_MAINTENANCE.EXECUTE_EM_DBMS_JOB_PROCS(); :mydate := next_date
; IF broken THEN :b := 1; ELSE :b := 0; END IF; END;

         6,679          631         10.6    2.5     0.19      0.19 0h6b2sajwb74n
select privilege#,level from sysauth$ connect by grantee#=prior privilege# and p
rivilege#>0 start with grantee#=:1 and privilege#>0

         6,500          155         41.9    2.4     0.74      0.84 abtp0uqvdb1d3
CALL MGMT_ADMIN_DATA.EVALUATE_MGMT_METRICS(:tguid, :mguid, :result)

         5,584            2      2,792.0    2.0     0.14      0.23 gkqvbzsfpngvy
Module: sqlplus@localhost (TNS V1-V3)
select * from (select nvl((sqt.elap/1000000), to_number(null)
), nvl((sqt.cput/1000000), to_number(null)), sqt.exec,
 decode(sqt.exec, 0, to_number(null), (sqt.el
ap / sqt.exec / 1000000)), (100 * (sqt.elap / :dbtime)) norm_val,

         5,385            2      2,692.5    2.0     0.11      0.20 922b10vp9kgmm
Module: sqlplus@localhost (TNS V1-V3)
select * from (select nvl((sqt.cput/1000000), to_number(null)
), nvl((sqt.elap/1000000), to_number(null)), sqt.exec,
 decode(sqt.exec, 0, to_number(null), (sqt.cp
ut / sqt.exec / 1000000)), (100 * (sqt.elap / :dbtime)) norm_val,

         5,287            2      2,643.5    1.9     0.10      0.22 2ax2x0u7qygq6
Module: sqlplus@localhost (TNS V1-V3)
select * from (select sqt.bget, sqt.exec,
 decode(sqt.exec, 0, to_number(null), (sqt.bget / sqt
.exec)), (100*sqt.bget)/:gets norm_val, nvl((sqt.cput
/1000000), to_number(null)), nvl((sqt.elap/1000000), to_number(null

         5,189            2      2,594.5    1.9     0.08      0.14 2j5k75abbg6ns
Module: sqlplus@localhost (TNS V1-V3)
select * from (select sqt.prsc, sqt.exec,
 decode(:prse, 0, 0, 100 * sqt.prsc / :prse) norm_val, sqt.sql_i
d, decode(sqt.module, null, null, 'Module: ' || sqt.module),
 nvl(st.sql_text, to_clob('** SQL Text Not Available **')) from (

         5,158            5      1,031.6    1.9     0.60      1.32 d92h3rjp0y217
begin prvt_hdm.auto_execute( :db_id, :inst_id, :end_snap ); end;

         5,080            2      2,540.0    1.9     0.08      0.15 g72t9h4wr2uuz
Module: sqlplus@localhost (TNS V1-V3)
select * from (select sqt.exec exec, sqt.rowp,
 sqt.rowp / sqt.exec, sqt.cput / sqt.exec / 1000000,
 sqt.elap / sqt.exec / 1000000, sqt.sql_id, decod
e(sqt.module, null, null, 'Module: ' || sqt.module), nvl(st.sql_text

         5,063            2      2,531.5    1.9     0.08      0.13 8hnz9qruz94y3
Module: sqlplus@localhost (TNS V1-V3)
select * from (select sqt.dskr, sqt.exec,
SQL ordered by Gets                          DB/Inst: PENG/peng  Snaps: 64-70
-> Resources reported for PL/SQL code includes the resources used by all SQL
   statements called by the code.
-> Total Buffer Gets:         272,528
-> Captured SQL account for     109.2% of Total

                                Gets              CPU     Elapsed
  Buffer Gets   Executions    per Exec   %Total Time (s)  Time (s)    SQL Id
-------------- ------------ ------------ ------ -------- --------- -------------
 decode(sqt.exec, 0, to_number(null), (sqt.dskr / sqt.exe
c)), (100 * sqt.dskr)/:phyr norm_val, nvl((sqt.cput /
 1000000), to_number(null)), nvl((sqt.elap / 1000000), to_number(nul

         3,685            2      1,842.5    1.4     0.77      1.54 2vs8phnpj4zu9
Module: sqlplus@localhost (TNS V1-V3)
select dbms_workload_repository.create_snapshot() from dual

         3,369        1,123          3.0    1.2     0.21      0.21 6ssrk2dqj7jbx
select job, nvl2(last_date, 1, 0) from sys.job$ where (((:1 <= next_date) and (n
ext_date <= :2)) or ((last_date is null) and (next_date < :3))) and (field1
= :4 or (field1 = 0 and 'Y' = :5)) and (this_date is null) order by next_date, j
ob

         2,930          385          7.6    1.1     0.18      0.20 18naypzfmabd6
INSERT INTO MGMT_SYSTEM_PERFORMANCE_LOG (JOB_NAME, TIME, DURATION, MODULE, ACTIO
N, IS_TOTAL, NAME, VALUE, CLIENT_DATA, HOST_URL) VALUES (:B9 , SYSDATE, :B8 , SU
BSTR(:B7 , 1, 512), SUBSTR(:B6 ,1,32), :B5 , SUBSTR(:B4 ,1,128), SUBSTR(:B3 ,1,1
28), SUBSTR(:B2 ,1,128), SUBSTR(:B1 ,1,256))

          -------------------------------------------------------------

SQL ordered by Reads                         DB/Inst: PENG/peng  Snaps: 64-70
-> Total Disk Reads:           1,652
-> Captured SQL account for     76.8% of Total

                               Reads              CPU     Elapsed
Physical Reads  Executions    per Exec   %Total Time (s)  Time (s)    SQL Id
-------------- ----------- ------------- ------ -------- --------- -------------
           422           3         140.7   25.5     0.08      0.11 cfz686a6qp0kg
select o.obj#, u.name, o.name, t.spare1, DECODE(bitand(t.flags, 26843545
6), 268435456, t.initrans, t.pctfree$) from sys.obj$ o, sys.user$ u, sys.tab$
 t where (bitand(t.trigflag, 1048576) = 1048576) and o.obj#=t.obj#
 and o.owner# = u.user#

           317           2         158.5   19.2     4.83      9.78 572fbaj0fdw2b
Module: sqlplus@localhost (TNS V1-V3)
select output from table(dbms_workload_repository.awr_report_html( :dbid,
 :inst_num,
 :bid, :eid,
 :rpt_options ))

           176          15          11.7   10.7     0.15      0.22 cvn54b7yz0s8u
select piece#,length,piece from idl_ub1$ wher
e obj#=:1 and part=:2 and version=:3 order by piece#

           131           5          26.2    7.9     0.60      1.32 d92h3rjp0y217
begin prvt_hdm.auto_execute( :db_id, :inst_id, :end_snap ); end;

            56          68           0.8    3.4     0.20      0.35 db78fxqxwxt7r
select bucket, endpoint, col#, epvalue from histgrm$ where obj#=:1 a
nd intcol#=:2 and row#=:3 order by bucket

            39           2          19.5    2.4     0.77      1.54 2vs8phnpj4zu9
Module: sqlplus@localhost (TNS V1-V3)
select dbms_workload_repository.create_snapshot() from dual

            21           2          10.5    1.3     0.02      0.03 8r5sp8cjcpqan
select count(*) from vtable$ where obj#=:1

            16           3           5.3    1.0     0.03      0.14 3505vtqmvvf40
insert into wrh$_waitclassmetric_history (snap_id, dbid, instance_number, wa
it_class_id, begin_time, end_time, intsize, group_id, average_waiter_c
ount, dbtime_in_wait, time_waited, wait_count) select :snap_id, :dbid
, :instance_number, wait_id, begtime, endtime, intsize_csec, groupid,

            12           1          12.0    0.7     0.03      0.14 116svc9fxbxtc
Module: sqlplus@localhost (TNS V1-V3)
BEGIN dbms_workload_repository.modify_snapshot_settings(interval=>30,retention=>
14000); END;

            12           1          12.0    0.7     0.05      0.10 14wnf35dahb7v
SELECT A.ID,A.TYPE FROM SYS.WRI$_ADV_DEFINITIONS A WHERE A.NAME = :B1

          -------------------------------------------------------------

SQL ordered by Executions                    DB/Inst: PENG/peng  Snaps: 64-70
-> Total Executions:          21,246
-> Captured SQL account for     60.3% of Total

                                              CPU per    Elap per
 Executions   Rows Processed  Rows per Exec   Exec (s)   Exec (s)     SQL Id
------------ --------------- -------------- ---------- ----------- -------------
       1,123             161            0.1       0.00        0.00 6ssrk2dqj7jbx
select job, nvl2(last_date, 1, 0) from sys.job$ where (((:1 <= next_date) and (n
ext_date <= :2)) or ((last_date is null) and (next_date < :3))) and (field1
= :4 or (field1 = 0 and 'Y' = :5)) and (this_date is null) order by next_date, j
ob

         953             953            1.0       0.00        0.00 g2wr3u7s1gtf3
select count(*) from sys.job$ where (next_date > sysdate) and (next_date < (sysd
ate+5/86400))

         631           4,891            7.8       0.00        0.00 0h6b2sajwb74n
select privilege#,level from sysauth$ connect by grantee#=prior privilege# and p
rivilege#>0 start with grantee#=:1 and privilege#>0

         593             593            1.0       0.00        0.00 grwydz59pu6mc
select text from view$ where rowid=:1

         475             475            1.0       0.00        0.00 91h2x42zqagcm
UPDATE MGMT_CURRENT_METRICS SET COLLECTION_TIMESTAMP = :B3 , VALUE = :B2 , STRIN
G_VALUE = :B1 WHERE TARGET_GUID = :B6 AND METRIC_GUID = :B5 AND KEY_VALUE = :B4
AND COLLECTION_TIMESTAMP < :B3

         400             400            1.0       0.00        0.00 5kyb5bvnu3s04
SELECT DISTINCT METRIC_GUID FROM MGMT_METRICS WHERE TARGET_TYPE = :B3 AND METRIC
_NAME = :B2 AND METRIC_COLUMN = :B1

         395               0            0.0       0.00        0.00 350f5yrnnmshs
lock table sys.mon_mods$ in exclusive mode nowait

         395             395            1.0       0.00        0.00 g00cj285jmgsw
update sys.mon_mods$ set inserts = inserts + :ins, updates = updates + :upd, del
etes = deletes + :del, flags = (decode(bitand(flags, :flag), :flag, flags, flags
 + :flag)), drop_segments = drop_segments + :dropseg, timestamp = :time where ob
j# = :objn

         385             385            1.0       0.00        0.00 18naypzfmabd6
INSERT INTO MGMT_SYSTEM_PERFORMANCE_LOG (JOB_NAME, TIME, DURATION, MODULE, ACTIO
N, IS_TOTAL, NAME, VALUE, CLIENT_DATA, HOST_URL) VALUES (:B9 , SYSDATE, :B8 , SU
BSTR(:B7 , 1, 512), SUBSTR(:B6 ,1,32), :B5 , SUBSTR(:B4 ,1,128), SUBSTR(:B3 ,1,1
28), SUBSTR(:B2 ,1,128), SUBSTR(:B1 ,1,256))

         370             368            1.0       0.00        0.00 3c1kubcdjnppq
update sys.col_usage$ set equality_preds = equality_preds + decode(bitan
d(:flag,1),0,0,1), equijoin_preds = equijoin_preds + decode(bitand(:flag
,2),0,0,1), nonequijoin_preds = nonequijoin_preds + decode(bitand(:flag,4),0,0
,1), range_preds = range_preds + decode(bitand(:flag,8),0,0,1),

         365             310            0.8       0.00        0.00 96g93hntrzjtr
select bucket_cnt, row_cnt, cache_cnt, null_cnt, timestamp#, sample_
size, minimum, maximum, distcnt, lowval, hival, density, col#, spare1, spare2, a
vgcln from hist_head$ where obj#=:1 and intcol#=:2

         323           6,460           20.0       0.00        0.00 aykvshm7zsabd
select size_for_estimate, size_factor * 100 f,
 estd_physical_read_time, estd_physical_reads
from v$db_cache_advice where id = '3'

         313           3,756           12.0       0.00        0.00 772s25v1y0x8k
select shared_pool_size_for_estimate s, shared_pool_size_factor * 100 f
, estd_lc_load_time l, 0 from v$shared_pool_advice
SQL ordered by Executions                    DB/Inst: PENG/peng  Snaps: 64-70
-> Total Executions:          21,246
-> Captured SQL account for     60.3% of Total

                                              CPU per    Elap per
 Executions   Rows Processed  Rows per Exec   Exec (s)   Exec (s)     SQL Id
------------ --------------- -------------- ---------- ----------- -------------

         224             224            1.0       0.00        0.00 2txg6sm725mn6
INSERT INTO MGMT_METRICS_RAW (TARGET_GUID, COLLECTION_TIMESTAMP, METRIC_GUID, KE
Y_VALUE, VALUE, STRING_VALUE) VALUES (:B5 , :B4 , :B3 , :B2 , :B1 , NULL)

          -------------------------------------------------------------

SQL ordered by Parse Calls                   DB/Inst: PENG/peng  Snaps: 64-70
-> Total Parse Calls:          10,660
-> Captured SQL account for      67.8% of Total

                            % Total
 Parse Calls  Executions     Parses    SQL Id
------------ ------------ --------- -------------
         631          631      5.92 0h6b2sajwb74n
select privilege#,level from sysauth$ connect by grantee#=prior privilege# and p
rivilege#>0 start with grantee#=:1 and privilege#>0

         593          593      5.56 grwydz59pu6mc
select text from view$ where rowid=:1

         395          395      3.71 350f5yrnnmshs
lock table sys.mon_mods$ in exclusive mode nowait

         395          395      3.71 g00cj285jmgsw
update sys.mon_mods$ set inserts = inserts + :ins, updates = updates + :upd, del
etes = deletes + :del, flags = (decode(bitand(flags, :flag), :flag, flags, flags
 + :flag)), drop_segments = drop_segments + :dropseg, timestamp = :time where ob
j# = :objn

         206          206      1.93 0k8522rmdzg4k
select privilege# from sysauth$ where (grantee#=:1 or grantee#=1) and privilege#
>0

         193          193      1.81 3z6cvmt9w5292
Module: EM_PING
SELECT STEP_ID FROM MGMT_JOB_EXECUTION E, MGMT_JOB J WHERE E.JOB_ID=
J.JOB_ID AND STEP_STATUS IN (:B6 , :B5 , :B4 , :B3 , :B2 ) AND STEP_TYPE=:B1 AND
 J.EXECUTION_TIMEOUT > 0 AND (CAST(SYS_EXTRACT_UTC(SYSTIMESTAMP) AS DATE)-E.STAR
T_TIME) > (J.EXECUTION_TIMEOUT/24)

         193          193      1.81 6gvch1xu9ca3g
DECLARE job BINARY_INTEGER := :job; next_date DATE := :mydate; broken BOOLEAN :
= FALSE; BEGIN EMD_MAINTENANCE.EXECUTE_EM_DBMS_JOB_PROCS(); :mydate := next_date
; IF broken THEN :b := 1; ELSE :b := 0; END IF; END;

         193          193      1.81 aq8yqxyyb40nn
update sys.job$ set this_date=:1 where job=:2

         193          193      1.81 c8h3jdwaa532q
Module: EM_PING
SELECT TO_NUMBER(PARAMETER_VALUE) FROM MGMT_PARAMETERS WHERE PARAMETER_NAME = :B
1

         192          192      1.80 089dbukv1aanh
Module: EM_PING
SELECT SYS_EXTRACT_UTC(SYSTIMESTAMP) FROM DUAL

         192          192      1.80 08vznc16ycuag
Module: EM_PING
SELECT SYS_GUID() FROM SYS.DUAL

         192          385      1.80 18naypzfmabd6
INSERT INTO MGMT_SYSTEM_PERFORMANCE_LOG (JOB_NAME, TIME, DURATION, MODULE, ACTIO
N, IS_TOTAL, NAME, VALUE, CLIENT_DATA, HOST_URL) VALUES (:B9 , SYSDATE, :B8 , SU
BSTR(:B7 , 1, 512), SUBSTR(:B6 ,1,32), :B5 , SUBSTR(:B4 ,1,128), SUBSTR(:B3 ,1,1
28), SUBSTR(:B2 ,1,128), SUBSTR(:B1 ,1,256))

         192          192      1.80 19v5guvsgcd1v
SELECT C.TARGET_GUID, C.METRIC_GUID, C.STORE_METRIC, C.SCHEDULE, C.COLL_NAME, M.
METRIC_NAME, M.EVAL_FUNC FROM MGMT_METRIC_COLLECTIONS_REP R, MGMT_METRIC_COLLECT
IONS C, MGMT_METRICS M WHERE C.SUSPENDED = 0 AND C.IS_REPOSITORY = 1 AND (C.LAST
_COLLECTED_TIMESTAMP IS NULL OR C.LAST_COLLECTED_TIMESTAMP + C.SCHEDULE / 1440 <

SQL ordered by Parse Calls                   DB/Inst: PENG/peng  Snaps: 64-70
-> Total Parse Calls:          10,660
-> Captured SQL account for      67.8% of Total

                            % Total
 Parse Calls  Executions     Parses    SQL Id
------------ ------------ --------- -------------
         192          192      1.80 24dkx03u3rj6k
Module:
SELECT COUNT(*) FROM MGMT_PARAMETERS WHERE PARAMETER_NAME=:B1 AND UPPER(PARAMETE
R_VALUE)='TRUE'

         192          192      1.80 34rks4d5suuxz
Module: EM_PING
SELECT COUNT(FAILOVER_ID) FROM MGMT_FAILOVER_TABLE WHERE SYSDATE-LAST_TIME_STAMP
 < :B1 /(24*60*60)

         192          192      1.80 47a50dvdgnxc2
update sys.job$ set failures=0, this_date=null, flag=:1, last_date=:2, next_dat
e = greatest(:3, sysdate), total=total+(sysdate-nvl(this_date,sysdate)) where j
ob=:4

         192          192      1.80 6nf6bgxvghzq9
Module: EM_PING
SELECT STATUS, EXECUTION_ID FROM MGMT_JOB_EXEC_SUMMARY E WHERE STATU
S IN (:B2 , :B1 ) AND SUSPEND_TIMEOUT > 0 AND (CAST(SYS_EXTRACT_UTC(SYSTIMESTAMP
) AS DATE)-SUSPEND_TIME) > (SUSPEND_TIMEOUT/(24*60))

         192          192      1.80 6t7007dkc1abh
Module: EM_PING
DELETE FROM MGMT_JOB_EMD_STATUS_QUEUE

         192          192      1.80 7gnakyxnvaadf
Module: SEVERITY EVALUATION
SELECT UNIQUE(TARGET_GUID) FROM MGMT_METRIC_DEPENDENCY WHERE CAN_CALCULATE = 1 A
ND DISABLED = 0

         192          192      1.80 a1mbfp580hw3k
select u1.user#, u2.user#, u3.user#, failures, flag, interval#, what, nlsenv,
 env, field1 from sys.job$ j, sys.user$ u1, sys.user$ u2, sys.user$ u3 where j
ob=:1 and (next_date <= sysdate or :2 != 0) and lowner = u1.name and powner = u
2.name and cowner = u3.name

         192          192      1.80 cchx5kcx6tgmz
Module: EM_PING
SELECT COUNT(*) FROM MGMT_FAILOVER_TABLE WHERE SYSDATE-LAST_TIME_STAMP > (HEARTB
EAT_INTERVAL*4)/(24*60*60)

         192          192      1.80 d59tgwpksgs94
Module: EM_PING
SELECT EMD_URL, EVENT_TYPE, OCCUR_TIME FROM MGMT_JOB_EMD_STATUS_QUEUE ORDER BY O
CCUR_TIME

         192          192      1.80 dwssdqx28tzf5
select sysdate + 1 / (24 * 60) from dual

         169          370      1.59 3c1kubcdjnppq
update sys.col_usage$ set equality_preds = equality_preds + decode(bitan
d(:flag,1),0,0,1), equijoin_preds = equijoin_preds + decode(bitand(:flag
,2),0,0,1), nonequijoin_preds = nonequijoin_preds + decode(bitand(:flag,4),0,0
,1), range_preds = range_preds + decode(bitand(:flag,8),0,0,1),

         169          169      1.59 b2gnxm5z6r51n
lock table sys.col_usage$ in exclusive mode nowait

          -------------------------------------------------------------

SQL ordered by Sharable Memory               DB/Inst: PENG/peng  Snaps: 64-70

                  No data exists for this section of the report.
          -------------------------------------------------------------

SQL ordered by Version Count                 DB/Inst: PENG/peng  Snaps: 64-70

                  No data exists for this section of the report.
          -------------------------------------------------------------

linux
相关资讯       Oracle教程 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款