Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - Database Administration » The Database Server » The SQL Anywhere database server » Database options

-ek database option Next Page

-m database option


Deletes the contents of the transaction log when a checkpoint is done. The -m database option must be specified after the database-file, and applies only to that database.

Syntax

{ dbsrv10 | dbeng10 } [ server-options ] database-file -m ...

Applies to

All operating systems and servers.

Remarks

Deletes the contents of the transaction log when a checkpoint is done, either at shutdown or as a result of a checkpoint scheduled by the server. This provides a way to automatically limit the growth of the transaction log. Checkpoint frequency is still controlled by the checkpoint_time and recovery_time options (or -gc and -gr database server command line options).

The -m option is useful where high volume transactions requiring fast response times are being processed, and the contents of the transaction log aren't being relied upon for recovery or replication. When this option is selected, there is no protection against media failure on the device that contains the database files.

To avoid database file fragmentation, it is recommended that where this option is used, the transaction log be placed on a separate device or partition from the database itself.

This option is the same as the -m server option, but applies only to the current database or the database identified by the database-file variable.

Replicated databases

Do not use the -m option with databases that are being replicated. Replication inherently relies on transaction log information.

Example

The following example starts a database server named silver and loads the database salesdata.db. When a checkpoint is done, the transaction log contents are deleted.

dbsrv10 -n silver "c:\inventory details\salesdata.db" -m