FIND BACKUP RMAN HISTORY:
- SQL> col STATUS format a9
- SQL> col hrs format 999.99
- SQL> select SESSION_KEY, INPUT_TYPE, STATUS,
- to_char(START_TIME,'mm/dd/yy hh24:mi')
- start_time, to_char(END_TIME,'mm/dd/yy hh24:mi') end_time,
- elapsed_seconds/3600 hrs
- from V$RMAN_BACKUP_JOB_DETAILS order by session_key;
RMAN SIZE AND TIMINGS:
col "Total Time" for a30;
col size for a30;
set lines 999;
select session_key "Session",
input_type "Type",
status "Status",
to_char(start_time,'yyyy-mm-dd hh24:mi') "Start Time",
to_char(end_time,'yyyy-mm-dd hh24:mi') "End Time",
output_bytes_display "Size",
time_taken_display "Total Time"
from v$rman_backup_job_details
where to_char(end_time,'yyyy-mm-dd hh24:mi') >= to_char(sysdate-7,'yyyy-mm-dd hh24:mi')
and STATUS='COMPLETED'
order by session_key asc;
No comments:
Post a Comment