OVD 11g Database Adapter Creation Using OCI Driver Fails with Invalid Database Connection Error

(Doc ID 1927363.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Virtual Directory - Version and later
Information in this document applies to any platform.


Trying to create a DB Adapter from ODSM using OCI driver Fails with "Invalid Database Connection" Error

Following error is seen in the wls_ods1 diagnostic.log file


[2014-06-09T13:22:29.061+02:00] [wls_ods1] [NOTIFICATION] [] [oracle.ldap.odsm.ui.common.Wizard] [tid: [ACTIVE].ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 004yqLhC6jM1baXh1tnJ8j0003q6001DF4,0:1] [APP: odsm#] [URI: /odsm/faces/odsm.jspx] doNext[[
oracle.ldap.admin.common.SaveChangeException: Invalid Database Connection
       at oracle.ldap.odsm.model.ovd.config.adapters.NewAPDataBaseAdapterCfg.saveChanges(NewAPDataBaseAdapterCfg.java:425)
       at oracle.ldap.odsm.ui.common.Wizard.doNext(Wizard.java:282)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


Example DB Adapter Settings:

URL Type: Use Custom URL
Database Type: Oracle - Oracle OCI Drivers
JDBC Driver Class : oracle.jdbc.driver.OracleDriver
Database URL : jdbc:oracle:oci:@(description=(address=(host=localhost)(protocol=tcp)(port=1521))(connect_data=SERVICE_NAME=orcl.us.oracle.com)))
Host: localhost
Port: 1521
Database Name: orcl.us.oracle.com





Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms