coloriage via CSS
This commit is contained in:
28
summary/23_rman_backup.sql
Normal file
28
summary/23_rman_backup.sql
Normal file
@@ -0,0 +1,28 @@
|
||||
prompt <h3>Les dernières sauvegardes RMAN (30 derniers jours/50 dernières lignes)</h3>
|
||||
|
||||
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
|
||||
'<span class="highlight">'
|
||||
|| B.STATUS
|
||||
|| '</span>'
|
||||
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;
|
||||
Reference in New Issue
Block a user