Shell Scripts
Chapter 8 Command-Line Scripts 263
• To reindex all the database index files:
$ db2index
• To reindex
cn
and
givenname
in the database instance
userRoot
:
$ db2index -n userRoot -t cn -t givenname
• To reindex
cn
in the database where the root suffix is
dc=example,dc=com
:
$ db2index -s "dc=example,dc=com" -t cn
Options
dsml2db (Import DSML document contents into
database)
Imports the contents of the DSML version 1.0 document into the database. To run
this script, the server must be stopped. The
*
indicates that multiple occurrences
are allowed.
Syntax
Optio
n
Parameter Description
-n backendInstance Instance to be reindexed.
-s includeSuffix Suffixes to be included or the subtrees to be included if -n
has been used.
-t attributeName Name(s) of the attributes to be reindexed.
-T vlvAttribute Name(s) of the VLV attributes to be reindexed.
Shell script:
dsml2db -n backendInstance | {-s includeSuffix}* [{-x
excludeSuffix}*] {-i dsmlFile}