[20130527]估計redo檔案的大小.txt

lfree發表於2013-05-28
[20130527]估計redo檔案的大小.txt

    oracle一般建議20-30分鐘切換一次redo檔案.簡單的查詢計算如下:

參考連結:


        
SELECT
(SELECT ROUND(AVG(BYTES) / 1024 / 1024, 2) FROM V$LOG) AS "Redo size (MB)",
ROUND((20 / AVERAGE_PERIOD) * (SELECT AVG(BYTES)
FROM V$LOG) / 1024 / 1024, 2) AS "Recommended Size (MB)"
FROM (SELECT AVG((NEXT_TIME - FIRST_TIME) * 24 * 60) AS AVERAGE_PERIOD
FROM V$ARCHIVED_LOG
WHERE FIRST_TIME > SYSDATE - 3
AND TO_CHAR(FIRST_TIME, 'HH24:MI') BETWEEN
&START_OF_PEAK_HOURS AND &END_OF_PEAK_HOURS);

--如果換成30分鐘,修改紅色部分.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-762153/,如需轉載,請註明出處,否則將追究法律責任。

相關文章