idsrunstats, runstats

Use the runstats command to optimize the database of a directory server instance.

Description

The idsrunstats command updates the statistics about the physical characteristics of the tables and the associated indexes in the database. These characteristics include number of records, number of pages, and average record length. The optimizer uses these statistics when it determines the access paths to the data. This command must be run when a table is updated many times, or after you reorganize a table.

Note: The idsrunstats command can be run even if the directory server is in running mode.

Synopsis

idsrunstats | runstats [-I instancename [-f configfile] [-d debuglevel]] | -v | -?

Options

The idsrunstats command takes the following parameters.
-d debuglevel
Sets the LDAP debug level to debuglevel. If you specify this parameter, the command sends the debug output to stdout. The debuglevel value is a bit mask that controls which output is generated with values from 1 to 65535. For information about debug levels, see Debugging levels.
-f configfile
Specifies the full path of the configuration file to be update. If this parameter is not specified, the default configuration file of the directory server instance is used.
-I instancename
Specifies the directory server instance name to update.
-v
Specifies to show the version information of the command.
-?
Specifies to show the syntax format.

Examples

Example 1:
To optimize the database that is associated with an instance, run the idsrunstats command:
idsrunstats -I instancename