alter session set nls_date_format='YYYY-MM-DD HH24:MI:SS';
set lines 200
select * from v$rman_status;
select start_time, end_time, operation, object_type, status, output_bytes from v$rman_status;
column elapsed format a25
select to_char(start_time,'yyyy-mm-dd:hh24:mi:ss') start_time, to_char(end_time,'yyyy-mm-dd:hh24:mi:ss') end_time,
lpad(round(floor((end_time-start_time)*24*60*60)/3600),2,'0')
|| ':' ||
lpad(floor((((end_time-start_time)*24*60*60) -
floor(((end_time-start_time)*24*60*60)/3600)*3600)/60),2,'0')
|| ':' ||
lpad(round((((end_time-start_time)*24*60*60) -
floor(((end_time-start_time)*24*60*60)/3600)*3600 -
(floor((((end_time-start_time)*24*60*60) -
floor(((end_time-start_time)*24*60*60)/3600)*3600)/60)*60))),2,'0') elapsed, output_bytes
from v$rman_backup_job_details
order by start_time;
select to_char(start_time,'yyyy-mm-dd:hh24:mi:ss') start_time, to_char(end_time,'yyyy-mm-dd:hh24:mi:ss') end_time, output_bytes
from v$rman_backup_job_details
order by start_time;
select session_recid,to_char(start_time,'yyyy-mm-dd:hh24:mi:ss') start_time, to_char(end_time,'yyyy-mm-dd:hh24:mi:ss') end_time, output_bytes
from v$rman_backup_job_details a
where session_recid = (select max(session_recid) from v$rman_backup_job_details b )
;
|