Ensure that you have the necessary credentials, and that you complete any necessary cleanup or other preparation before migrating your Microsoft SQL Server database on Windows to an embedded PostgreSQL database appliance.
Before you begin
Verify that you have backed up your database. For information about backing up the vCenter Server database, see the Microsoft SQL Server documentation.
About this task
You cannot use Integrate Windows for your authentication method if the vCenter Server service is running under the Microsoft Windows built-in system account.
- Verify that passwords are current and not set to expire soon.
- Verify that JDK 1.6 or later is installed on the vCenter Server machine.
- Verify that the sqljdbc4.jar file is added to the CLASSPATH variable on the machine where vCenter Server Appliance is to be migrated.
If the sqljdbc4.jar file is not installed on your system, the vCenter Server Appliance installer installs it.
- Verify that your system database source name is using the Microsoft SQL Server Native Client 10 or 11 driver.
- For vCenter Server 5.5, run the cleanup script.
- Locate the cleanup_orphaned_data_MSSQL.sql script in the ISO image and copy it to a location accessible by the Microsoft SQL server.
- Log in to your database.
For Microsoft SQL Server Express, open a command prompt.
For Microsoft SQL Server, log in to a Microsoft SQL Server Management Studio session as the vCenter Server database user.
- Run the cleanup script.
For Microsoft SQL Server Express, run: sqlcmd -E -S localhost\VIM_SQLEXP -d VIM_VCDB -i path/cleanup_orphaned_data_MSSQL.sql
For Microsoft SQL Server: run the cleanup_orphaned_data_MSSQL.sql contents.
Make sure that you are connected to the database used by vCenter Server.
The cleanup script cleans any unnecessary data in your vCenter Server database.
- Make a full backup of the vCenter Server database.
Your database is prepared for the vCenter Server migration to vCenter Server Appliance.