VMware Cloud Community
hux2000
Contributor
Contributor

Getting an error when I try to change the vCenter DB owner

vCenter 5 + MSSQL 2008 R2. I'm trying to change the vCenter database owner by going into the SQL Server Management Studio, right-clicking the vCenter db, choosing properties, then "Files", then updating the "Owner" field. However, when I do this I get the following error:

"Lock request timeout period exceeded. (Microsoft SQL Server, Error: 1222)"

Any idea what's going on here and how I can fix it?

Needless to say, I am in no was a db admin! Smiley Wink

0 Kudos
4 Replies
GreatWhiteTec
VMware Employee
VMware Employee

From Management studio, click on your DB and create a new query.

sp_who2   and execute

this will return a list of processes running. Look for the Blk By column to see what process is being blocked. You can kill the process by runnign

kill <SPID>      if you feel it is ok to terminate that process.

Hope this helps.

0 Kudos
GreatWhiteTec
VMware Employee
VMware Employee

If this doesn't work, you may need to "juice up" your SQL box.

0 Kudos
hux2000
Contributor
Contributor

The "Blk By" column is completely empty. Also, it's not a SQL box performance issue: the stats show a consistent CPU usage of around 3%, RAM around 15%, network bandwidth almost never above 100KB/sec, etc.

Do I need to shutdown the vCenter box before trying to change the DB owner? If you don't technically need to, would it help if I did?

0 Kudos
hux2000
Contributor
Contributor

Disabling the vCenter service enabled me to change the owner in the SQL Management Studio. Makes sense, I guess.

0 Kudos