oracle檢視昨天產生歸檔日誌檔案總量
<div>
<br />
</div>
<div>
<div>
#檢視v$archived_log
</div>
<div>
<br />
</div>
<div>
V$ARCHIVED_LOG displays archived log information from the control file, including archive log names. An archive log record is inserted after the online redo log is successfully archived or cleared (name column is NULL if the log was cleared). If the log is archived twice, there will be two archived log records with the same THREAD#, SEQUENCE#, and FIRST_CHANGE#, but with a different name. An archive log record is also inserted when an archive log is restored from a backup set or a copy and whenever a copy of a log is made with the RMAN COPY command.
</div>
<div>
(這些歸檔日誌檔案的資訊來自控制檔案)
</div>
<div>
查詢涉及的列名:
</div>
<div>
block_size NUMBER Redo log block size. This is the logical block size of the archived log, which is the same as the logical block size of the online log from which the archived log was opied. The online log logical block size is a platform. specific value that is not adjustable by the user.
</div>
<div>
<br />
</div>
<div>
block NUMBER Size of the archived log (in blocks)
</div>
<div>
<br />
</div>
<div>
fisrt_time DATE Timestamp of the first change
</div>
<div>
<br />
</div>
<div>
檢視昨天日誌檔案產生的量(MB)
</div>
<div>
SELECT SUM(block_size*blocks)/1024/1024/1024 "SIZE(MB)"
</div>
<div>
FROM v$archived_log
</div>
<div>
WHERE TRUNC(first_time) >= TRUNC(sysdate-1)
</div>
<div>
AND TRUNC(first_time) < TRUNC(sysdate);
</div>
<div>
<br />
</div>
<div>
檢視以前每天產生的日誌檔案(MB)
</div>
<div>
SELECT TRUNC(first_time) "TIME",SUM(block_size*blocks)/1024/1024/1024 "SIZE(MB)"
</div>
<div>
FROM v$archived_log
</div>
<div>
GROUP BY TRUNC(first_time);
</div>
</div>
<div>
<br />
</div>
<div>
<br />
</div>
<div>
<br />
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28211342/viewspace-2137113/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 每天產生REDO歸檔日誌量
- 檢視歸檔日誌空間
- oracle歸檔日誌Oracle
- Oracle 歸檔日誌Oracle
- 控制檔案/歸檔日誌
- oracle歸檔模式下imp匯入資料,產生的歸檔日誌大小記錄Oracle模式
- 【Oracle】歸檔日誌管理-設定歸檔日誌路徑以及歸檔日誌冗餘Oracle
- 群友問題--近期每秒頻繁產生40m歸檔日誌檔案
- 歸檔oracle alert日誌Oracle
- Oracle歸檔日誌清理Oracle
- 備份歸檔日誌檔案
- 日誌檔案和歸檔管理
- 刪除歸檔日誌檔案
- 如何正確刪除ORACLE歸檔日誌檔案Oracle
- oracle資料庫歸檔日誌量陡增分析Oracle資料庫
- 用RMAN備份歸檔日誌時檢查歸檔日誌是否存在
- 編輯產生的init.ora文字檔案增加歸檔日誌引數段
- 測試DML 時產生歸檔日誌和閃回日誌的比
- 日誌檔案和歸檔日誌檔案的關係以及如何切換日誌
- logmnr挖掘歸檔日誌檔案
- 改變歸檔日誌檔案大小
- oracle之 Oracle歸檔日誌管理Oracle
- Oracle RMAN 清除歸檔日誌Oracle
- ORACLE 歸檔日誌資訊sqlOracleSQL
- oracle刪除歸檔日誌Oracle
- Oracle RMAN清除歸檔日誌Oracle
- Oracle歸檔日誌管理技巧Oracle
- oracle archive log 歸檔日誌OracleHive
- Oracle歸檔日誌刪除Oracle
- Oracle使用備份檔案集恢復歸檔日誌Oracle
- 當ORACLE歸檔日誌滿後如何正確刪除歸檔日誌Oracle
- 歸檔日誌
- 歸檔日誌大小 與使用rman 備份後的歸檔日誌產生的備份集大小的關係
- 歸檔日誌檔案無故地增長
- 在Oracle中,如何定時刪除歸檔日誌檔案?Oracle
- 【Oracle日誌】- 日誌檔案重建Oracle
- oracle歸檔日誌過滿清理Oracle
- ORACLE RMAN 還原歸檔日誌Oracle