Define a Db2 LUW Audit Policy
You can create an audit policy to determine what categories you want to be audited; you can apply the policy to other database objects monitor the use of those objects.
This topic applies to Db2 for LUW versions 9.5 and 9.7 only.
To define a Db2 LUW audit policy
- Right-click an Audit Policy in the Model Explorer and select Properties.
The Db2 for LUW Audit Policy Editor opens.
- Select an audit policy and work with the following options:
Click New
on the toolbar to create an audit policy. Use the Enter filter text text box to filter a large list of names to locate the one you want to work with.
- Name
Specifies the name of the audit policy.
- Error Type
Specifies the error type: Normal or Audit.
Normal - Errors generated by the audit are ignored and only SQLCODEs for the errors are returned.
Audit - All errors are returned.
- Generate
Specifies whether or not to generate DDL for this object during Forward Engineering.
- Specify options for audit policy categories on the General tab.
You can specify a status for each category as follows:
Both - Successful and failed events are audited.
Failure - Only failed events are audited.
None - No events in this category are audited.
Success - Only successful events are audited.
- All Categories Status (ALL)
Sets all categories to the same status.
Other supported categories include:
- Audit Status (AUDIT)
- Checking Status (CHECKING)
- Context Status (CONTEXT)
- Execute Status (EXECUTE)
- Execute With Data [check box]
- Object Maintenance Status (OBJMAINT)
- Security Maintenance Status (SECMAINT)
- System Admin Status (SYSADMIN)
- Validate Status (VALIDATE)
- (Optional) Click the Commenttab and enter any comments that you want to associate with the object.
- (Optional) Click the Where Used tab to view where the object is used within the model.
- (Optional) Click the UDPtab to work with user-defined properties for the object.
- (Optional) Click the Notestab to view and edit user notes.
- (Optional) Click the Extended Notes tab to view or edit user notes.
- Click Close.
The Db2 for LUW Audit Policy Editor closes.
Copyright © 2025 Quest Software, Inc. |