Oracle Internet Directory

From Oracle FAQ

Jump to: navigation, search

Oracle Internet Directory (OID) is a standard LDAP directory server. OID is part of the Oracle Application Server.

Contents

Start and stop the OID server

To start OID:

${ORACLE_HOME}/opmn/bin/opmnctl start

To stop:

${ORACLE_HOME}/opmn/bin/opmnctl stop

OID Utilities

Some related utilities to manage OID entries:

LDAP bind

Test if you can bind (connect) to the OID server:

$ ldapbind -p 389 -h my-host-name -D "cn=orcladmin"
bind successful

Add OID entries

Add an entry/ entries to the OID server:

$ ldapadd -h my-host-name -p 389 -D "cn=orcladmin" -w mypassword -f onames.ldif

Lookup OID entries

Lookup an SQL*Net Service Name (in the example below, extract orclnetdescstring for TESTENTRY) in the OID directory:

ldapsearch -h my-host-name -p 389 -D "cn=orcladmin" cn=TESTENTRY orclnetdescstring

Modify an OID entry

ldapmodify ...

Delete an OID entry

ldapdelete -h my-host-name -p 389 -D "cn=orcladmin" -w mypassword "cn=TESTENTRY,cn=OracleContext,dc=mycompany,dc=com"
Personal tools