基於AWR實現STATSPACK報告(2-系統效率)
Instance Efficiency Percentages
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Buffer Nowait %: 99.89 Redo NoWait %: 100.00
Buffer Hit %: 95.39 In-memory Sort %: 100.00
Library Hit %: 99.52 Soft Parse %: 99.46
Execute to Parse %: 76.88 Latch Hit %: 99.35
Parse CPU to Parse Elapsd %: 1.25 % Non-Parse CPU: 99.94
++++-分析-++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Buffer Nowait %-->round(100*(1-:bfwt/:gets),2) where:
bfwt-->total number of waits for all buffers
SELECT sum(e.wait_count) - sum(b.wait_count)
FROM dba_hist_waitstat b, dba_hist_waitstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
gets-->total number of buffers gets from cache
SELECT sum(e.VALUE) - sum(b.VALUE)
FROM dba_hist_sysstat b, dba_hist_sysstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_name = e.stat_name
AND b.stat_name in('consistent gets from cache','db block gets from cache');
Redo NoWait %-->round(100*(1-:rlsr/:rent),2) where:
rlsr-->redo log space requests:
SELECT e.VALUE - b.VALUE
FROM dba_hist_sysstat b, dba_hist_sysstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_name = e.stat_name
AND b.stat_name ='redo log space requests';
rent-->redo entries:
SELECT e.VALUE - b.VALUE
FROM dba_hist_sysstat b, dba_hist_sysstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_name = e.stat_name
AND b.stat_name ='redo entries';
Buffer Hit %-->round(100*(1 - :phyrc/:gets),2) where:
phyrc-->physical reads cache:
SELECT e.VALUE - b.VALUE
FROM dba_hist_sysstat b, dba_hist_sysstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_name = e.stat_name
AND b.stat_name ='physical reads cache';
gets-->total number of buffers gets from cache
SELECT sum(e.VALUE) - sum(b.VALUE)
FROM dba_hist_sysstat b, dba_hist_sysstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_name = e.stat_name
AND b.stat_name in('consistent gets from cache','db block gets from cache');
In-memory Sort %-->round(100*:srtm/(:srtd+:srtm),2) where:
srtm-->sorts (memory)
SELECT e.VALUE - b.VALUE
FROM dba_hist_sysstat b, dba_hist_sysstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_name = e.stat_name
AND b.stat_name ='sorts (memory)';
srtd-->sorts (disk)
SELECT e.VALUE - b.VALUE
FROM dba_hist_sysstat b, dba_hist_sysstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_name = e.stat_name
AND b.stat_name ='sorts (disk)';
Library Hit %-->round(100*:lhtr,2) where:
lhtr-->Library cache hit ratio=(ehsum - bhsum) / (epsum - bpsum)
(ehsum - bhsum)-->
SELECT sum(e.pinhits) - sum(b.pinhits)
FROM dba_hist_librarycache b, dba_hist_librarycache e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid;
(epsum - bpsum)-->
SELECT sum(e.pins) - sum(b.pins)
FROM dba_hist_librarycache b, dba_hist_librarycache e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid;
Soft Parse %-->round(100*(1-:hprs/:prse),2) where:
prse-->parse count (total)
SELECT e.VALUE - b.VALUE
FROM dba_hist_sysstat b, dba_hist_sysstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_name = e.stat_name
AND b.stat_name ='parse count (total)';
hprs-->parse count (hard)
SELECT e.VALUE - b.VALUE
FROM dba_hist_sysstat b, dba_hist_sysstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_name = e.stat_name
AND b.stat_name ='parse count (hard)';
Execute to Parse %-->round(100*(1-:prse/:exe),2) where:
prse-->parse count (total)
SELECT e.VALUE - b.VALUE
FROM dba_hist_sysstat b, dba_hist_sysstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_name = e.stat_name
AND b.stat_name ='parse count (hard)';
exe-->execute count
SELECT e.VALUE - b.VALUE
FROM dba_hist_sysstat b, dba_hist_sysstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_name = e.stat_name
AND b.stat_name ='execute count';
Latch Hit %-->round(100*(1-:lhr),2) where:
lhr-->latch hit ratio=( elmis - blmis ) / ( elget - blget )
( elmis - blmis )-->
SELECT sum(e.misses) - sum(b.misses)
FROM dba_hist_latch b, dba_hist_latch e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid;
( elget - blget )-->
SELECT sum(e.gets) - sum(b.gets)
FROM dba_hist_latch b, dba_hist_latch e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid;
Parse CPU to Parse Elapsd %-->round(100*:prscpu/:prsela,2) where:
prscpu-->parse time cpu
SELECT e.VALUE - b.VALUE
FROM dba_hist_sysstat b, dba_hist_sysstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_name = e.stat_name
AND b.stat_name ='parse time cpu';
prsela-->parse time elapsed
SELECT e.VALUE - b.VALUE
FROM dba_hist_sysstat b, dba_hist_sysstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_name = e.stat_name
AND b.stat_name ='parse time elapsed';
% Non-Parse CPU-->round(100*(1-(:prscpu/:tcpu)),2) where:
prscpu-->parse time cpu
SELECT e.VALUE - b.VALUE
FROM dba_hist_sysstat b, dba_hist_sysstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_name = e.stat_name
AND b.stat_name ='parse time cpu';
tcpu-->CPU used by this session
SELECT e.VALUE - b.VALUE
FROM dba_hist_sysstat b, dba_hist_sysstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_name = e.stat_name
AND b.stat_name ='CPU used by this session';
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Shared Pool Statistics Begin End
------ ------
Memory Usage %: 67.50 66.38
% SQL with executions>1: 67.49 78.05
% Memory for SQL w/exec>1: 76.06 86.14
++++-分析-++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Memory Usage %-->100*(1-:bfrm/:bspm) where:
bfrm-->
SELECT bytes
FROM dba_hist_sgastat t
WHERE t.dbid = &dbid
AND t.instance_number = &inst_num
AND t.snap_id = &bid
AND t.NAME = 'free memory'
AND t.pool IN ('shared pool', 'all pools');
bspm=bsp-->
SELECT VALUE
FROM dba_hist_parameter t
WHERE t.dbid = &dbid
AND t.instance_number = &inst_num
AND t.snap_id = &bid
AND t.parameter_name = 'shared_pool_size';
% SQL with executions>1-->100*(1-single_use_sql/total_sql) where:
single_use_sql-->
SELECT single_use_sql
FROM dba_hist_sql_summary t
WHERE t.dbid = &dbid
AND t.instance_number = &inst_num
AND t.snap_id = &bid;
total_sql-->
SELECT total_sql
FROM dba_hist_sql_summary t
WHERE t.dbid = &dbid
AND t.instance_number = &inst_num
AND t.snap_id = &bid;
% Memory for SQL w/exec>1-->100*(1-single_use_sql_mem/total_sql_mem) where:
single_use_sql_mem-->
SELECT single_use_sql_mem
FROM dba_hist_sql_summary t
WHERE t.dbid = &dbid
AND t.instance_number = &inst_num
AND t.snap_id = &bid;
total_sql_mem-->
SELECT total_sql_mem
FROM dba_hist_sql_summary t
WHERE t.dbid = &dbid
AND t.instance_number = &inst_num
AND t.snap_id = &bid;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Top 5 Timed Events Avg %Total
~~~~~~~~~~~~~~~~~~ wait Call
Event Waits Time (s) (ms) Time
----------------------------------------- ------------ ----------- ------ ------
gc buffer busy 138,659 11,485 83 69.3
CPU time 3,248 19.6
db file scattered read 663,066 380 1 2.3
db file sequential read 416,636 348 1 2.1
gc cr multi block request 1,176,466 240 0 1.4
++++-分析-++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
select event_name
, waits
, time
, avwait
, pctwtt
from (select event_name, waits, time, pctwtt, avwait
from (select e.event_name event_name
, e.total_waits - nvl(b.total_waits,0) waits
, (e.time_waited_micro - nvl(b.time_waited_micro,0))/1000000 time
, decode ( (e.total_waits - nvl(b.total_waits, 0)), 0, to_number(NULL)
, ( (e.time_waited_micro - nvl(b.time_waited_micro,0)) / 1000.0 )
/ (e.total_waits - nvl(b.total_waits,0))
) avwait
, decode(&twt + &tcpu*10000, 0, 0,
100
* (e.time_waited_micro - nvl(b.time_waited_micro,0))
/ (&twt + &tcpu*10000)
) pctwtt
from dba_hist_system_event b
, dba_hist_system_event e
where b.snap_id(+) = &snap_id1
and e.snap_id = &snap_id2
and b.dbid(+) = &dbid
and e.dbid = &dbid
and b.instance_number(+) = &instance_number
and e.instance_number = &instance_number
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
, &tcpu/100 time
, to_number(null) avwait
, decode(&twt + &tcpu*10000, 0, 0,
100
* &tcpu*10000
/ (&twt + &tcpu*10000)
) pctwait
from dual
where &tcpu > 0
)
order by time desc, waits desc
)
where rownum <= 5;
twt-->total wait time for all non-idle events
SELECT sum(e.time_waited_micro) - sum(b.time_waited_micro)
FROM dba_hist_system_event b, dba_hist_system_event e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.wait_class<>'Idle'
AND e.wait_class<>'Idle';
tcpu-->CPU used by this session
SELECT e.VALUE - b.VALUE
FROM dba_hist_sysstat b, dba_hist_sysstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_name = e.stat_name
AND b.stat_name ='CPU used by this session';
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Host CPU (CPUs: 32)
~~~~~~~~ Load Average
Begin End User System Idle WIO WCPU
------- ------- ------- ------- ------- ------- --------
0.00 0.01 4.06 1.28 94.67 0.49 4.99
++++-分析-++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
bncpu-->NUM_CPUS:
SELECT VALUE
FROM dba_hist_osstat t
WHERE t.dbid = &dbid
AND t.instance_number = &inst_num
AND t.snap_id = &bid
AND t.stat_id = 0;
blod/elod-->LOAD:
SELECT VALUE
FROM dba_hist_osstat t
WHERE t.dbid = &dbid
AND t.instance_number = &inst_num
AND t.snap_id = &bid
AND t.stat_id = 15;
User-->100*(:utic / :ttic)
System-->100*(:stic / :ttic)
Idle-->100*(:itic / :ttic)
WIO-->100*(:iotic / :ttic)
WCPU-->100*(:oscpuw / :ttic)
其中:
utic-->USER_TIME
SELECT e.VALUE - b.VALUE
FROM dba_hist_osstat b, dba_hist_osstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_id = e.stat_id
AND b.stat_id = 3;
stic-->SYS_TIME
SELECT e.VALUE - b.VALUE
FROM dba_hist_osstat b, dba_hist_osstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_id = e.stat_id
AND b.stat_id = 4;
itic-->IDLE_TIME
SELECT e.VALUE - b.VALUE
FROM dba_hist_osstat b, dba_hist_osstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_id = e.stat_id
AND b.stat_id = 1;
iotic-->IOWAIT_TIME - solaris:
SELECT e.VALUE - b.VALUE
FROM dba_hist_osstat b, dba_hist_osstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_id = e.stat_id
AND b.stat_id = 5;
oscpuw-->OS_CPU_WAIT_TIME - solaris:
SELECT e.VALUE - b.VALUE
FROM dba_hist_osstat b, dba_hist_osstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_id = e.stat_id
AND b.stat_id = 13;
btic-->BUSY_TIME:
SELECT e.VALUE - b.VALUE
FROM dba_hist_osstat b, dba_hist_osstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_id = e.stat_id
AND b.stat_id = 2;
ttic-->total ticks (cs),= btic + itic,
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Instance CPU
~~~~~~~~~~~~
% of total CPU for Instance: 4.21
% of busy CPU for Instance: 78.92
%DB time waiting for CPU - Resource Mgr:
++++-分析-++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
% of total CPU for Instance-->100* ((:dbcpu+:bgcpu)/1000000)/(:ttics)
% of busy CPU for Instance-->100* ((:dbcpu+:bgcpu)/1000000)/ ((:btic)/100)
%DB time waiting for CPU - Resource Mgr-->100*(round(:rwtic/:dbtim))
其中:
dbcpu-->
SELECT e.VALUE - b.VALUE
FROM dba_hist_sys_time_model b, dba_hist_sys_time_model e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_name = e.stat_name
AND b.stat_name ='DB CPU';
bgcpu-->
SELECT e.VALUE - b.VALUE
FROM dba_hist_sys_time_model b, dba_hist_sys_time_model e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_name = e.stat_name
AND b.stat_name ='background cpu time';
btic-->BUSY_TIME:
SELECT e.VALUE - b.VALUE
FROM dba_hist_osstat b, dba_hist_osstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_id = e.stat_id
AND b.stat_id = 2;
itic-->IDLE_TIME:
SELECT e.VALUE - b.VALUE
FROM dba_hist_osstat b, dba_hist_osstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_id = e.stat_id
AND b.stat_id = 1;
ttics-->total ticks (s),(btic+itic)/100
dbtim-->
SELECT e.VALUE - b.VALUE
FROM dba_hist_sys_time_model b, dba_hist_sys_time_model e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_name = e.stat_name
AND b.stat_name ='DB time';
rwtic-->RSRC_MGR_CPU_WAIT_TIME:
SELECT e.VALUE - b.VALUE
FROM dba_hist_osstat b, dba_hist_osstat e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_id = e.stat_id
AND b.stat_id = 14;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Memory Statistics Begin End
~~~~~~~~~~~~~~~~~ ------------ ------------
Host Mem (MB): 65,536.0 65,536.0
SGA use (MB): 4,096.0 4,096.0
PGA use (MB): 694.5 697.6
% Host Mem used for SGA+PGA: 7.3 7.3
++++-分析-++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Host Mem (MB)-->bpmem/1024/1024:
SELECT VALUE
FROM dba_hist_osstat t
WHERE t.dbid = &dbid
AND t.instance_number = &inst_num
AND t.snap_id = &bid
AND t.stat_id = 1008;
SGA use (MB)-->bsgaalloc/1024/1024:
bsgaalloc-->
SELECT sum(value)
FROM dba_hist_sga t
WHERE t.dbid = &dbid
AND t.instance_number = &inst_num
AND t.snap_id = &bid;
PGA use (MB)-->bpgaalloc/1024/1024:
bpgaalloc-->
SELECT value
FROM dba_hist_pgastat t
WHERE t.dbid = &dbid
AND t.instance_number = &inst_num
AND t.snap_id = &bid
AND t.name='total PGA allocated';
% Host Mem used for SGA+PGA:-->100*(bpgaalloc + bsgaalloc)/bpmem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Time Model System Stats DB/Inst: ORADB/oraDB1 Snaps: 66-67
-> Ordered by % of DB time desc, Statistic name
Statistic Time (s) % of DB time
----------------------------------- -------------------- ------------
sql execute elapsed time 16,696.4 98.3
DB CPU 3,803.2 22.4
parse time elapsed 145.9 .9
hard parse elapsed time 59.1 .3
repeated bind elapsed time 2.5 .0
sequence load elapsed time 2.2 .0
connection management call elapsed 0.7 .0
PL/SQL compilation elapsed time 0.7 .0
hard parse (sharing criteria) elaps 0.6 .0
PL/SQL execution elapsed time 0.6 .0
...
++++-分析-++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
SELECT statnam,
tdif / 1024 / 1024 tdifs,
decode(order_col, 0, 100 * tdif / &DBtime, to_number(NULL)) pctdb,
order_col
FROM (SELECT b.stat_name statnam,
(e.VALUE - b.VALUE) tdif,
decode(b.stat_name,
'DB time',
1,
'background cpu time',
2,
'background elapsed time',
2,
0) order_col
FROM dba_hist_sys_time_model e, dba_hist_sys_time_model b
WHERE b.snap_id = &bid
AND e.snap_id = &eid
AND b.dbid = &dbid
AND e.dbid = &dbid
AND b.instance_number = &inst_num
AND e.instance_number = &inst_num
AND b.stat_id = e.stat_id
AND e.VALUE - b.VALUE > 0)
ORDER BY order_col, decode(pctdb, NULL, tdifs, pctdb) DESC;
DBtime/1000/1000-->
SELECT e.VALUE - b.VALUE
FROM dba_hist_sys_time_model b, dba_hist_sys_time_model e
WHERE b.dbid = e.dbid
AND b.instance_number = e.instance_number
AND b.dbid = &dbid
AND b.instance_number = &inst_num
AND b.snap_id = &bid
AND e.snap_id = &eid
AND b.stat_name = e.stat_name
AND b.stat_name ='DB time';
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/18922393/viewspace-701147/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- statspack、awr、addm,ash影片分享
- AWR報告基礎操作
- 【AWR】Oracle批量生成awr報告指令碼Oracle指令碼
- Unity——基於ShaderLab實現光照系統Unity
- AWR TOP SQL實現SQL
- 基於Spring Security實現許可權管理系統Spring
- Oracle生成awr報告操作步驟Oracle
- 實現基於內容的電影推薦系統—程式碼實現
- 基於ZooKeeper,Spring設計實現的引數系統Spring
- 基於Netty的Android系統IM簡單實現原理NettyAndroid
- ORACLE AWR效能報告和ASH效能報告的解讀Oracle
- awr-----一份經典的負載很高的awr報告負載
- awr報告每天自動生成指令碼指令碼
- 12.2 如何單為PDB建立AWR報告
- Unity 揹包系統的完整實現(基於MVC框架思想)UnityMVC框架
- 基於rust實現的事件系統,支援同步和非同步Rust事件非同步
- Oracle 12.2 physical standby備庫收集AWR報告Oracle
- 基於前端技術實現的全面預算編制系統前端
- 基於Laravel5.8實現的元件化後臺管理系統Laravel元件化
- 基於mtcnn/facenet/tensorflow實現人臉識別登入系統CNN
- 基於 LLM 的智慧運維 Agent 系統設計與實現運維
- 基於long pull實現簡易的訊息系統參考
- 基於深度學習的回聲消除系統與Pytorch實現深度學習PyTorch
- 基於 Nginx&Lua 實現自建服務端埋點系統Nginx服務端
- 基於java的網路招聘系統的設計與實現Java
- 基於java的文章釋出系統的設計與實現Java
- 基於感知機的人名-性別預測系統 —— Python實現Python
- 大量STATSPACK資料統計分析
- 作業系統課程實踐報告作業系統
- 基於zookeeper實現統一配置管理
- 基於 Prometheus 的監控系統實踐Prometheus
- 基於 Flink CDC 的實時同步系統
- 【AWR】Oracle資料庫建立awr基線Oracle資料庫
- 基於spring的醫院人事管理系統設計和實現Spring
- 基於SpringBoot+Netty實現一個自己的推送服務系統Spring BootNetty
- 影片直播系統解決方案—是基於聲網SDK實現的
- 基於SSH培訓機構管理系統的設計與實現
- daedalOS:基於WebAssembly在瀏覽器中實現桌面作業系統Web瀏覽器作業系統
- 基於“結構體”實現簡易版學生管理系統(Golang)結構體Golang