Skip to content


vCenter 5 Database Move: Update the tomcat DB pointer

Ran into a weird issue the other day and was totally perplexed.  I moved a vCenter database from one SQL server to another, as I have done numerous times before without issue, but this time something else cropped up.  The old SQL server kept receiveing login attempts from the vCenter server.  What?!?  

My DSNs for vCenter and Update Manager had been changed to point at the new DB server.  All apps and plugins that query vCenter use these DSNs, WTF is going on?

The "VMware VirtualCenter Management Webservices" service utilizes tomcat to connect to the DB to, I think, run the rollup jobs for DB cleanup and performance data.  vCenter runs fine without this service being able to connect to the DB though, so that is what was confusing for a while.  If you dig down into a config file at "C:\Program Data\VMware\VMware VirtualCenter\vcdb.properties" you will find what you're looking for.  A URL pointing to the old DB server.  e.g. url=jdbc:sqlserver://<dbserver>;databaseName\=<vcenter database name>  

The fix was to change the <dbserver> to the new DB server and all failed login attempts went away.  And in the spirit of the holidays "Yipee ki yay mother…"!

Hope this helps those DBAs out there who hate to see failed login attempts filling up their logs!  

Thanks to VMware Support for helping me run this down! Always a great experience when having to work with those guys and gals!  I don't have to call support often, but when I do, I call VMware Support…

Posted in Snig, vmware.

Tagged with , , , , .


3 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Sir says

    Very helpful post. Saved me a ton of time and the wrath of angry DBAs. Very helpful!!!!

  2. Nate Runge says

    Thanks a ton! Without the DB connectivity my systems summary and storage veiws were unpopulated. Nowhere in the VMware KB articles surrounding DB migration does it mention to watch out for this.

  3. Jechen says

    That works! Thanks for sharing this trick, and should be put on top of Google search.

You must be logged in to post a comment.