Database Administration (MOSC)

MOSC Banner

Archive Log Generation in Oracle Database

DBA's can get the archive log generation in Oracle Database by using the following queries. Queries can be used in the RAC database as well.






Hourly Archive Log Generation : 


set pages 1000

alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS';


select trunc(COMPLETION_TIME,'HH') Hour,thread# , 

round(sum(BLOCKS*BLOCK_SIZE)/1024/1024/1024) GB,

count(*) Archives from v$archived_log 

group by trunc(COMPLETION_TIME,'HH'),thread# order by 1 ;



Daily Archive Log Generation :


select trunc(COMPLETION_TIME,'DD') Day, thread#, 

round(sum(BLOCKS*BLOCK_SIZE)/1024/1024/1024) GB,

count(*) Archives_Generated from v$archived_log 

group by trunc(COMPLETION_TIME,'DD'),thread# order by 1;

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center