DBMS uptime


Job details

Name: DBMS uptime
Platform: Oracle
Category: Availability
Description: Collects uptime statistics in database.
Long description: Task collects uptime statistics in database.
Version: 3.0
Default schedule: * * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘oracle’]/.[hasengine=‘YES’ & _priv_read_v_session = ‘1′]

Parameters

Name Default value Description
dbw username dbwatch Database user name used by the dbWatch Server when connecting to the dbWatch Engine.
dbw user id 0 Database user id used by the dbWatch Server when connected to the dbWatch Engine.
end_availability_timestamp 00:00 Availability timestamp (hh24:mi),used to define allowed DBMS shutdown period.
end_availability_duration 0 Availability duration in minutes.

Job Summary

SELECT event_name, event_date, period FROM dbw_dbms_uptime_#instance~id#
    

Implementation Details

Critical SQL Statements Used in Job

CREATE TABLE dbw_dbms_uptime_#instance~id# (event_name VARCHAR2(64), event_date DATE, period NUMBER)

* A procedure that is crucial for collecting and updating uptime data by checking the database status at regular intervals:
CREATE OR REPLACE PROCEDURE dbms_uptime_#instance~id# /* Procedure details hidden for brevity */

* Views created for detailed and summarized views of uptime history and current status:
CREATE OR REPLACE VIEW dbv_dbms_uptime_histr_#instance~id# AS SELECT EVENT_NAME, EVENT_DATE, PERIOD FROM dbw_dbms_uptime_#instance~id# UNION SELECT EVENT_NAME, EVENT_DATE, PERIOD FROM dbw_dbms_uptime_histr_#instance~id#

Job Dependencies

Reporting and Output

Database Metric Details
DBMS uptime Length of time the DBMS has been up and running without interruption.
Monitored Total time for which the database monitoring was active.
Down Total time the database was down.
Uptime Overall percentage of time the database was operational in relation to total monitored time.

Relevance to Database Health

This detailed setup ensures that all aspects of Oracle DBMS uptime are meticulously monitored, logged, and reported, contributing to effective database management and reliability.