Quantcast
Channel: Shavlik User Community : Document List - All Communities
Viewing all articles
Browse latest Browse all 1352

Moving a Protect database from one SQL server to another

$
0
0

Purpose

This article provides steps to migrate an existing database for vCenter Protect or Shavlik Protect to another SQL server.  

Resolution

 

Note: Before migration, ensure that Microsoft SQL Management Studio is installed on both the current database server and the destination database server. Also, ensure that no user is currently logged in to the vCenter Protect console.

To migrate the database to another SQL server:

 

  1. Open SQL Management Studio on the current database server.   
  2. Set the Server Type field to Database Engine
  3. Set the Server name field to the name of the server hosting the database.

    Note: Ensure that you are using credentials with sufficient rights to the database server to detach your Protect database.

    After logging in to the database engine using SQL Management Studio, you see the Object Explorer pane on the left side of the window.
  4. Expand the Databases folder and locate your Protect database.   
  5. Right-click the Protect database and click Detach.   
  6. Browse to the directory where the database files are stored on the server. 

    Note: To find the file path, in SQL Management Studio, right-click the database and click Properties.  
  7. In the window that appears, select the files in the left pane. 
  8. Scroll the right pane to view the Path column.   
  9. Browse to this path in Windows Explorer and copy both databasename.mdf and databasename.ldf files to the destination SQL server. 
  10. Open SQL Management Studio on the destination machine and log in to the database engine. 
  11. Right-click the Databases folder and click Attach.  
  12. In the Databases to attach window, click Add and point it to the databasename.mdf file you copied to the server. 

    You should now be able to see the MDF and LDF files in the bottom pane. 
  13. Click OK. The database is now attached. 
  14. Link the database to the Protect installation.

    To link the database to the Protect installation:
    1. Log in to your Protect console machine. 
    2. Click Start> All Programs> Shavlik Protect.  Note: v.8.x will be Start > All Programs > VMware vCenter Protect.
    3. Select Database setup tool.   
    4. Select the Use an existing database option and click Next.   
    5. Select the server name of the new database server.   
    6. In the Database Name dropdown, select your Protect database.   
    7. Choose the credentials that the Protect console should use to connect to the database. 
    8. Click Test database connection.   
    9. If the test is successful, click Next.

The console should now be attached to this database and Protect is ready for use.

Product Versions

 

VMware vCenter Protect 8.x

Shavlik Protect 9.x


Viewing all articles
Browse latest Browse all 1352

Trending Articles