Update 27_last_rman_backup.sql

This commit is contained in:
Yacine31
2023-11-14 03:41:56 +01:00
parent 7d5e70f3e6
commit 3ef5c11768

View File

@@ -1,4 +1,4 @@
prompt <h2>Last RMAN backups (30 days/50 rows)</h2> prompt <h2>Les dernières sauvegardes RMAN (30 derniers jours/50 dernières lignes)</h2>
alter session set nls_date_format='DD/MM/YYYY HH24:MI:SS' ; alter session set nls_date_format='DD/MM/YYYY HH24:MI:SS' ;
set linesize 250 heading off; set linesize 250 heading off;
set heading on pagesize 999; set heading on pagesize 999;
@@ -8,13 +8,13 @@ column output_bytes_display format a12;
column device_type format a10; column device_type format a10;
select select
b.input_type, b.input_type "Type",
b.status, b.status "Status",
to_char(b.start_time,'DD-MM-YYYY HH24:MI') "Start Time", to_char(b.start_time,'DD-MM-YYYY HH24:MI') "Start Time",
to_char(b.end_time,'DD-MM-YYYY HH24:MI') "End Time", to_char(b.end_time,'DD-MM-YYYY HH24:MI') "End Time",
b.output_device_type device_type, b.output_device_type "Device Type",
b.input_bytes_display, b.input_bytes_display "Input Bytes",
b.output_bytes_display b.output_bytes_display "Output Bytes"
FROM v$rman_backup_job_details b FROM v$rman_backup_job_details b
WHERE b.start_time > (SYSDATE - 30) and rownum <=50 WHERE b.start_time > (SYSDATE - 30) and rownum <=50
ORDER BY b.start_time asc ORDER BY b.start_time asc