Database mount state


Job details

Name: Database mount state
Platform: Oracle
Category: Availability
Description: Checks the ‘soft limit’ and the ‘hard limit’ of the maximum number of physical OS files, that can be mapped to an Oracle instance.
Long description:
Version: 1.0
Default schedule: 15m
Requires engine install: No
Compatibility tag: .[type=‘instance’ & databasetype=‘oracle’]

Parameters

Name Default value Description
correct_mount_state READ WRITE Correct mount status for OK signal

Job Summary

select open_mode from v$database;

Configuration Details

This monitoring job is configured specifically for Oracle database instances. It evaluates the current mode against a predefined ‘correct mount state’ and alerts if this state is not met.

Properties Overview

Compatibility

The job is designed to operate on entities that match the criteria `.[type=‘instance’ & databasetype=‘oracle’]`, ensuring it only runs on Oracle database instances.

Job Execution

The job uses SQL and JavaScript to determine the state of the database:

Engine Code
SQL select open_mode from v$database
JavaScript var open_mode = input.get(0).asString(); var status = 0; var msg; if (open_mode.equals(correct_mount_state)) { status = 0; msg = “Database open in correct mount state: “ + open_mode + “. Correct mount state configured: “ + correct_mount_state + “.”; } else { status = 2; msg = “Database NOT open in correct mount state: “ + open_mode + “. Correct mount state configured: “ + correct_mount_state + “.”; } result.setStatus(status, msg);

Reporting

The results of this job are compiled into a report template named “Database mount status”. The report includes a detailed table illustrating the database mount status across monitored instances. The table is dynamically populated from the job’s execution results.

The table structure in the report is as follows:

Table Structure

Details
The above entry reflects the specifics of database mount status extracted from job results

Report Summary

The report provides a concise summary of database mount statuses across all selected instances, matching the job’s compatibility specification. Each entry in the report signifies the result for a particular instance and consists of critical details that help in quick assessment and decision-making.