• Management Pack:  SQL Server
  • MP Version:  6.1 for SQL Server 2008
  • Released:  8/5/2010
  • Publisher:  Microsoft

Database Status Monitor

  • ID:  Microsoft.SQLServer.2008.Database.DBStatusMonitor
  • Description:  This monitor checks the status of the database as reported by Microsoft® SQL Server™.
  • Target:  SQL 2008 DB
  • Enabled:  Yes

Operational States

Name State Description
Database Available Success  
Database Unavailable Error  
Database Recovering/Restoring Warning  

Overridable Parameters

Parameter Name Default Value Description Override
Interval (sec) 3600  
Synchronization Time    
Timeout (sec) 300  

Alert Details

Monitor State Message Priority Severity Auto Resolution
Database Unavailable (Error) Database Offline Medium Critical Yes

Run As Profiles

Name
Default

Monitor Knowledgebase

Summary

This monitor checks the status of the database as reported by Microsoft® SQL Server™. This is done by running a query against the master database of the SQL instance and returning the state of the database. If you receive an alert from this monitor, action is required in order to bring the database back to an operational state.

Causes

An unhealthy state indicates that the SQL Server™ database is currently unavailable. All states except the ONLINE state will cause an unhealthy state. The possible states are detailed below:

SQL Database State

Description

MOM Health State

ONLINE

Database is available for access. The primary filegroup is online, although the undo phase of recovery may not have been completed.

GREEN

OFFLINE

Database is unavailable. A database becomes offline by explicit user action and remains offline until additional user action is taken. For example, the database may be taken offline in order to move a file to a new disk. The database is then brought back online after the move has been completed.

RED

RECOVERY PENDING

SQL Server™ has encountered a resource-related error during recovery. The database is not damaged, but files may be missing or system resource limitations may be preventing it from starting. The database is unavailable. Additional action by the user is required to resolve the error and let the recovery process be completed.

RED

SUSPECT

At least the primary filegroup is suspect and may be damaged. The database cannot be recovered during startup of SQL Server™ . The database is unavailable. Additional action by the user is required to resolve the problem.

RED

EMERGENCY

User has changed the database and set the status to EMERGENCY. The database is in single-user mode and may be repaired or restored. The database is marked READ_ONLY, logging is disabled, and access is limited to members of the sysadmin fixed server role. EMERGENCY is primarily used for troubleshooting purposes. For example, a database marked as suspect can be set to the EMERGENCY state. This could permit the system administrator read-only access to the database. Only members of the sysadmin fixed server role can set a database to the EMERGENCY state.

RED

RESTORING

One or more files of the primary filegroup are being restored, or one or more secondary files are being restored offline. The database is unavailable.

YELLOW

RECOVERING

Database is being recovered. The recovering process is a transient state; the database will automatically become online if the recovery succeeds. If the recovery fails, the database will become suspect. The database is unavailable.

YELLOW

To find the exact state that was reported for the database, examine the context of the state change or alert.

Resolutions

You can attempt to bring the database back online to resolve the issue. To attempt this, run the following task:

Set Database Online

External References

See more detailed information on SQL Server™ at:

http://www.microsoft.com/sql

See Also for SQL Server Management Pack


Downloads for SQL Server Management Pack

AZURE OPTIMIZATION ASSESSMENT GET STARTED
MIGRATION TO AZURE GET STARTED
SYSTEM CENTER MIGRATION TO AZURE GET STARTED
MIGRATION TO AZURE FOR SQL AND WINDOWS 2008 GET STARTED