PPS configuration path
QDB requires a dedicated location for storing the database configuration and status objects. This location is called the PPS configuration path. The database configuration objects are text files that control database setup. The status objects are text files that report the database states.
The config subdirectory
The contents of the config subdirectory under the PPS configuration path determine which databases are currently visible to QDB. The QDB service monitors this location for file additions and removals. When a file is added, QDB parses its contents and tries to load the database with the same name as the file. When a file is removed, QDB unloads the corresponding database, meaning it removes the database from visibility but doesn't delete it.
The status subdirectory
- Initializing
- The database configuration object has been seen and the database is initializing.
- Error
- There was an error with the configuration of the database.
- Valid
- The database has been configured and can be accessed.
- AttachWait
- The database is waiting for an auto-attached database to become available before configuration can continue.
Overriding the PPS configuration path
pps -m /temp
qdb -c /temp/qdb
The specified directory must exist before you start the QDB server. To start multiple instances of QDB, you must give each instance a distinct configuration path that's based on the PPS mountpoint. So in the above example, you could run an additional instance of QDB with the path /temp/customerdbs. We recommend you also give each instance a distinct QDB device mountpoint, by using the -n option. For details on all command options, see the QDB Command Line chapter.
