diff --git a/summary/25_alertlog_errors.sql b/summary/22_alertlog_errors.sql similarity index 100% rename from summary/25_alertlog_errors.sql rename to summary/22_alertlog_errors.sql diff --git a/summary/23_rman_backup.sql b/summary/23_rman_backup.sql new file mode 100644 index 0000000..c2802ca --- /dev/null +++ b/summary/23_rman_backup.sql @@ -0,0 +1,28 @@ +prompt

Les dernières sauvegardes RMAN (30 derniers jours/50 dernières lignes)

+ +ALTER SESSION SET NLS_DATE_FORMAT='DD/MM/YYYY HH24:MI:SS'; + +SELECT + B.SESSION_KEY "Session Key", + B.INPUT_TYPE "Type", + 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(TRUNC(SYSDATE) + NUMTODSINTERVAL(ELAPSED_SECONDS, 'second'), 'hh24:mi:ss') "Duration", + B.OUTPUT_DEVICE_TYPE "Device Type", + B.INPUT_BYTES_DISPLAY "Input Bytes", + B.OUTPUT_BYTES_DISPLAY "Output Bytes", + CASE + WHEN B.STATUS = 'FAILED' THEN + '' + || B.STATUS + || '' + ELSE + B.STATUS + END "Status" +FROM + V$RMAN_BACKUP_JOB_DETAILS B +WHERE + B.START_TIME > ( SYSDATE - 30 ) + AND ROWNUM <= 50 +ORDER BY + B.SESSION_KEY DESC; diff --git a/summary/99_footer.html b/summary/99_footer.html index 8d7c39a..7fa8bd5 100644 --- a/summary/99_footer.html +++ b/summary/99_footer.html @@ -1,79 +1,109 @@ - \ No newline at end of file