prompt WORKLOAD REPOSITORY CHART report for prompt
prompt promptDB Name | DB Id | Instance | Inst num | Release | RAC | Host |
---|---|---|---|---|---|---|
SELECT A.NAME||' | ' ||A.DBID||' | '||(SELECT B.INSTANCE_NAME||' | '||&inid||' | '||B.VERSION || ' | '||(SELECT value FROM V$PARAMETER C WHERE C.NAME ='cluster_database')||' | '||b.HOST_NAME FROM V$INSTANCE B WHERE B.INSTANCE_NUMBER=1) FROM V$DATABASE A; prompt |
Snap Id | Snap Time | |
---|---|---|
Begin Snap: | &bid | select nvl((select to_char(a.begin_interval_time,'yyyy-mm-dd hh24:mi:ss') from dba_hist_snapshot a where a.instance_number=&inid and a.snap_id=&bid), 'minimum snap time') from dual; prompt |
End Snap: | &eid | select nvl((select to_char(a.begin_interval_time,'yyyy-mm-dd hh24:mi:ss') from dba_hist_snapshot a where a.instance_number=&inid and a.snap_id=&eid), 'maximum snap time') from dual; prompt |
prompt Main Report prompt
promptprompt
-
prompt
- CPU Utilization prompt
- Time Model : DB TIME DB CPU SQL EXEC TIME prompt
- Active session history prompt
- SQL execution count prompt
- Average SQL execution time prompt
- Session logic reads prompt
- Physical writes and reads prompt
- User commits prompt
- Connections prompt
- Redo Size prompt
- Global cache transformation prompt
- Global cache lost prompt
- GCS/GES messages prompt
- Global Cache Average CR Time prompt
- Global Cache Average Current Get Time prompt
- Buffer Cache Hit POINT prompt
- PGA Cache Hit POINT prompt
- Library Hit POINT prompt
- Latch Hit POINT prompt
- Latch:shared pool prompt
- Latch:row cache objects prompt
- Latch:cache buffers chains prompt
- Latch:cache buffers lru chain prompt
- Latch:gc element prompt
- Latch:DML lock allocation prompt
- Parse count prompt
- Hard parse count prompt
- Slowest File Average Read Wait time prompt
- Table fetch continued row prompt
- Dirty buffers inspected prompt
- Cell physical IO bytes eligible for predicate offload prompt
- Cell physical IO bytes saved by storage index prompt
- Cell physical IO interconnect bytes returned by smart scan prompt
- Cell IO uncompressed bytes prompt
- Top 5 Wait Event prompt
- Top 5 Wait Event trends prompt
Cpu Utilization
promptSERVER CPU | promptDB CPU | promptBACKUP CPU | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt Time model: DB TIME , DB CPU TIME, SQL EXECUTION TIME
promptDB TIME | promptDB CPU | promptSQL EXEC TIMES | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt Active Session History
promptCPU | promptConcurrency | promptSystemio | promptuserio | promptAdministrative | promptConfiguration | promptApplication | promptNetwork | promptCommit | promptScheduler | promptCluster | promptQueueing | promptOther | promptCPU | promptConcurrency | promptSystemio | promptuserio | promptAdministrative | promptConfiguration | promptApplication | promptNetwork | promptCommit | promptScheduler | promptCluster | promptQueueing | promptOther | promptCPU | promptConcurrency | promptSystemio | promptuserio | promptAdministrative | promptConfiguration | promptApplication | promptNetwork | promptCommit | promptScheduler | promptCluster | promptQueueing | promptOther | promptCPU | promptConcurrency | promptSystemio | promptuserio | promptAdministrative | promptConfiguration | promptApplication | promptNetwork | promptCommit | promptScheduler | promptCluster | promptQueueing | promptOther | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt
prompt Workload: SQL EXECUTION COUNT
promptSQL EXECUTION COUNT Per Second | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt AVERAGE SQL EXECUTION TIME
promptAVG SQL EXECUTION TIME | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt SESSION LOGIC READS AND CONSISTENT GETS
promptSESSION LOGIC READ Per Second | promptCONSISTENT GETS Per Second | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt PHYSICAL WRITES AND READS
promptPHYSICAL READ (MB) Per Second | promptPHYSICAL WRITE (MB) Per Second | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt>USER COMMITS
promptUSER COMMITS Per Second | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt CONNECTIONS
promptPROCESSES | promptSESSIONS | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
promptREDO SIZE
promptREDO LOG SIZE(MB) | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt GLOBAL CACHE TRANSFORMATION
promptGlobal Cache blocks received KB / second | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt GLOBAL CACHE LOST
promptGlobal Cache blocks lost | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt GCS/GES MESSAGES
promptGCS/GES messages sent: | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt Global Cache Average CR Time
promptAverage | promptMaxval | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt Global Cache Average Current Get Time
promptAverage | promptMaxval | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt Buffer Cache hit point
prompthit point | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt PGA Cache hit point
prompthit point | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt Library Hit Point
prompthit point | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt Latch hit point
promptLatch hit point % | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt
prompt Latch:shared pool
promptLatch:shared pool - MISSES RATE N/10000 | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt
prompt Latch:row cache objects
promptLatch:row cache objects - MISSES RATE N/10000 | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt
prompt Latch:cache buffers chains
promptLatch:cache buffers chains - MISSES RATE N/10000 | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt
prompt Latch:cache buffers lru chain
promptLatch:cache buffers lru chain - MISSES RATE N/10000 | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt
prompt Latch:gc element
promptLatch:gc element - MISSES RATE N/10000 | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt
prompt Latch:DML lock allocation
promptLatch:DML lock allocation - MISSES RATE N/10000 | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt
prompt Parses
promptParses Per Second (count) | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt
prompt Hard Parse
promptHard Parses Per Second (count) | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt
prompt Top3 File Average Read Time
promptTop3 File Average Read Time MS | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt
prompt Table fetch continued row
promptTable fetch continued row / Second | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt
prompt Dirty buffers inspected
promptDirty buffers inspected / Second | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt
prompt Cell physical IO MB eligible for predicate offload
promptCell physical IO MB eligible for predicate offload / Second | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt
prompt Cell physical IO MB saved by storage index
promptCell physical IO MB saved by storage index / Second | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt
prompt Cell physical IO interconnect MB returned by smart scan
promptCell physical IO interconnect MB returned by smart scan / Second | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt
prompt Cell IO uncompressed MB
promptCell IO uncompressed MB / Second | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt Top5 Wait Event
promptTop5 Wait Event Of Whole Period | prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
prompt Top 5 Wait Event trends
prompt
prompt
prompt Back to Top
prompt
prompt
prompt
prompt
declare
vevent varchar2(100);
vtime number;
vavgtime number;
vpctwt number;
vwaits number;
vwaitclass varchar2(100);
vbid number ;
veid number ;
vinid number:=&inid;
startid number:=&bid;
endid number:=&eid;
vstarttime varchar2(200);
vendtime varchar2(200);
cursor c1 is
SELECT EVENT,
WAITS,
trunc(TIME,2),
trunc(DECODE(WAITS,
NULL,
TO_NUMBER(NULL),
0,
TO_NUMBER(NULL),
TIME / WAITS * 1000),2) AVGWT,
trunc(PCTWTT,2) ,
WAIT_CLASS
FROM (SELECT EVENT, WAITS, TIME, PCTWTT, WAIT_CLASS
FROM (SELECT E.EVENT_NAME EVENT,
E.TOTAL_WAITS_FG - NVL(B.TOTAL_WAITS_FG, 0) WAITS,
(E.TIME_WAITED_MICRO_FG - NVL(B.TIME_WAITED_MICRO_FG, 0)) /
1000000 TIME,
100 *
(E.TIME_WAITED_MICRO_FG - NVL(B.TIME_WAITED_MICRO_FG, 0)) /
((SELECT sum(value)
FROM DBA_HIST_SYS_TIME_MODEL e
WHERE e.SNAP_ID = veid
AND e.INSTANCE_NUMBER = vinid
AND e.STAT_NAME = 'DB time') -
(SELECT sum(value)
FROM DBA_HIST_SYS_TIME_MODEL b
WHERE b.SNAP_ID = vbid
AND b.INSTANCE_NUMBER = vinid
AND b.STAT_NAME = 'DB time')) PCTWTT,
E.WAIT_CLASS WAIT_CLASS
FROM DBA_HIST_SYSTEM_EVENT B, DBA_HIST_SYSTEM_EVENT E
WHERE B.SNAP_ID(+) = vbid
AND E.SNAP_ID = veid
AND B.INSTANCE_NUMBER(+) = vinid
AND E.INSTANCE_NUMBER = vinid
AND B.EVENT_ID(+) = E.EVENT_ID
AND E.TOTAL_WAITS > NVL(B.TOTAL_WAITS, 0)
AND E.WAIT_CLASS != 'Idle'
UNION ALL
SELECT 'CPU time' EVENT,
TO_NUMBER(NULL) WAITS,
((SELECT sum(value)
FROM DBA_HIST_SYS_TIME_MODEL e
WHERE e.SNAP_ID = veid
AND e.INSTANCE_NUMBER = vinid
AND e.STAT_NAME = 'DB CPU') -
(SELECT sum(value)
FROM DBA_HIST_SYS_TIME_MODEL b
WHERE b.SNAP_ID = vbid
AND b.INSTANCE_NUMBER = vinid
AND b.STAT_NAME = 'DB CPU')) / 1000000 TIME,
100 * ((SELECT sum(value)
FROM DBA_HIST_SYS_TIME_MODEL e
WHERE e.SNAP_ID = veid
AND e.INSTANCE_NUMBER = vinid
AND e.STAT_NAME = 'DB CPU') -
(SELECT sum(value)
FROM DBA_HIST_SYS_TIME_MODEL b
WHERE b.SNAP_ID = vbid
AND b.INSTANCE_NUMBER = vinid
AND b.STAT_NAME = 'DB CPU')) /
((SELECT sum(value)
FROM DBA_HIST_SYS_TIME_MODEL e
WHERE e.SNAP_ID = veid
AND e.INSTANCE_NUMBER = vinid
AND e.STAT_NAME = 'DB time') -
(SELECT sum(value)
FROM DBA_HIST_SYS_TIME_MODEL b
WHERE b.SNAP_ID = vbid
AND b.INSTANCE_NUMBER = vinid
AND b.STAT_NAME = 'DB time')) PCTWTT,
NULL WAIT_CLASS
from dual
WHERE ((SELECT sum(value)
FROM DBA_HIST_SYS_TIME_MODEL e
WHERE e.SNAP_ID = veid
AND e.INSTANCE_NUMBER = vinid
AND e.STAT_NAME = 'DB CPU') -
(SELECT sum(value)
FROM DBA_HIST_SYS_TIME_MODEL b
WHERE b.SNAP_ID = vbid
AND b.INSTANCE_NUMBER = vinid
AND b.STAT_NAME = 'DB CPU')) > 0)
ORDER BY TIME DESC, WAITS DESC)
WHERE ROWNUM <= 5;
begin
for i in startid..endid-1 loop
vbid:=i;
veid:=i+1;
select to_char(a.end_interval_time,'yyyy-mm-dd hh24:mi') into vstarttime from dba_hist_snapshot a where snap_id=vbid and instance_number=&inid;
select to_char(a.end_interval_time,'yyyy-mm-dd hh24:mi') into vendtime from dba_hist_snapshot a where snap_id=veid and instance_number=&inid;
dbms_output.put_line('
');
end loop;
end;
/
prompt
prompt '||vstarttime||' to '||vendtime); dbms_output.put_line(' | |||||
---|---|---|---|---|---|
Event | Waits | '); dbms_output.put_line('Time(s) | Avg wait (ms) | % DB time | Wait Class |
'||vevent||' | ' ); dbms_output.put_line(''||vwaits||' | ' ); dbms_output.put_line(''||vtime||' | ' ); dbms_output.put_line(''||vavgtime||' | ' ); dbms_output.put_line(''||vpctwt||' | ' ); dbms_output.put_line(''||vwaitclass||' | ' ); dbms_output.put_line('
prompt prompt The License of Awr Chart prompt
prompt Permission is hereby granted by Author, free of charge, to any person abotaining a copy of this software, prompt
prompt to deal in the software without restriction, including without limitation the rights to use,copy or distribute . prompt
prompt The copy right of Chart javascript belongs to its author Nick Downie (http://www.nickdownie.com/) . This js is an open source project which prompt
prompt is under MIT license. prompt
prompt Author : prompt
Wang,Wenjie prompt
Ma,Xuefeng From prompt
prompt Oracle Advanced Customer Support prompt
promptprompt Technical support: Send email to WangWenjie - valen.wang@oracle.com prompt
prompt Version : 1.2 prompt
prompt Date : 2016-10 prompt prompt spool off set termout on !cat awrcrt_&_dbname._&inid._&bid._&eid..html|grep ORA-; prompt report wrote to awrcrt_&_dbname._&inid._&bid._&eid..html