OID – Sample LDIF

$ cat firstrun.ldif
dn:dc=com
objectclass: top
objectclass: domain
dc:com

dn:dc=oracle,dc=com
objectclass: top
objectclass: domain
dc:oracle

dn:dc=us,dc=oracle,dc=com
objectclass: top
objectclass: domain
dc:us

dn:cn=Users,dc=us,dc=oracle,dc=com
objectclass: top
objectclass: orclContainer
cn:Users

dn: cn=oiduser1,cn=users,dc=us,dc=oracle,dc=com
description: test user
sn: snoiduser1
uid: uidoiduser1
objectclass: top
objectclass: inetorgperson
objectclass: orcluser
objectclass: orcluserv2
cn: oiduser1
userpassword: welcome1

dn: cn=oiduser2,cn=users,dc=us,dc=oracle,dc=com
description: test user
sn: snoiduser2
uid: uidoiduser2
objectclass: top
objectclass: inetorgperson
objectclass: orcluser
objectclass: orcluserv2
cn: oiduser2

RCU OID Silent Creation

# RCU Silent for creating OID Schema

# Pre-requisite:

SQL> GRANT EXECUTE ON sys.dbms_job TO PUBLIC;
SQL> GRANT EXECUTE ON dbms_reputil TO PUBLIC;

$ /scratch/binaries/rcu/rcu_11.1.2.1.0/rcuHome/bin/rcu -silent -createRepository -databaseType ORACLE -connectString localhost:1521:orcl1 -dbUser SYS -dbRole SYSDBA -component OID -f < ~/passwordfile.txt

$ cat passwordfile.txt
Welcome1
Welcome1

$ /scratch/binaries/rcu/rcu_11.1.2.1.0/rcuHome/bin/rcu -silent -dropRepository -databaseType ORACLE -connectString localhost:1521:orcl1 -dbUser SYS -dbRole SYSDBA -component OID -f < ~/passwordfile.txt

OID – Custom Schema

# Add attribute – llcSecretAttr :

cat > ~/add_attr1_to_schema.ldif

dn: cn=subschemasubentry
changetype: modify
add: attributetypes
attributetypes: ( 99.99.99.99.98 NAME ‘llcSecretAttr’ EQUALITY caseIgnoreMatch SYNTAX ‘1.3.6.1.4.1.1466.115.121.1.44’ )

$ ldapmodify -h llcau3.oracle.com -p 3060 -D cn=orcladmin -w mypasswd -v -f ~/add_attr1_to_schema.ldif
# Add attribute to an objectclass

cat > ~/add_obj1_to_schema.ldif

dn: cn=subschemasubentry
changetype: modify
add: objectclasses
objectclasses: ( 99.99.99.99.99 NAME ‘llcTestObj’ SUP top STRUCTURAL MAY llcSecretAttr )
$ ldapmodify -h llcau3.oracle.com -p 3060 -D cn=orcladmin -w mypasswd -v -f ~/add_obj1_to_schema.ldif

OID – Generating Alert Logs

$ cat addPlugin.ldif
dn : cn=BindPlugInTest,cn=plugin,cn=subconfigsubentry
objectclass : top
objectclass : orclPluginConfig
cn : BindPlugInTest
orclpluginclassreloadenabled : 1
orclpluginenable : 1
orclpluginisreplace : 0
orclpluginkind : java
orclpluginldapoperation : ldapbind
orclpluginname : PostBind
orclpluginsubscriberdnlist : cn=users,dc=us,dc=oracle,dc=com
orclplugintiming : post
orclplugintype : operational
orclpluginversion : 1.0

-bash-4.1$ cat ~/plugindisable.ldif
dn: cn=BindPlugInTest,cn=plugin,cn=subconfigsubentry
changetype: modify
replace: orclpluginenable
orclpluginenable: 1

dn: cn=BindPlugInTest,cn=plugin,cn=subconfigsubentry
changetype: modify
replace: orclpluginenable
orclpluginenable: 0

# execute ~/plugindisable.ldif within ldapmodify to generate the logs.

OID log Format

# Logic :

oidldapd{nn}s{PID}-{nnnn}.log 
alert{nn}s{PID}-{nnnn}.log

# Example :

$ ls -ltr
-rw-r—– 1 oracle oracle      51 5 Oct 10:53 console~OID~1.log
-rw-r—– 1 oracle oracle       0 5 Oct 10:53 alert-0000.log
-rw-r—– 1 oracle oracle    3128 5 Oct 10:53 oidmon-0000.log
-rw-r—– 1 oracle oracle    3881 5 Oct 10:53 oiddispd01-0000.log
-rw-r—– 1 oracle oracle  490793 5 Oct 11:03 oidldapd01s13520-0000.log
-rw-r—– 1 oracle oracle 4280961 5 Oct 11:31 alert01s13520-0000.log


Directory server (oidldapd)

ORACLE_INSTANCE/diagnostics/logs/OID/componentName/oidldapd01sPID-XXXX.log where:

01 is the instance number, which is 01 by default

s stands for server

PID is the server process identifier

XXXX is a number from 0000 to orclmaxlogfilesconfigured

Reference : https://docs.oracle.com/cd/E28280_01/admin.1111/e10029/logging.htm#OIDAG151