col
col
col
col
col
col
select a.input_type,
b.device_type,
b.incremental_level,
a.status,
to_char(a.start_time,'mm/dd/yyyy hh24:mi') start_time,
to_char(a.end_time, 'mm/dd/yyyy hh24:mi') end_time,
case
when a.elapsed_seconds is null then
null
else
replace( to_char(trunc(a.elapsed_seconds/3600),'99
99')
||':'||
to_char(trunc(mod(a.elapsed_seconds,3600)/60),'00'
)||':'||
to_char(round(mod(a.elapsed_seconds,60)),'00'), '
' )
end elapsed_time,
a.input_bytes/1024/1024 as "Input MB",
a.input_bytes_display,
a.output_bytes_display,
to_char((a.input_bytes/1024/1024)/a.elapsed_seconds,'99
9,999.99') || ' MB/s' backup_rate
from v$rman_backup_job_details a,
(select session_key,
session_recid,
session_stamp,
max(device_type)
device_type,
max(incremental_level) incremental_level
from v$backup_set_details
group by session_key,
session_recid,
session_stamp
) b
where a.session_key = b.session_key (+)
and a.session_recid = b.session_recid (+)
and a.session_stamp = b.session_stamp (+)
and a.start_time >= trunc(sysdate)-90
-- and b.incremental_level='0' --- 0 - full 1 - incr - arc
hive
order by a.start_time desc