LDIF via Script

for i in {5..50000}; do echo "dn: cn=user$i,cn=Users, dc=us,dc=oracle,dc=com"; echo "objectclass: top"; echo "objectClass: person"; echo "objectClass: organizationalPerson"; echo "objectClass: inetOrgPerson"; echo "givenName: user$i"; echo "sn: user$i"; echo ""; done >> /tmp/ldapmod-tuser00.ldif


OID – How to perform filesystem backup

# File system backup of IDM Home

tar -cvf OracleIDM1_bkp.tar Oracle_IDM1

# File system backup of Instance Home

cd /u01/app/mwhome/
tar -cvf oid_asinst_1_bkp.tar asinst_1

#Complete backup / snapshot of database
#LDIF back up all your base domain using LDIFWRITE. You can import back the base domain using bulkload.sh script.

$ ldifwrite -connect connect_string  -b base_domain -f backup.ldif

Oid Bulk Load

# Set the env:

$ export ORACLE_HOME=path/Oracle_IDM1/
$ export ORACLE_INSTANCE=path/asinst_1

# A sample ldif file to import

$ cat > testuser.ldif
dn: cn=testuser,cn=Users, dc=us,dc=example,dc=com

# Import

$ $ORACLE_INSTANCE/bin/opmnctl stopall

$ bulkload connect=OIDDB check=true generate=true append=true file=testuser.ldif
$ bulkload connect=OIDDB append=true load=true file=testuser.ldif
$ bulkload connect=OIDDB index="TRUE"

$ $ORACLE_INSTANCE/bin/opmnctl startall
$ $ORACLE_INSTANCE/bin/opmnctl status -l

# Other links to read :