Skip Headers
Oracle® Identity Management User Reference
10g Release 2 (10.1.2)
  Go To Documentation Library
Go To Product List
Solution Area
Go To Table Of Contents
Go To Index


4.1 bulkdelete

The bulkdelete command-line tool enables you to delete a subtree efficiently. It can be used when both an Oracle Internet Directory server and Oracle Directory Replication servers are in operation. It uses a SQL interface to benefit performance. For this release, the bulkdelete tool runs on only one node at a time.

This tool does not support filter-based deletion. That is, it deletes an entire subtree below the root of the subtree. If the base DN is a user-added DN, rather than a DN created as part of the installation of the directory, it is included in the delete. You must restrict LDAP activity against the subtree during deletion.

4.1.1 Syntax for bulkdelete -connect connect_string -base "base_dn" [-size number_of_entries] [-encode "character_set"]

4.1.2 Arguments for bulkdelete

-connect connect_string

Required. The directory database connect string. If you already have a tnsnames.ora file configured, then this is the net service name specified in that file, which is located in $ORACLE_HOME/network/admin.

-base "base_dn"

Required. The base DN of the subtree to be deleted, for example, "dc=company, dc=com". Enclose the DN in quotation marks.

-size number_of_entries

Optional. The number of entries to be committed as a part of one transaction.

-encode "character_set"

Optional. The native character set encoding. Defaults to the character set of the user's terminal. Each supported character set has a unique acronym, for example, WE8MSWIN1252, JA16SJIS, or AL32UTF8.

4.1.3 Tasks and Examples for bulkdelete

The following example shows how to delete the OracleContext subtree from the directory. Deleting a Subtree from a Directory

Example: -connect dbs1 -base "cn=OracleContext"

4.1.4 Related Command-Line Tools for bulkdelete