How check archivelog count and the total size

select to_char(COMPLETION_TIME,'DD/MON/YYYY') Day,
trunc(sum(blocks*block_size)/1048576/1024,2) "Size(GB)",count(sequence#) "Total Archives"
from
(select distinct sequence#,thread#,COMPLETION_TIME,blocks,block_size from v$archived_log)
group by to_char(COMPLETION_TIME,'DD/MON/YYYY')
order by to_date(to_char(COMPLETION_TIME,'DD/MON/YYYY'),'DD/MON/YYYY');


select trunc(COMPLETION_TIME,'DD') LOG_Day, thread#,
round(sum(BLOCKS*BLOCK_SIZE)/1024/1024/1024) LOG_SIZE_GB,
count(*)
CNT_LOG_Generated from v$archived_log
group by trunc(COMPLETION_TIME,'DD'),thread# order by 1;

Comments

Popular posts from this blog

[FATAL] [DBT-10503] Template file is not specified

Resolving ORA-10635 and ORA-39171 Errors During BLOB Tablespace Maintenance

How to resolve RMAN-06035: wrong version of recover.bsq, expecting 11.2.0.4, found 11.2.0.2