Bulk deletes all OID users created by DIP profile

How to reset OID to default like fresh installation

cd /u01/Oracle/Middleware/Oracle_OID/bin

export ORACLE_HOME= /u01/Oracle/Middleware/Oracle_OID/

./ldapsearch -h ssostageapp.test.com -p 3060 -D “cn=orcladmin” -w oracle11g -b “dc=albilad,dc=com” -S uid -s sub “(creatorsname=orclodipagentname=ad_oid,cn=subscriber profile,cn=changelog subscriber,cn=oracle internet directory)” cn >users_createdby_dip.ldif

cp users_createdby_dip.ldif /u01/Oracle/Middleware/Oracle_OID/ldap/bin/users_createdby_dip.ldif

export ORACLE_INSTANCE=/u01/Oracle/Middleware/oid_instance/

./opmnctl stopall

cd /u01/Oracle/Middleware/Oracle_OID/ldap/bin/

./bulkdelete connect=oiddb file=users_createdby_dip.ldif

enter passord pf oid DB schema

 

————————————————————

Reading entries under BaseDN “cn=wvdiitsd0009,ou=vdi,ou=xendesktops,ou=citrix,cn=users,dc=albilad,dc=com”…

————————————————————

 

————————————————————

Reading entries under BaseDN “cn=wvdiitsd0009″…

————————————————————

 

————————————————————

374 Entries have been deleted.

————————————

 

 

start OID

cd /u01/Oracle/Middleware/oid_instance/bin

./opmnctl startall

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *