Previous Topic

Next Topic

Enable Security_Audit

Valid in: SQL, ESQL

The Enable Security_Audit statement enables the security administrator to turn on security logging for the specified type of security event.

This statement cannot be issued from within a multi-statement transaction.

Previous Topic

Next Topic

Syntax

The Enable Security_Audit statement has the following format:

[EXEC SQL] RESTRICTIONS:ENABLE SECURITY_AUDIT audit_type | ALL;

For users that are assigned the AUDIT_ALL privilege (using the CREATE USER or GRANT statement), all security events are logged, regardless of the types of security logging enabled using the ENABLE SECURITY_AUDIT statement.

Previous Topic

Next Topic

Embedded Usage

You cannot use host language variables in an embedded Enable Security_Audit statement.

Previous Topic

Next Topic

Permissions

You must have the maintain_audit privilege and be working in a session that is connected to the iidbdb.

Previous Topic

Next Topic

Locking

The Enable Security_Audit statement locks pages in the iisecuritystate system catalog.

Previous Topic

Next Topic

Related Statements

Drop Security_Alarm

Disable Security_Audit

Create Security_Alarm

Previous Topic

Next Topic

Example: Enable Security_Audit

The following example turns on all forms of auditing:

enable security_audit all;


© 2007 Ingres Corporation. All rights reserved.