12.4.4 Changing audit target definitions
The following describes how to change an audit target definition (that is, how to define an audit target or delete an audit target definition).
- Important
-
-
Only an HADB user with audit admin privilege can change an audit target definition.
-
You can only change an audit target definition when the audit trail facility is enabled.
-
- ■ Defining audit targets
-
To define an audit target, you execute the CREATE AUDIT statement. The following shows an example of defining an audit target:
- Example:
-
This example defines an audit target so that audit trails are also output for optional audit events.
CREATE AUDIT AUDITTYPE EVENT FOR ANY OPERATION
Note that you cannot define the same audit target more than once.
- ■ Deleting audit target definitions
-
To delete an audit target definition, you execute the DROP AUDIT statement. The following shows an example of deleting an audit target definition:
- Example:
-
This example deletes the audit target definition so that audit trails are no longer output for optional audit events.
DROP AUDIT AUDITTYPE EVENT FOR ANY OPERATION