The vCenter Server installer creates the schema automatically during installation. Experienced database administrators who need more control over schema creation due to environmental constraints can optionally use a script to create their database schema.

To have the vCenter Server installer create a schema for you, see Configure a Connection to a Local DB2 Database on Microsoft Windows or Configure a Connection to a Remote DB2 Database on Linux, UNIX, or Microsoft Windows, depending on your environment.

Create the DB2 database and user. You can create the DB2 database manually or by using scripts.

1

Open a DB2 Command Editor window and log in as the user that you created on the vCenter Server database.

a

Open DB2 Control Center.

b

Select the database.

c

Right-click the database and select Menu > Query.

The Command Editor window appears.

2

In the directory of the vCenter Server installation package /<installation directory>/vpx/dbschema, locate the dbschema scripts.

3

In the DB2 Command Editor window, run each SQL file query in the order shown here by opening the SQL files one at a time and pressing Ctrl+Enter.

First, execute the VCDB_db2.sql file:

VCDB_db2.sql

For the following files, change the statement termination character from ; to @.

purge_stat1_proc_db2.sql 
purge_stat2_proc_db2.sql 
purge_stat3_proc_db2.sql 
purge_usage_stats_proc_db2.sql 
stats_rollup1_proc_db2.sql 
stats_rollup2_proc_db2.sql 
stats_rollup3_proc_db2.sql 
cleanup_events_db2.sql 
delete_stats_proc_db2.sql
upsert_last_event_proc_db2.sql
job_schedule1_db2.sql
job_schedule2_db2.sql
job_schedule3_db2.sql 
job_cleanup_events_db2.sql 
load_usage_stats_proc_db2.sql 
load_stats_proc_db2.sql

You now have a database schema that is compatible with vCenter Server 4.0 Update 1.

Perform the following tasks:

1

On the machine on which you intend to install vCenter Server, create a data source name (DSN) that points to the database server with the schema.

2

Run the vCenter Server installer.

a

If a database reinitialization warning message appears in the vCenter Server installer, select Do not overwrite, leave my existing database in place and continue the installation.

This message appears if you are using a database that has vCenter Server tables created by a previous installation. The message does not appear if the database is clean.

If you leave your existing database in place, you cannot join the vCenter Server to a Linked Mode group during the installation. You can join after the installation is complete. (See Join a Linked Mode Group After Installation.)

b

When prompted, provide the database user login.