RMAN recovery area backup status


Job details

Name: RMAN recovery area backup status
Platform: Oracle
Category: Availability
Description: Checks the status of RMAN recovery area backup (input_type ‘RECVR AREA‘) from V$RMAN_BACKUP_JOB_DETAILS performance view.
Long description: Checks the status of RMAN recovery area backup (input_type ‘RECVR AREA‘) from V$RMAN_BACKUP_JOB_DETAILS performance view.
Version: 1.0
Default schedule: 25 6 * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘oracle’]/.[hasengine=‘YES’ & _cdb_v_rman_backup_job_details = ‘1′ & is_pluggdb = ‘0′ ]/.[is_rds = ‘0′]

Parameters

Name Default value Description
backup expire time 168 Backup expire time (in hours). If no valid backup exists within this time threshold a warning is returned.
return status when backup RUNNING 1 Return status value (ALARM – 2, WARNING – 1, or OK – 0) when RMAN backup status value is RUNNING.
return status when backup FAILED 2 Return status value (ALARM – 2, WARNING – 1, or OK – 0) when RMAN backup status value is FAILED.
container ID 1 The ID of the container to which the data pertains.
return status when OLD backup 1 Return status value (ALARM – 2, WARNING – 1, or OK – 0) when RMAN backup is older than “backup expire time” parameter value.
return status when backup NOT IMPLEMENTED 1 Return status value (ALARM – 2, WARNING – 1, or OK – 0) when RMAN backup is not implemented.

Job Summary

Purpose

Importance

Manual Check

SELECT start_time, end_time, status, TIME_TAKEN_DISPLAY, output_bytes, input_bytes FROM V$RMAN_BACKUP_JOB_DETAILS WHERE input_type = 'RECVR AREA';

Technical Details

Default Schedule

SQL Code Execution

SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END FROM V$RMAN_BACKUP_JOB_DETAILS

Parameters

Dependencies

Alerts and Notifications

Output Metrics and Reporting

Compatibility and Execution Environment

Privilege Requirements

Automation and Maintenance

Overall, this dbWatch task is essential for maintaining the health and recoverability of Oracle databases, especially those utilizing RMAN for backup processes. It allows for scalable monitoring and management of backup statuses from a centralized control center, providing essential safeguards against data loss and enabling robust data governance.