Troubleshooting Database Issues
Published : September 27, 2005
DPM processes rely on databases created in Microsoft SQL Server:
The DPM database (DPMDB.mdf) stores DPM settings and configuration information.
The Report database (ReportServer.mdf) stores reporting information for DPM.
In addition, DPM processes rely on the following databases: Tempdb.mdf, Master.mdf, Model.mdf, and Msdb.mdf.
Database failures can cause DPM jobs to fail, interfere with the use of DPM Administrator Console, prevent DPM reporting, and cause the DPM service to stop. A backlog of requests caused by low memory or high CPU usage can also cause client time-outs (when DPM processes take a long time to establish a SQL query or connection to SQL Server).
Possible causes of database failures in DPM include:
An unusually high number of protection jobs are being processed on the DPM server at one time, and SQL Server is unable to handle the volume of requests in a timely manner. This is the most common cause of client time-outs and general network errors.
A database or transaction log that DPM uses has run out of disk space.
A database that DPM uses has entered an inconsistent state or has become corrupted.
The SQL Server service is not running or is not configured correctly.
Some database failures in DPM are caused by transitory problems that may resolve themselves. Examples include insufficient resources, client time-outs, insufficient disk space for transaction logs, deadlocks in SQL Server, recoverable database errors, and timing issues.
Before you run diagnostics for this type of database failure, perform the following steps on the DPM server to ensure that the problem is not transitory.
To resolve issues that might cause a transitory database failure
Ensure that the SQL Server service is running. In Administrative Tools, open Services, and verify that the status of the MSSQL$Microsoft$DPM$ service is Started. If it is not, right-click the service and then click Start or Resume, as appropriate.
If this does not fix the problem, close and re-open DPM Administrator Console.
If this does not fix the problem, stop and restart the DPM service and the SQL Server service. (In most cases, restarting the DPM service will resolve the issue.) See “Verifying Status of DPM Service,” earlier in this chapter, for instructions.
If you experience database failures in DPM that are not transitory in nature, the issues can be complex. You will need to work with your SQL Server administrator to diagnose and resolve the related issues. Table 6.8 provides a starting point for resolving specific database errors.
Table 6.8 Database Errors
Error |
To troubleshoot this error |
---|---|
Error 940: Unable to connect to the database because of a fatal database error. It is unlikely that the database itself has been damaged. |
Ensure that the DPM instance of SQL Server (the MSSQL$Microsoft$DPM$ service) is running. Then use Windows Event Viewer to find information about related events. |
Error 941: Unable to connect to the DPM database. |
To resolve issues related to database connection failures:
|
Error 942: Database integrity is in question because of a hardware or software problem. |
If the integrity of a database is in question, contact your SQL Server administrator. You might need to repair or restore the database in SQL Server from backup media. Inform the administrator every time this error is encountered. Look at Windows Event Log for SQL Server/media failures. It is possible that the problem is in the cache only and not on the disk itself. If so, restarting SQL Server corrects the problem. In some cases, it may be necessary to restore the database. To resolve issues related to a database that may be corrupt
|
Error 943: Unable to connect to the DPM database because the database is in an inconsistent state. |
If DPM finds that a database is in an inconsistent state, the problem is unlikely to resolve itself. For help with troubleshooting the problem, contact Microsoft product support. For information, see Microsoft Help and Support (https://go.microsoft.com/fwlink/?linkid=45276). |
Error 944: Database operation failed. |
|
Error 945: Unable to connect to the DPM database because of a general database failure. |
For general database failures, ensure that the MSSQL$Microsoft$DPM$ service is running on the DPM server. Then use Windows Event Viewer to find information about related events. On a new DPM server, ensure that SQL Server is configured correctly. To resolve issues related to general database failures
|
Additional Resources for Troubleshooting Database Issues
For information about:
Configuring SQL Server for use with DPM, see the “Installing DPM” chapter (https://go.microsoft.com/fwlink/?LinkId=46357) in the DPM 2006 Planning and Deployment Guide.
Backing up and restoring the databases that DPM relies on, see the “Archiving and Restoring Data” chapter in this guide.
The sp_helpdb system stored procedure for SQL Server, see the entry by that name in the Transact-SQL Reference (https://go.microsoft.com/fwlink/?linkid=51140).
The dbcc sqlperf and dbcc shrinkfile Database Console Commands for SQL Server 2000, see the “DBCC” entry in the Transact-SQL Reference (https://go.microsoft.com/fwlink/?LinkId=52528).
Using event logs to identify problems, see the “Checking event logs: Common administrative tasks” topic in Help and Support for Microsoft Windows Server 2003.
Problems with SQL Server, use SQL Server Enterprise Manager to review current activity, current locks, and current processes in SQL Server. For more information see, “Monitoring with SQL Enterprise Manager,” in SQL Server 2000 Books Online (https://go.microsoft.com/fwlink/?linkid=51137).
Configuring and maintaining physical storage components in SQL Server 2000 to meet capacity, throughput, and performance requirements, see “Capacity and Storage Management” in the Microsoft SQL Server 2000 Operations Guide (https://go.microsoft.com/fwlink/?LinkId=51142).