If your database is involved in synchronization or replication, rename the transaction log to create a new transaction log for the database. If your database is not involved in replication and you have limited disk space on your computer, truncate the transaction log.
Prerequisites
You must have BACKUP DATABASE system privilege.
Context and remarks
If your database is involved in synchronization or replication, it is good practice to maintain copies of old transaction logs until you are certain they are no longer needed. Alternatively to renaming the transaction log, you can continue to use the existing transaction log when you back up your database.
If you truncate the transaction log during backup to delete the contents of the online transaction log, to recover your database from media failure on the database file you must use every backup copy made since the last full backup.
Run the following command:
Option | Action | ||
---|---|---|---|
Rename the transaction log |
|
||
Truncate the transaction log |
|
Include the -t option only if you are making an incremental backup.
The backup copies of the transaction log and database file are placed in backup-directory. If you specify a path, it is relative to the directory from which you run the command.
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0 |