ZDLRA Backup Status 확인

 

ZDLRA Backup Status 확인

 

rasys로 접속 후

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
SELECT
(select rd.POLICY_NAME "POLICY_NAME" from ra_database rd where rd.db_key=jd.db_key) "POLICY_NAME",
(select rd. db_unique_name "DB_NAME" from ra_database rd where rd.db_key=jd.db_key) "DB_NAME",
CASE WHEN INPUT_TYPE = 'DB INCR' THEN 'INCR'
WHEN INPUT_TYPE = 'DB FULL' THEN 'FULL'
WHEN INPUT_TYPE = 'ARCHIVELOG' THEN 'ARCHIVE'
ELSE '' END "Schedule_Type",
TO_CHAR(start_time,'yy-mm-dd hh24:mi:ss') "Backup Started Time",
TO_CHAR(end_time,'yy-mm-dd hh24:mi:ss') "Backup Finished Time",
round(INPUT_BYTES/1024/1024/1024,2) "Total Backup Size(GB)",
CASE WHEN STATUS = 'COMPLETED' THEN 'C004' ELSE 'C005' END "Backup Result"
FROM RC_RMAN_BACKUP_JOB_DETAILS jd
WHERE INPUT_TYPE in ('DB INCR','DB FULL','ARCHIVELOG')
and start_time >= sysdate - 2
ORDER BY start_time, command_id
/
SELECT (select rd.POLICY_NAME "POLICY_NAME" from ra_database rd where rd.db_key=jd.db_key) "POLICY_NAME", (select rd. db_unique_name "DB_NAME" from ra_database rd where rd.db_key=jd.db_key) "DB_NAME", CASE WHEN INPUT_TYPE = 'DB INCR' THEN 'INCR' WHEN INPUT_TYPE = 'DB FULL' THEN 'FULL' WHEN INPUT_TYPE = 'ARCHIVELOG' THEN 'ARCHIVE' ELSE '' END "Schedule_Type", TO_CHAR(start_time,'yy-mm-dd hh24:mi:ss') "Backup Started Time", TO_CHAR(end_time,'yy-mm-dd hh24:mi:ss') "Backup Finished Time", round(INPUT_BYTES/1024/1024/1024,2) "Total Backup Size(GB)", CASE WHEN STATUS = 'COMPLETED' THEN 'C004' ELSE 'C005' END "Backup Result" FROM RC_RMAN_BACKUP_JOB_DETAILS jd WHERE INPUT_TYPE in ('DB INCR','DB FULL','ARCHIVELOG') and start_time >= sysdate - 2 ORDER BY start_time, command_id /
SELECT
    (select rd.POLICY_NAME "POLICY_NAME" from ra_database rd where rd.db_key=jd.db_key) "POLICY_NAME",
    (select rd. db_unique_name "DB_NAME" from ra_database rd where rd.db_key=jd.db_key) "DB_NAME",
    CASE WHEN INPUT_TYPE = 'DB INCR' THEN 'INCR'
    WHEN INPUT_TYPE = 'DB FULL' THEN 'FULL'
    WHEN INPUT_TYPE = 'ARCHIVELOG' THEN 'ARCHIVE'
    ELSE '' END "Schedule_Type",
    TO_CHAR(start_time,'yy-mm-dd hh24:mi:ss') "Backup Started Time",
    TO_CHAR(end_time,'yy-mm-dd hh24:mi:ss') "Backup Finished Time",
    round(INPUT_BYTES/1024/1024/1024,2) "Total Backup Size(GB)",
    CASE WHEN STATUS = 'COMPLETED' THEN 'C004' ELSE 'C005' END "Backup Result"
FROM RC_RMAN_BACKUP_JOB_DETAILS jd
WHERE INPUT_TYPE in ('DB INCR','DB FULL','ARCHIVELOG')
and start_time >= sysdate - 2
ORDER BY start_time, command_id
/

 

정책, 백업시간, 백업 용량, 결과 를 확인할 수 있습니다.

 

소셜 미디어로 공유하기

You may also like...

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

This site uses Akismet to reduce spam. Learn how your comment data is processed.