Setting up threshold procedures  Setting up transaction log management

Chapter 18: Auditing

Setting auditing configuration parameters

Set the following configuration parameters for your auditing installation:


Setting the size of the audit queue

The memory requirement for a single audit record is 424 bytes. The default size for the audit queue is 100 records, which requires approximately 42K.

To set the size of the audit queue, use sp_configure. The syntax is:

sp_configure "audit queue size", [value]

value is the number of records that the audit queue can hold. The minimum value is 1, and the maximum is 65,535. For example, to set the audit queue size to 300, execute:

sp_configure "audit queue size", 300

For more information about setting the audit queue size and other configuration parameters, see Chapter 5, “Setting Configuration Parameters.”


Suspending auditing if devices are full

If you have two or more audit tables, each on a separate device other than the master device, and have a threshold procedure for each audit table segment, the audit devices should never become full. Only if a threshold procedure is not functioning properly would the “full” condition occur. You can use sp_configure to set the suspend audit when device full parameter to determine what happens if the devices do become full. Choose one of these options:

To set this configuration parameter, use sp_configure. You must have the sso_role active. The syntax is:

sp_configure "suspend audit when device full", 
    [0|1]

If you have a threshold procedure attached to the audit table segments, set suspend audit when device full to 1 (on). If it is set to 0 (off), Adaptive Server may truncate the audit table that is full before your threshold procedure has a chance to archive your audit records.





Copyright © 2005. Sybase Inc. All rights reserved. Setting up transaction log management

View this book as PDF