myorama
4/11/2014 - 8:47 AM

oracle rman size backup.sql

select ctime "Date", 
       decode(backup_type, 'L', 'Archive Log', 'D', 'Full', 'Incremental') backup_type, 
       bsize "Size MB" 
  from (
  select trunc(bp.completion_time) ctime, backup_type,  
         round(sum(bp.bytes/1024/1024),2) bsize
    from v$backup_set bs, v$backup_piece bp
   where bs.set_stamp = bp.set_stamp
     and bs.set_count  = bp.set_count 
     and bp.status = 'A'
   group by trunc(bp.completion_time), backup_type
) order by 1, 2;