Knowledge Base
The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides

|
Accessing the Storage View tab in vCenter Server fails with the error: Cannot create PoolableConnectionFactory ([Microsoft][ODBC Driver Manager] Invalid string or buffer length) (2001363)
Symptoms
-
When there is a custom port for the SQL database, you are unable to view the Storage View tab in vCenter Server
-
Accessing the Storage View tab fails
-
You see the error:
The storage service is not initialized. Please try again later -
In the vws.log and stats.log files, you see entries similar to:
Unable to get a connection to: jdbc:sqlserver://databaseName=vcenter as username= due
to: The TCP/IP connection to the host has failed. java.net.ConnectException: Connection refused: connect
2011-06-09 09:38:04,512 [Thread-6] ERROR com.vmware.vim.sms.provider.VcProviderImpl - Failed populating service cache
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory ([Microsoft][ODBC Driver Manager] Invalid string or buffer length) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225) -
In the Licensing Accounting Module Health Alert monitor, you may see the error:
Message: "Cannot store license usage in the vCenter Server database"
Cause
Resolution
To update the vcdb.properties file with the correct URL:
- Open the vcdb.properties file using a text editor.
Note: The vcdb.properties file is located at C:\Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter\. In Windows 2008, this file is located at C:\ProgramData\VMware\VMware VirtualCenter. - Use the default vcdb.properties:
usevcdb=true - Update the file with the correct URL using a syntax similar to:
url = jdbc:sqlserver://SQLSERVERNAME:portnumber;instanceName=SQLEXP_VIM;databaseName=name_of_database
For example:
url = jdbc:sqlserver://SQLSERVERNAME:1433;instanceName=SQLEXP_VIM;databaseName=VIM_VCSDB - Save and close the file.
- Restart the VMware VirtualCenter Management Webservices service. For more information, see Stopping, starting, or restarting vCenter services (1003895).
Note: If accessing the Storage Views still fails, perform these steps:
- Copy the password entry in this registry key:
HKEY_LOCAL_MACHINE\software\VMware Inc\VMware Virtual Center\DB\3 - Open the vcdb.properties file again using a text editor.
- Copy and Paste the password from the registry key entry from above to the line starting with password=.
- Save and close the file.
- Restart the VMware VirtualCenter Management Webservices service.
Tags
See Also
- Stopping, starting, or restarting vCenter services
- Performance Chart fails after changing the default port on the SQL Server
Update History
Request a Product Feature
To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.
Actions
KB:
- Updated:
- Categories:
- Languages:
- Product Family:
- Product(s):
- Product Version(s):

