Sun Java System Portal Server 7.1 Command Line Reference

Subcommands

The following table is a two-column table that lists the subcommand in the first column with a brief description in the second column.

-O

Optimize the database. If you are running this subcommand on any database other than the default one, you need to use the -y option. The default database is the database defined in the config/search.conf file labeled datbase-name=logicaldbname. For example, the default value is datbase-name=default and the default database directory is db/default.

Databases do not normally need to be optimized.

-X

Truncate or empty a database. If you are running this subcommand on any database other than the default one, you need to use the -y option. Disk space used for indexes is recovered, but disk space used by the main database is not recovered, instead, it is reused as new data is added to the database.

-I

Reindex a database. If you are running this subcommand on any database other than the default one, you need to use the -y option.

-E

Delete expired RDs from a database. If you are running this subcommand on any database other than the default one, you need to use the -y option.

-R

Recover all databases. This is a global command and takes no options. All database processes, including other rdmgr instances and the main search server must be stopped before running this command.

-G

Repartition the database. This command takes no options. The partitions are defined in the config/search.conf file labeled database-partitions=p1,p2,p3,.... where p1, p2, and p3 are the filenames of the partitions. The server needs to be restarted after running this command.

-B

Completely deletes the database. Recovers all the disk space. There should be no indexing happening and the Portal server has to be off when you run this subcommand.

-L

Lists selected fields from the database to stdout. Requires the -a att option. If you are running this subcommand on any database other than the default one, you need to use the -y option.