Chapter 15: Managing Free Space with Thresholds  Crossing the threshold

Chapter 15: Managing Free Space with Thresholds

Monitoring free space with the last-chance threshold

All databases have a last-chance threshold, including master. The threshold is an estimate of the number of free log pages that are required to back up the transaction log. As you allocate more space to the log segment, Adaptive Server automatically adjusts the last-chance threshold.

When the amount of free space in the log segment falls below the last-chance threshold, Adaptive Server automatically executes a special stored procedure called sp_thresholdaction. (You can specify a different last-chance threshold procedure with sp_modifythreshold.)

Figure 15-1 illustrates a log segment with a last-chance threshold. The shaded area represents log space that has already been used; the unshaded area represents free log space. The last-chance threshold has not yet been crossed.

Figure 15-1: Log segment with a last-chance threshold

Graphic showing the layout of the log segment and the placement of the last-chance threshold in the middle of the free space.



Copyright © 2005. Sybase Inc. All rights reserved. Crossing the threshold

View this book as PDF