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.

Note: This topic applies to Db2 for LUW versions 9.5 and 9.7 only.

To define a Db2 LUW audit policy

  1. Right-click an Audit Policy in the Model Explorer and select Properties.

    The Db2 for LUW Audit Policy Editor opens.

  2. Select an audit policy and work with the following options:

    Note: Click New New icon in property editors to create a new object 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.

  3. 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)
  4. (Optional) Click the Commenttab and enter any comments that you want to associate with the object.
  5. (Optional) Click the Where Used tab to view where the object is used within the model.
  6. (Optional) Click the UDPtab to work with user-defined properties for the object.
  7. (Optional) Click the Notestab to view and edit user notes.
  8. (Optional) Click the Extended Notes tab to view or edit user notes.
  9. Click Close.

    The Db2 for LUW Audit Policy Editor closes.

More information:

Add a Comment in a Property Editor

Add a UDP in a Physical Property Editor