Oracle databases (LAM Pro)

Oracle allows to manage connection data that is stored in tnsnames.ora to be stored in an LDAP directory.

Initial setup

LDAP server setup:

You will need to install the correct Oracle LDAP schema files on your LDAP server. If you run no Oracle LDAP server then you can get them (oidbase.schema, oidnet.schema, oidrdbms.schema, alias.schema) e.g. from here.

Next you need to create the root entry for Oracle. It should look like this:

dn: cn=OracleContext,dc=example,dc=com
objectclass: orclContext
cn: OracleContext

You can create it with LAM's tree view (tools menu). Please note that "cn" must be set to "OracleContext".

LAM setup:

Edit your LAM server profile and add the Oracle account type:

In case you manage a single Oracle context just enter the cn=OracleContext entry as LDAP suffix. If you manage multiple Oracle context entries then set the LDAP suffix to a parent entry of them.

Next, add the Oracle module:

Now you can login to LAM and start to add database entries.

Managing database entries

Each database has a service name, the connection string and an optional description.

Database client setup for LDAP

You need to activate the LDAP adapter to make the database tools reading LDAP. Edit network/admin/sqlnet.ora like this:


Then add a file called ldap.ora next to your sqlnet.ora and set the LDAP server and DN suffix where cn=OracleContext is stored:

DEFAULT_ADMIN_CONTEXT = "ou=ctx1,ou=oracle,o=test,c=de"

This will allow e.g. tnsping to get the connection data from LDAP:

[oracle@oracle bin]$ tnsping mydb

TNS Ping Utility for Linux: Version - Production on 09-FEB-2014 18:06:54

Copyright (c) 1997, 2013, Oracle.  All rights reserved.

Used parameter files:

Used LDAP adapter to resolve the alias
OK (10 msec)