If the vCenter Inventory Service Database is corrupted or otherwise inoperable, you can reset it. You should also reset the vCenter Inventory Service Database if you reset the vCenter Server database.

Caution

Resetting the vCenter Inventory Service Database can cause data related to Storage Management Service and Profile-Driven Storage Service to be lost. Perform this procedure with VMware Technical Support.

1

Stop the vCenter Inventory Service.

a

From the Windows Start menu, select Administrative Tools > Services.

b

Right-click vCenter Inventory Service and select Stop.

2

Open a command prompt.

3

Delete the entire contents of the Inventory_Service_Directory/data directory.

The location of the Inventory Service directory is specified during the vCenter Server installation.

4

Change directory to Inventory_Service_directory/scripts

For example, if you installed vCenter Inventory Service in the default location, run this command.

cd /Program Files/VMware/Infrastructure/Inventory Service/scripts
5

Run the createDB.bat command, with no arguments, to reset the vCenter Inventory Service database.

6

Run the register.bat command to update the stored configuration information of the Inventory Service.

register.bat current_vCenter_Server_fully_qualified_domain_name vCenter_Server_HTTPS_port

For example, if the vCenter Server fully qualified domain name is machinename.corp.com and the HTTPS port is 443, run this command.

register.bat machinename.corp.com 443
7

Restart the vCenter Inventory Service.

a

From the Windows Start menu, select Administrative Tools > Services.

b

Right-click vCenter Inventory Service and select Start.

The vCenter Inventory Service database is reset.