oracle實用sql(1)--redolog歸檔頻率
點選(此處)摺疊或開啟
-
SELECT trunc(first_time) "Date",
-
to_char(first_time, 'Dy') "Day",
-
count(1) "Total",
-
SUM(decode(to_char(first_time, 'hh24'),'00',1,0)) "h0",
-
SUM(decode(to_char(first_time, 'hh24'),'01',1,0)) "h1",
-
SUM(decode(to_char(first_time, 'hh24'),'02',1,0)) "h2",
-
SUM(decode(to_char(first_time, 'hh24'),'03',1,0)) "h3",
-
SUM(decode(to_char(first_time, 'hh24'),'04',1,0)) "h4",
-
SUM(decode(to_char(first_time, 'hh24'),'05',1,0)) "h5",
-
SUM(decode(to_char(first_time, 'hh24'),'06',1,0)) "h6",
-
SUM(decode(to_char(first_time, 'hh24'),'07',1,0)) "h7",
-
SUM(decode(to_char(first_time, 'hh24'),'08',1,0)) "h8",
-
SUM(decode(to_char(first_time, 'hh24'),'09',1,0)) "h9",
-
SUM(decode(to_char(first_time, 'hh24'),'10',1,0)) "h10",
-
SUM(decode(to_char(first_time, 'hh24'),'11',1,0)) "h11",
-
SUM(decode(to_char(first_time, 'hh24'),'12',1,0)) "h12",
-
SUM(decode(to_char(first_time, 'hh24'),'13',1,0)) "h13",
-
SUM(decode(to_char(first_time, 'hh24'),'14',1,0)) "h14",
-
SUM(decode(to_char(first_time, 'hh24'),'15',1,0)) "h15",
-
SUM(decode(to_char(first_time, 'hh24'),'16',1,0)) "h16",
-
SUM(decode(to_char(first_time, 'hh24'),'17',1,0)) "h17",
-
SUM(decode(to_char(first_time, 'hh24'),'18',1,0)) "h18",
-
SUM(decode(to_char(first_time, 'hh24'),'19',1,0)) "h19",
-
SUM(decode(to_char(first_time, 'hh24'),'20',1,0)) "h20",
-
SUM(decode(to_char(first_time, 'hh24'),'21',1,0)) "h21",
-
SUM(decode(to_char(first_time, 'hh24'),'22',1,0)) "h22",
-
SUM(decode(to_char(first_time, 'hh24'),'23',1,0)) "h23",
-
decode(trunc(first_time),
-
trunc(sysdate), round(count(1) / (24 * to_number(to_char(sysdate, 'sssss')+1) / 86400),2),
-
round(count(1) / 24, 2)) "Avg"
-
FROM V$log_history
-
group by trunc(first_time), to_char(first_time, 'Dy')
- Order by 1;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28539951/viewspace-2113727/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle 歸檔切換頻率Oracle
- 資料庫redolog切換頻率統計分析資料庫
- ORACLE 歸檔日誌資訊sqlOracleSQL
- ORACLE檢視SQL的執行次數/頻率OracleSQL
- ORACLE RAC 啟用歸檔Oracle
- oracle 歸檔/非歸檔Oracle
- 【SQL】Oracle 歸檔日誌暴增原因分析SQLOracle
- oracle歸檔Oracle
- Oracle10G歸檔模式應用Oracle模式
- 調整oracle redologOracle Redo
- Oracle歸檔模式和非歸檔模式Oracle模式
- Oracle資料庫頻繁歸檔問題的解決辦法Oracle資料庫
- 歸檔告警頻繁監控指令碼指令碼
- oracle歸檔模式Oracle模式
- oracle 開歸檔Oracle
- Oracle 歸檔模式Oracle模式
- oracle 重建redolog 後者增加redolog大小方法Oracle
- 更改ORACLE歸檔路徑及歸檔模式Oracle模式
- Oracle 歸檔與非歸檔模式的更改Oracle模式
- Oracle RAC 歸檔與非歸檔切換Oracle
- Oracle9.2.0.7 RAC , 例項2的歸檔到了例項1的歸檔目錄 ?Oracle
- oracle 10g rac 啟用歸檔模式Oracle 10g模式
- matlab統計 頻數、頻率和累積頻率Matlab
- Oracle歸檔模式與非歸檔模式設定Oracle模式
- ORACLE資料庫歸檔改為非歸檔Oracle資料庫
- Oracle實驗8--Merge與歸檔Oracle
- go最大堆 實現頻率排序Go排序
- oracle歸檔日誌Oracle
- ORACLE刪除歸檔Oracle
- Oracle 修改歸檔模式Oracle模式
- Oracle 歸檔日誌Oracle
- oracle歸檔模式管理Oracle模式
- oracle的歸檔模式Oracle模式
- oracle 歸檔設定Oracle
- oracle archive歸檔初步OracleHive
- redolog檔案更改路徑
- Oracle檢視歸檔是否被備庫應用Oracle
- Oracle10g RAC下啟用歸檔模式Oracle模式