I have had the opportunity to create a new realm in OID 11g and in this post I would like to provide the steps to achieve this.

  1. Export the ORACLE_HOME environment variable.
  2. Run the ldapsearch command to list the existing default subscriber. $ORACLE_HOME/bin/ldapsearch -h ldap_host -p port -D cn=orcladmin -w password -b “cn=common, cn=oraclecontext”-s base “objectclass=*” orcldefaultsubscriber
  3. The results would be like as shown below
  4. cn=Common,cn=Products,cn=OracleContext
    orcldefaultsubscriber=dc=oracle,dc=com

  5. In our case the default realm is dc=oracle,dc=com
  6. Goto $ORACLE_HOME/ldap/bin
  7. Run oidrealm command as shown below to create a new realm. Enter the OID Admin password when it prompts.
  8. ./oidrealm ldap_host ldap_port dc=mydomain,dc=com

  9. Check for the message Realm Updated as shown below which ensures that new realm dc=mydomain,dc=com is created.
  10. Check for the new realm using the ldapsearch command as shown below.
  11. $ORACLE_HOME/bin/ldapsearch -h ldap_host -p port -D cn=orcladmin -w password -b “dc=mydomain,dc=com”-s base “objectclass=*”