Monitor the log size

When the transaction log becomes nearly full, it may be impossible to use standard procedures to dump transactions and reclaim space. The system administrator should monitor the log size and perform regular transaction log dumps (in addition to regular database dumps) to avoid this situation. Set up a threshold stored procedure that notifies you (or dumps the log) when the log reaches a certain capacity. See Chapter 16, “Managing Free Space with Thresholds,” in System Administration Guide: Volume 2. Sybase also suggests that, to shorten the time required to dump and load the database, dump the transaction log immediately prior to performing a full database dump.

You can also monitor the space used in the log segment manually using sp_helpsegment, as described under Chapter 8, “Creating and Using Segments in System Administration Guide: Volume 2.