How to create new realm in OID 11g?

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

cn=Common,cn=Products,cn=OracleContext
orcldefaultsubscriber=dc=oracle,dc=com

    1. In our case the default realm is dc=oracle,dc=com
    2. Goto $ORACLE_HOME/ldap/bin
    3. Run oidrealm command as shown below to create a new realm. Enter the OID Admin password when it prompts.

./oidrealm ldap_host ldap_port dc=mydomain,dc=com

    1. Check for the message Realm Updated as shown below which ensures that new realm dc=mydomain,dc=com is created.
    2. Check for the new realm using the ldapsearch command as shown below.

$ORACLE_HOME/bin/ldapsearch -h ldap_host -p port -D cn=orcladmin -w password -b “dc=mydomain,dc=com”-s base “objectclass=*”

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: http://talkidentity.blogspot.com

Leave a Comment:

4 comments
Kapardhi says March 23, 2017

While trying to configure enterprise user security from OEM, I have accidentally deleted default realm dc=com. Since then I am getting “directory has not been configured for this usage. It doesn’t contain at least one oracle context.” Is there any way to re-create the default realm

Reply
Jorge Rojas says July 18, 2017

Hi, when i go to ORACLE_HOME/bin and try to execute oidrealm command: -bash: oidrealm: command not found

When i look into de directory there is not a oidrealm toolkit.

Do you know why? thanks

Reply
Add Your Reply