Creating OVD 11g adapters without using ODSM console

The only supported method to create OVD 11g adapters is to create it using ODSM console. However if you want to create the adapters without using GUI, you can do so by updating adapters.os_xml. This is the file where all adapter details gets stored.

Let me talk about my exploration right from the beginning. I have read a metalink note 1336191.1 and thought that adapters can be created through command line as well. This is the Oracle documentation link that it points.

I suspected looking at the documentation as it talks about libOVD adapter used in OIM LDAP sync process. Anyhow, I gave a try using

    • Goto ORACLE_HOME/common/bin
    • Run ./
    • connect(‘weblogic’,’abcd1234′,’t3://′)
    • help()
    • I can see this , help(‘OracleLibOVDConfig’)List commands for managing OVD configuration
    • help(‘OracleLibOVDConfig’)
    • I can see the functions: help(‘createLDAPAdapter’), help(‘deleteAdapter’), help(‘getAdapterDetails’), help(‘listAdapters’), ….
    • So I ran listAdapters() to see the existing adapters in OVD server and results are empty. In fact the OVD server has 2 adapters which is not listed in the results.
    • So I have ran createAdapter by referring help(‘createLDAPAdapter’) and when I run listAdapters() it showed the newly created adapter but this is not visible in OVD 11g ODSM console.

So I understood that OracleLibOVDConfig commands are used for OIM LDAP sync operations and this does not work for actual OVD server. Therefore I concluded that adapters can’t be created using command line.

So the only approach left is to directly update adapters.os_xml file as mentioned below.

  • Stop the OVD server using opmnctl
  • Take the backup of adapters.os_xml.
  • Edit the adapters.os_xml file located at AS_INSTANCE/config/OVD/ovd_instance.
  • Goto the end of the file and create a new block as shown below.

<ldap id=”Test_OID_Adapter” version=”12″>
<pluginChains xmlns=””>
<name>Performance Monitor</name>
<plugin name=”Performance Monitor”/>
<host port=”3060″ percentage=”100″ readonly=”false”></host>

  • In my case, I have provided the values Test_OID_Adapter as Adapter Name, root context, remote base, Admin user id and password. Provide the password in plain text format. Once the OVD server starts, this value will be encrypted.
  • Ensure that syntax is correct otherwise OVD server won’t start. You can copy the file to any XML editor to check the validity.
  • Start the OVD server.
  • Login to the ODSM console and see the newly created adapter.

If the syntax is wrong in adapters.os_xml file, it would result with error shown below in console~ovd1~1.log.

Exception in thread “main” java.lang.RuntimeException: Error parsing XML file.
at com.octetstring.vde.config.ConfigHandler.getInstance(
at com.octetstring.vde.VDEServer.main(
Caused by: oracle.xml.parser.v2.XMLParseException: Element ‘ldap’ not expected.
at oracle.xml.parser.v2.XMLError.flushErrors(
at com.octetstring.vde.config.parsers.ConfigParser.parseConfiguration(
at com.octetstring.vde.config.parsers.ConfigParser.parseConfiguration(
at com.octetstring.vde.config.parsers.ConfigParser.parseConfiguration(
at com.octetstring.vde.config.ConfigHandler.getProvisionedAdapters(
at com.octetstring.vde.config.ConfigHandler.<init>(
at com.octetstring.vde.config.ConfigHandler.getInstance(
Contact me at if you want java piece of code to create the adapter in adapters.os_xml file directly.

Share This Post with Your Friends over Social Media!

About the Author Mahendra

I am engulfed in Oracle Identity & Access Management domain. I have expertise on providing the optimized solutions for user provisioning, web access management, Single Sign-On and federation capabilities etc., I am also well versed with complex integrations within Identity Management and other product domains. I have expertise on building demos and implementation experience on products Oracle Access Manager, Oracle Adaptive Access Manager, Oracle Entitlement Server, Oracle Virtual Directory, Oracle Internet Directory etc., Look @ my blog:

Leave a Comment: