7.3.6 db2index (Reindexes database index files)

Reindexes the database index files. Ellipses indicate that multiple occurrences are allowed. For information on the equivalent Perl script, see “db2index.pl (Creates and generates indexes)”.

Syntax

db2index [[ -nbackendInstance] [ -sincludeSuffix ]] [ -t

[attributeName{:indextypes(:mathingrules)}] ] [ -TvlvAttribute ]

Usage Here are a few sample commands:

Reindex all the database index files:

#db2index

Reindex cn and givenname in the database instance userRoot:

#db2index -n userRoot -t cn -t givenname

Reindex cn in the database where the root suffix is dc=example,dc=com:

#db2index -s "dc=example,dc=com" -t cn

Options

Table 7-8 db2index options

Option

Description

-nbackendInstance

Gives the name of the instance to be reindexed.

-sincludeSuffix

Gives suffixes to be included or the subtrees to be included if -nhas

 

been used.

-t

Names of the attributes to be reindexed. Optionally, this can include

attributeName{:indextypes(:mathingrules)}

the index type (eq, pres, sub, approx) and a matching rule OID.

-TvlvAttributeName

Gives the names of the VLV attributes to be reindexed. The name is the

 

VLV index object's common name in cn=config.

7.3.7 ldif2db (Import)

Runs the ns-slapdcommand-line utility with the ldif2db keyword. To run this script, the server must be stopped. Ellipses indicate that multiple occurrences are allowed.

For information on the equivalent Perl script, see “ldif2db.pl (Import)”.

NOTE:

ldif2db supports LDIF version 1 specifications. An attribute can also be loaded using the :< URL specifier notation; for example:

jpegphoto:< file:///tmp/myphoto.jpg

Although the official notation requires three ///, the use of one / is accepted. For further information on the LDIF format, see the "Managing Directory Entries" chapter in the HP-UX Directory Server administrator guide.

Syntax

ldif2db [[ -nbackendInstance] [ { -sincludeSuffix } ]...] [ -xexcludeSuffix ] [ [ -ildifFile ] ] [ -O ] [ -gstring ] [ -GnamespaceId ] [ -E ]

Options

220 Command-line scripts

Page 220
Image 220
HP UX Identity Security Software manual 6 db2index Reindexes database index files, Ldif2db Import, Db2index options