Chapter 7. Command-Line Scripts
Run db2index -t uid to avoid rebuilding all of the indexes or export and reimport all of
the databases using db2ldif and ldif2db.
dbverify is a shell script wrapper of verify-db.pl to set the appropriate library path.
Syntax
dbverify [ -a /path/to/database_directory ]
Options
Option
-a path
Table 7.6. dbverify Options
For information on the equivalent Perl script, see
Databases)".
7.3.4. db2bak (Creates a Backup of a Database)
Creates a backup of the current database contents. This script can be executed while the server is still
running.
Syntax
db2bak [ backupDirectory ]
For information on the equivalent Perl script, see
Database)".
7.3.5. db2ldif (Exports Database Contents to LDIF)
Exports the contents of the database to LDIF. This script can be executed while the server is still
running, except with the -r option. To export the replication state information, shutdown the server
first, then run db2ldif with -r.
For information on the equivalent Perl script, see
to
LDIF)".
For the shell scripts, the script runs the ns-slapd command-line utility with the db2ldif keyword.
Ellipses (...) indicate that multiple occurrences are allowed.
Syntax
208
Description
Gives the path to the database directory. If
this option is not passed with the verify-
db.pl command, then it uses the default
database directory, /var/lib/dirsrv/
slapd-instance_name/db.
Section 7.4.13, "verify-db.pl (Check for Corrupt
Section 7.4.3, "db2bak.pl (Creates a Backup of a
Section 7.4.5, "db2ldif.pl (Exports Database Contents
Need help?
Do you have a question about the DIRECTORY SERVER 8.0 and is the answer not in the manual?
Questions and answers