Loading the Exported Data Into the Target Directory in Bulk

Now that the duplicate baseDN has been removed from the target 12c directory, you can export the 11g source environment data into the target 12c directory by using the bulkload process.

Do the following on the first target 12c directory host only. All tool execution requires that you set the environment variables for Oracle Internet Directory tools. Environment Variables for Oracle Internet Directory Tools.

  1. Run the following command to check and generate the bulk load:
    bulkload connect="TNS_ENTRY" append="TRUE" check="TRUE" generate="TRUE" restore="TRUE" file="LDIF_FILE"
    Where,
    • TNS_ENTRY is the entry found in ORACLE_INSTANCE/config/tnsnames.ora.
    • LDIF_FILE is the location of the file copied to the first Oracle Internet Directory host in the target 12c environment.
    For example:
    bulkload connect="OIDDB" append="TRUE" check="TRUE" generate="TRUE" restore="TRUE" file="/u01/backup/backup_data.ldif"
    Output example:
    ------------------------------------------------------------
    "oiddb"...
    ------------------------------------------------------------
    This tool can only be executed if you know database user password for OID
    Enter OID Password :: OCI_ODS_SCHEMA_PASSORD
    ...Setting OID server mode to read-modify on "oiddb" node...
    ------------------------------------------------------------
    Checking and Generating Internet Directory data for bulk loading
    ------------------------------------------------------------
    Data generated successfully
    ------------------------------------------------------------

    Note:

    If the above command results in conflicts or errors, you must resolve them before you execute the bulkload loading process. Conflict and error resolution is not in the scope of this document. For more information, see Troubleshooting bulkload Errors in Administering Oracle Internet Directory.

  2. Run the following command to start the bulk loading process:
    bulkload connect="[TNS_ENTRY]" load="TRUE"

    Where TNS_ENTRY is the entry found in ORACLE_INSTANCE/config/tnsnames.ora.

    For example:
    bulkload connect="OIDDB" load="TRUE"

    Output example:

    ------------------------------------------------------------
    "oiddb"...
    ------------------------------------------------------------
    This tool can only be executed if you know database user password for OID
    Enter OID Password :: OCI_ODS_SCHEMA_PASSORD
    ------------------------------------------------------------
    Loading data on "oiddb"
    ------------------------------------------------------------
    attr_store001...
    battr_store001...
    objectclass001...
    attr_store002...
    battr_store002...
    objectclass002...
    battr_store003...
    objectclass003...
    dn...
    ...
    ------------------------------------------------------------
    Data loaded successfully
    ------------------------------------------------------------
    Verifying indexes ...
    ------------------------------------------------------------
    Generating Database Statistics ...
    ------------------------------------------------------------
    ...Setting OID server mode to read-write on "oiddb" node...