RMAN archivelog backup status


Job details

Name: RMAN archivelog backup status
Platform: Oracle
Category: Availability
Description: Checks the status of RMAN archivelog backup from V$RMAN_BACKUP_JOB_DETAILS performance view.
Long description: Checks the status of RMAN archivelog backup from V$RMAN_BACKUP_JOB_DETAILS performance view.
Version: 1.3
Default schedule: 15,45 * * *
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 24 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.
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.
return status when ARCHIVER STOPPED 1 Return status value (ALARM – 2, WARNING – 1, or OK – 0) when ARCHIVER is stopped.

Job Summary

select * from V$RMAN_BACKUP_JOB_DETAILS order by START_TIME desc;

Monitoring Logic Implementation

The dbWatch job under ‘oracle_rman_backup_archivelog_status’ follows these specifics:

Dependencies and Execution Environment

The job relies on several key Oracle views:

Privileges for the dbWatch schema on these views must be granted sufficiently to enable the execution of the SQL queries.

Customization and Configuration

While the default thresholds and conditions are set, these can be tailored based on user’s specific needs or environmental conditions such as backup frequency, the criticality of the data, and storage infrastructure.

Parameters Table Overview

Parameter Name Description
backup expire time Maximum allowable time since the last backup, beyond which the status warning or alarm will be triggered.
return status (each state) Determines the alert level (OK, WARNING, ALARM) for various backup states (RUNNING, FAILED, OLD, NOT IMPLEMENTED, ARCHIVER STOPPED).

Reporting and Alerts

The job handles result presentation and alert management effectively by:

In summary, the ‘RMAN archivelog backup status’ job in dbWatch serves as an essential component in the realm of database backup management, providing robust monitoring, alerting capabilities, and ensuring that backups are executed and maintained as expected for Oracle databases.