Note: Some of the procedures in this article involve modifying the Windows registry. Before making any registry modifications, ensure that you have a current and valid backup of the registry and the virtual machine. For more information on backing up and restoring the registry, see the Microsoft Knowledge Base article
136393 .
Note: The preceding link was correct as of September 16, 2019. If you find the link is broken, provide feedback and a VMware employee will update the link.Select the following troubleshooting steps are available as listed below:
Checking which Data Source is being used by vCenter Server
vCenter Server 5.5:
To check which Data Source is currently being used:
- Log in to the vCenter Server as an administrator.
- Click Start > Run, type
regedit
, and press Enter. The Registry Editor window opens. - Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.\VMware VirtualCenter\DB.
- The name of the Data Source that is currently being used is in the 1 registry key. Make a note of this name for use in subsequent steps of this article.
- Click File > Exit without making any changes.
vCenter Server 6.0:
To check which Data Source is currently being used:
- Log in to the vCenter Server as an administrator.
- Navigate to C:\ProgramData\VMware\vCenterServer\cfg\vmware-vpx.
- Open vpxd.cfg within a text editor.
- Search for <dsn> and make a note of the Data Source name.
<odbc>
<dbtype>embedded</dbtype>
<dsn>VMware VirtualCenter</dsn>
</odbc>
- Open the tnsnames.ora file using a text editor.
Note: This file is generally located at C:\Oracle\Oraxx\NETWORK\ADMIN
(where xx
is either 9I
or 10g
). Look for an entry similar to the example below, where SERVICE_NAME is the TNS Service name to be changed in step 7:
VPX =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS=(PROTOCOL=TCP)(HOST=server)(PORT=1521))
)
(CONNECT_DATA =
(SERVICE_NAME = ServerTableSpace)
)
)
HOST =
In this example,
HOST=server
is the database host to which the client needs to connect, and
SERVICE_NAME = ServerTableSpace
is the TNS Service name that is being used from the Oracle server.
- To change the host that is being connected to, modify
server
, to the name of the new server that the Data Source connects to. - To change the tablespace that is being used, modify
ServerTableSpace
to the name of the tablespace being used on the Oracle server. - When this is complete, save and close the file.
To confirm that the changes are successful:
- Navigate to Start > Control Panel > Administrative Tools > Data Sources (ODBC).
For vCenter Server 4.0 running on a 64-bit host:
Click Start > Run, type %systemdrive%\Windows\SysWoW64\Odbcad32.exe
, and press Enter.
- Click the System DSN tab.
- Select the Data Source that vCenter Server is using.
- Click Configure.
- Click Test Connection.
- Enter the username and password, and click OK.
- Review the message that is presented. If the change was successful, click OK and exit out of the driver configuration wizard. If the test fails, review and correct the changes to the configuration and try the test again.
Modifying the username and password vCenter Server uses to connect to the database server (valid only for vCenter Server 2.5.x and below)
A common misconception is that the username and password used for vCenter Server is stored within the Data Source. The username and password for vCenter Server are stored in the registry. Instructions on resetting the password from the installer and resetting the password manually are described below.
Note: Ensure that you are using SQL authentication if you are using a Microsoft SQL server because Windows NT authentication is not supported.
To reset the username and password from the Installer:
- Log in to the vCenter Server as an administrator.
- Click Start > Control Panel > Add or Remove Programs.
- Click VMware VirtualCenter Server or VMware vCenter Server from the list of currently installed programs.
- Click Change.
- Click Next.
- Select Repair.
- Click Next.
- Ensure that Use an existing database server is highlighted.
Note: If you are using an MSDE or SQL Express installation of vCenter Server, it is set up to use Windows Authentication by default and uses the account the service is set to start with. VMware does not recommended changing this configuration.
- Click Next.
- Enter the new username and password. Ensure that the Data Source name is correct, then enter the new username and password.
- Click Next.
- Click No when you are prompted with this message:
The DSN points to an existing VMware VirtualCenter repository. Do you want to reinitialize the database and start over with a blank configuration?
Warning: If you click Yes, your existing configuration is overwritten with a blank new one.
- Click Next through the remainder of the installation, leaving the default options selected.
- On the Ready to Repair the program screen, click Install.
- When the repair is complete, exit the installer by clicking Finish.
To reset the username and password manually, without running the installer (valid for all versions of vCenter Server)
vCenter Server 5.5 and earlier:
- Log in to the vCenter Server as an administrator.
- Click Start > Run, type
regedit
, and click OK. The Registry Editor window opens. - Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.\VMware VirtualCenter\DB
. - The user that is configured for database connectivity is in the 2 registry key.
- Right-click on the 2 key, and click Modify.
- Change the Value data to the name of the new user account.
- Click OK.
- Click File > Exit without making any changes.
vCenter Server 6.0:
- Stop the vCenter Server service. For more information, see Stopping, starting, or restarting VMware vCenter Server 6.0 services (2109881).
- Navigate to C:\ProgramData\VMware\vCenterServer\cfg\vmware-vpx.
- Take a backup copy of vpxd.cfg file.
- Open vpxd.cfg file in a text editor.
- Locate the <DB> element and modify the value for <key_2> to reflect the new database user ID.
...
<DB>
C:\Program Files\VMware\Infrastructure\vCenter Server\vpxd\
- Run the command:
vpxd.exe -p
- When prompted, enter the new password and press Enter.
- Retype the password and press Enter again to complete the password change.