Database Server uptime


Job details

Name: Database Server uptime
Platform: Sqlserver
Category: Availability
Description: Collects database server uptime statistics.
Long description: Collects database server uptime statistics.
Version: 2.5
Default schedule: * * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘sqlserver’]/instance[maj_version > ‘2005′ & hasengine=‘YES’ & (engine_edition = ‘Microsoft SQL Server’ engine_edition = ‘Azure SQL Managed Instance’)]

Parameters

Name Default value Description
week uptime calculation 24 Number of hours between each calculation of up-time statistics.
register maintenance period This parameter is used to register a new maintenance period. Parameter value should be in the following format: NAME;PERIOD START;PERIOD END;COMMENT, period start and end in format YYYY-MM-DD HH24:MI:SS. Use “;” as a separator between the fields. Example of parameter setup: Monthly maintenace;2020-05-17 10:30:00;2020-05-17 16:30:00;patching of all database servers
delete maintenance period This parameter is used to deletes a maintenance period. Use the following format: NAME;PERIOD START;PERIOD END;COMMENT, period start and end in format YYYY-MM-DD HH24:MI:SS. Use “;” as a separator between the fields. Example of parameter setup --> Monthly maintenace;2020-05-17 10:30:00;2020-05-17 16:30:00;patching of all database servers

Job Summary

select SERVER_NAME, INSTANCE_NAME, STARTUP_TIME, LAST_CHECK from dbw_db_uptime order by STARTUP_TIME desc;

Main Task Features

Report Structures

Dependencies

The main procedure uses a variety of helper functions and procedures to collect, update, and maintain uptime statistics:

Dependency Description
dbw_db_uptime Holds the current server instance information
db_uptime Main procedure which collects and updates instance uptime statistics
dbw_db_uptime_histr Contains the historical server instance information for audits
f_db_availability Function that computes the availability based on uptime and down periods

Automated Implementations

System Requirements

This job is suitable for instances running on:

System Utilizations

Vulnerability Considerations

Overall, the dbWatch Control Center job serves as a critical function for administrators to maintain the optimal performance and reliability of database servers, ensuring that uptime metrics are consistently monitored and reported for strategic IT and business planning.