24 Backing Up and Restoring Oracle Internet Directory

This chapter tells how to backup and restore both small and large directories. It contains these topics:

24.1 Introduction to Backing Up and Restoring Oracle Internet Directory

You can back up a small directory or a specific naming context by using ldifwrite. For larger directories, perform an Oracle Fusion Middleware backup. See the chapters on backup and recovery in Oracle Fusion Middleware Administrator's Guide.

24.2 Backing Up and Restoring a Small Directory or Specific Naming Context

To backup and restore a small directory or specific naming context in directory, do the following:

  1. Back up the node, as follows:

    1. Ensure that the environment variable ORACLE_INSTANCE is set correctly.

    2. Ensure all Oracle Internet Directory servers, both LDAP and replication, are stopped on the node.

    3. Enter this command:

      ldifwrite connect="connect_string" basedn="naming_context" \ 
  2. Start the directory server on the new node by entering this command:

    opmnctl startproc process-type=OID 
  3. Load data into the new node by using the bulkload utility. Enter this command:

    bulkload connect="connect_string" check="TRUE" generate="TRUE" \
      load="TRUE" restore="TRUE" append="TRUE" file="/complete_path/backup.ldif"


    If you back up data from an earlier version of Oracle Internet Directory, such as 10g Release 2 (, then restore it on a node running 10g ( or later, you must update the password policy entries as described in "Password Policy and Fan-out Replication" on page 30-32.

24.3 Backing Up and Restoring a Large Directory

For instructions on backing up and restoring a large directory, see the backup and recovery chapter in Oracle Fusion Middleware Administrator's Guide.