denrepo

OracleRedo & archiving

Archived redo generated per day

Count and size of archived logs for the last 14 days, from the local destination only so standby copies aren't double-counted. Useful for sizing the FRA and the network link to a standby.

Not yet verified. How scripts are tested

ora-archive-volume.sql
1CLEAR COLUMNS2SET LINESIZE 100 PAGESIZE 100 TRIMOUT ON TAB OFF3COLUMN day  FORMAT A104COLUMN logs FORMAT 99,9905COLUMN gb   HEADING "GB" FORMAT 99,990.996 7SELECT TO_CHAR(TRUNC(completion_time), 'YYYY-MM-DD') AS day,8       COUNT(*) AS logs,9       ROUND(SUM(blocks * block_size) / POWER(1024, 3), 2) AS gb10FROM v$archived_log11WHERE completion_time > TRUNC(SYSDATE) - 1412  AND dest_id = 113GROUP BY TRUNC(completion_time)14ORDER BY TRUNC(completion_time);

Save it as ora-archive-volume.sql and run it with SQL> @ora-archive-volume.

Open in denrepoRelated tool: Redo log sizing

Helps with

Part of these runbooks

More Oracle scripts: Redo & archiving