The environment is running VMware 6.0 U3 on both hosts and vCenter. We have verified ODBC and vcdb.properties are pointed to the correct database server and there is no issue with database connectivity.
We see this error in the event log:
The VMware Inventory Service service terminated with the following service-specific error:
Incorrect function.
We also see the following Java errors in the VMware inventory service log,:
Caused by: com.vmware.vim.query.server.kvlocal.impl.exception.KVExecutionException: SQL Error:
at com.vmware.vim.query.server.kvlocal.impl.KVUtil.createAndLogExecutionException(KVUtil.java:153)
at com.vmware.vim.query.server.kvlocal.impl.provider.VCDBProviderFactory.getConnection(VCDBProviderFactory.java:116)
at com.vmware.vim.query.server.kvlocal.impl.provider.VCDBProviderFactory.getExistingProviders(VCDBProviderFactory.java:327)
at com.vmware.vim.query.server.kvlocal.impl.KVManagerImpl.populateExistingProviders(KVManagerImpl.java:806)
at com.vmware.vim.query.server.kvlocal.impl.VCDBKVManagerImpl.init(VCDBKVManagerImpl.java:72)
... 91 more
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'com.microsoft.sqlserver.jdbc.SQLServerDriver' for connect URL ''
at org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1452)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
at com.vmware.vim.query.server.kvlocal.impl.provider.VCDBProviderFactory.getConnection(VCDBProviderFactory.java:114)
... 94 more
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:278)
at org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1437)
... 97 more