Previous Topic

Next Topic

ckpdb Command—Checkpoint a Database

Permission required: System administrator, DBA, or an Ingres user with the operator privilege. On VMS, to checkpoint a database in a group level installation, you must have the VMS CMKRNL privilege.

The ckpdb command checkpoints a database or selected tables in a database.

The command creates a new checkpoint for the specified database. If a table list is specified, only the tables on the table list are included in the checkpoint. If journaling is enabled for the database, all journal entries up to this checkpoint are marked as expired. Checkpointing takes place online (while the database is in use) and is transparent to users. The ckpdb command creates the checkpoint, and then copies (to the dump file) the log records of any changes to the database that occurred during the checkpoint procedure. Rollforwarddb uses the dump file when it recovers a database that was checkpointed online.

Ingres knows whether the checkpoint is for a table or a database, and prevents attempts to roll forward an entire database from a table checkpoint. For table checkpoints, an infodb display of the mode field of the Journal Checkpoint History and Dump Checkpoint History will indicate TABLE.

By default, the ckpdb command sequentially checkpoints data locations one at a time. A database with more than one data location can be checkpointed in parallel.

The ckpdb command has the following format:

ckpdb dbname[/server_class] [-d] [+j|-j] [-l] [#m[n]] [-mdevice {, device}]
[-table=tablename {, tablename}] [-v] [+w|-w] [-uusername] [-help]

Previous Topic

Next Topic

ckpdb Examples

This command checkpoints and initiates journaling on the empdata database:

ckpdb +j empdata;

This command checkpoints the tables employee and dept:

ckpdb empdata –table=employee,dept

This command checkpoints the empdata database and retains only the newest checkpoint:

ckpdb empdata –d;

This command checkpoints the empdata database to tape:

UNIX:

ckpdb –m/dev/rmt0 empdata

VMS:

ckpdb –mMTA0: empdata


© 2007 Ingres Corporation. All rights reserved.