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

  1. Open SQL Management Studio.
  2. Check the Commvault databases to see if any of it is stuck in the Restoring... mode.
  3. 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:

    1. 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

    2. Re-run the following query:

      RESTORE DATABASE [DVSB] WITH RECOVERY

    3. Set the database back to multi-user mode using the following query:

      ALTER DATABASE [DVSB]
      SET MULTI_USER
      WITH ROLLBACK IMMEDIATE

Comments

Popular posts from this blog

Extracting and using a modified VMWare Player BIOS or UEFI firmware

Activate Synology Active Backup for Business for DSM 6

Windows 11 internet/account bypass