VMware
 

Knowledge Base

Search the Knowledge Base:

Products:
Search In:
 

Cannot get exclusive access to the VirtualCenter repository

Symptoms

  • Unable to start VirtualCenter Server service
  • Cannot get exclusive access to the VirtualCenter repository
  • VirtualCenter shuts down
  • The following error appears in the vpxd logs on the VirtualCenter server:

    Unable to get exclusive access to VC repository

Purpose

VirtualCenter requires an exclusive lock on the entire SQL database when it starts or it fails to start. Any open connections to the database prevent this exclusive access.
 
This article provides steps to clear these connections.

Resolution

To clear open connections to the database:

  1. Verify that only one instance of VirtualCenter is trying to access the VirtualCenter database. You see this error if vpxd.exe is run from the command line and you try to start the service from services.msc .
  2. Using the vendor's database management tools, check the SQL Server for any connections to the VirtualCenter database. If any are found, your DBA can terminate them.
  3. If you do not have a DBA, you can stop and restart the SQL Server. This clears any connections.
Warning: Stopping and starting the database server terminates all connections to all databases being hosted on that server. Perform this action with extreme caution.
 
For those using Oracle information on terminating Oracle sessions can be found here: Killing Oracle Sessions .

Feedback

Rating: 1 - Lowest 2 3 4 5 - Highest (1 Ratings)   

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (2000 or fewer characters)
Submit
Rating: 1 - Lowest 2 3 4 5 - Highest (1 Ratings)   
Actions