Sunday, April 10, 2016

OID to OUD migration using DIP


Note:1) DIP does not support password history migration

         2) Migration approach discussed here is based on DIP bootstrap mechanism
          
 1.       Backup OUD backends
Run below commands to set environment
export ORACLE_HOME=/usr/app/oud/111220/oud_11.1
export ORACLE_INSTANCE==/usr/app/oud/environments/oudds_1/OUD
export PATH=$ORACLE_HOME/bin:$ORACLE_INSTANCE/bin:$PATH

Run below command to execute backup
backup --backUpAll --compress --backupDirectory /usr/app/datamigration/oudBackup

2.       Backup OUD config
·         Copy the configuration directory, install-dir/config.
·         Make sure that the schema subdirectory is present within the install-dir/config directory.
·         Copy the files in install-dir/logs.
·         Make a copy of the installation directory.
·         Store the archived data, configuration directory, schema subdirectory, log files and installation directory together in a single location.
·         All items are required when restoring the server.

3.    Performance tuning  on target OUD

For Data Migration purpose adjust the heap sizes on the target OUD directories, as required. 


1.       Setting Environment Variables
export ORACLE_HOME=/usr/app/oud/111220/oud_11.1export ORACLE_INSTANCE=/usr/app/dirmon/environments/dipinst_1
export WLS_HOME=/usr/app/dirmon/11116/wlserver_10.3
2.       Execute  Boost strap commands for each dip sync profile
Boots strap properties file should be edited to write the target LDIF file into a shared mount directory which is shared across OUD hosts
o    syncProfileBootstrap -h hostname -p 7005 -D weblogic -f /usr/app/datamigration/conf/ldp2ldf_legacyoiddata.properties

3.      Data Transformation on Target LDIF
Remember OID records obpasswordchangeflag attributeswith value 0/1 and OUD records as TRUE/FALSE

Here may need to use some linux commends like ‘sed’ to replace  0 with True and 1 with false

4.       dsreplication pre-external-initialization
dsreplication pre-external-initialization -h host1 -p 4444 -X -b dc=domain,dc=com,dc=au -I admin -j pwd-file
5.       Importing LDIF into OUD
STOP OUD Directoring server using  command stop-ds

import-ldif -f /usr/app/dirmon/datamigration/OIDtoOUD.ldif -n userRoot –a

6.       Rebuild all indexes
Execute below command to rebuild all indexes

rebuild-index --rebuildAll  -b dc=domain,dc=com,dc=au

7.       dsreplication post-external-initialization

dsreplication post-external-initialization -h localhost -p 4444 -b dc=domain,dc=com,dc=au -I admin -j pwd-file –X

1 comment: