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

 

 

Advertisements

About lorddisk

WebCenter Content, WebCenter Portal, WebCenter Sites,Weblogic, Identity and Access Management (IAM),SSO,OAM,OIM,OAAM,OUD, OPAM,OID, OVD ,Oracle API Gateway ,OBIEE,OEDQ, Oracle ADF, Oracle SOA,J2EE, CackePHP ,PHP,J2SE,J2EE,Spring,Hibernate,JQuery,CSS,Java Script ,Joomla,Drupal,Worpress
This entry was posted in IDM. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s