Exporting the Required Data from the Source Directory
The only data which needs to be exported is the data that does not exist in the target system. Data seeded by product installations is not required.
When you run the RCU utility, the Oracle Internet Directory instances will have some of the same base objects created by default in their database. Hence, the only data that needs to be exported from the source 11g directory is the data that does not exist in the target 12c directory.
These are the baseDN that is created by the Oracle Access Manager
application, named cn=OAMConfigStore
, and the baseDN realm.
If Oracle Access Manager is not installed in the customer’s environment, the OAM baseDN will not be available in the directory. The baseDN realm is a backward notated version of the customer’s domain name.
For example:
For a customer whose domain name is test.example.com
, the
baseDN
will be dc=com
.
Note:
Perform these steps only on the first source host. All tool execution requires that you set the environment variables for Oracle Internet Directory tools. See Environment Variables for Oracle Internet Directory Tools.-
Run the following command:
ldifwrite connect="TNS_ENTRY" basedn="YOUR_BASEDN" ldiffile="BASEDN_LDIF_FILE"
Where,TNS_ENTRY
is the entry found inORACLE_INSTANCE/config/tnsnames.ora
.YOUR_BASEDN
is the baseDN for the organization.BASEDN_LDIF_FILE
is the file to which the data is exported.
For example:
ldifwrite connect="OIDDB" basedn="dc=com" ldiffile="dc_com.ldif"
Output example:This tool can only be executed if you know database user password for OID Enter OID Password :: ON-PREMISES_ODS_SCHEMA_PASSORD ------------------------------------------------------------ Reading entries under BaseDN "dc=com"... ------------------------------------------------------------ ------------------------------------------------------------ 217 Entries are written to "/u01/backup/dc_com.ldif". ------------------------------------------------------------
-
Run the following command (can be skipped if your Oracle Internet Directory environment does not have OAM or OIG installed):
ldifwrite connect="TNS_ENTRY" basedn=" cn=OAMConfigStore" ldiffile="OAMCS_LDIF_FILE"
Where,TNS_ENTRY
is the entry found inORACLE_INSTANCE/config/tnsnames.ora
.YOUR_BASEDN
is the baseDN for the OAM config store.OAMCS_LDIF_FILE
is the file to which data is exported.
For example:
ldifwrite connect="OIDDB" basedn=" cn=OAMConfigStore" ldiffile="oamcs.ldif"
Output example:This tool can only be executed if you know database user password for OID Enter OID Password :: ON-PREMISES_ODS_SCHEMA_PASSORD ------------------------------------------------------------ Reading entries under BaseDN "cn=oamconfigstore"... ------------------------------------------------------------ ------------------------------------------------------------ 1 Entries are written to "/u01/backup/oamcs.ldif" ------------------------------------------------------------
- Combine the two LDIF files into one file (if
applicable):
cat "/u01/backup/dc_com.ldif > "/u01/backup/backup_data.ldif && cat "/u01/backup/oamcs.ldif >> "/u01/backup/backup_data.ldif