Getting the Database Out of Restoring Mode
Getting the Database Out of Restoring Mode
https://documentation.commvault.com/commvault/v11/article?p=105030.htm
Solution
- Open SQL Management Studio.
- Check the Commvault databases to see if any of it is stuck in the Restoring... mode.
- If a database is stuck, then use the following query to reset the database:
RESTORE DATABASE [DVSB] WITH RECOVERY
The above query will not work if the database is locked by another user. Perform the following steps when the database is locked by another user:
- Flush off all other users and get exclusive access to the database using the following query:
USE master
GO
ALTER DATABASE [DVSB]
SET SINGLE_USER
WITH ROLLBACK IMMEDIATE - Re-run the following query:
RESTORE DATABASE [DVSB] WITH RECOVERY
- Set the database back to multi-user mode using the following query:
ALTER DATABASE [DVSB]
SET MULTI_USER
WITH ROLLBACK IMMEDIATE
- Flush off all other users and get exclusive access to the database using the following query:
Comments
Post a Comment