Update 27_last_rman_backup.sql
This commit is contained in:
@@ -7,20 +7,24 @@ column input_bytes_display format a12;
|
|||||||
column output_bytes_display format a12;
|
column output_bytes_display format a12;
|
||||||
column device_type format a10;
|
column device_type format a10;
|
||||||
|
|
||||||
select
|
SELECT
|
||||||
b.input_type "Type",
|
b.input_type "Type",
|
||||||
case
|
CASE
|
||||||
when b.status = 'FAILED'
|
WHEN b.status = 'FAILED' THEN
|
||||||
then '<span class="highlight">'||b.status||'</span>'
|
'<span class="highlight">' || b.status || '</span>'
|
||||||
else b.status
|
ELSE
|
||||||
end "Status",
|
b.status
|
||||||
to_char(b.start_time,'DD-MM-YYYY HH24:MI') "Start Time",
|
END "Status",
|
||||||
to_char(b.end_time,'DD-MM-YYYY HH24:MI') "End Time",
|
to_char(b.start_time, 'DD-MM-YYYY HH24:MI') "Start Time",
|
||||||
b.output_device_type "Device Type",
|
to_char(b.end_time, 'DD-MM-YYYY HH24:MI') "End Time",
|
||||||
b.input_bytes_display "Input Bytes",
|
b.output_device_type "Device Type",
|
||||||
b.output_bytes_display "Output Bytes"
|
b.input_bytes_display "Input Bytes",
|
||||||
FROM v$rman_backup_job_details b
|
b.output_bytes_display "Output Bytes"
|
||||||
WHERE b.start_time > (SYSDATE - 30) and rownum <=50
|
FROM
|
||||||
ORDER BY b.start_time asc
|
v$rman_backup_job_details b
|
||||||
;
|
WHERE
|
||||||
|
b.start_time > ( sysdate - 30 )
|
||||||
|
AND ROWNUM <= 50
|
||||||
|
ORDER BY
|
||||||
|
b.start_time DESC;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user