Enable Security_Audit Syntax
The ENABLE SECURITY_AUDIT statement has the following format:
[EXEC SQL] ENABLE SECURITY_AUDIT audit_type | ALL;
Specifies the type of information to log, as follows:
Logs all security events generated by create security_alarm statements issued on tables.
Logs the client information string for connecting and disconnecting from the DBMS Server. Example string: user='ingres',host='myhostname',tty='2',pid=25108.
Logs all types of access by all users to all database objects, including use of the ckpdb, rollforwarddb, and auditdb utilities.
Logs all CREATE DBEVENT, RAISE DBEVENT, REGISTER DBEVENT, REMOVE DBEVENT, and DROP DBEVENT statements.
Logs all access to location objects (CREATE LOCATION, ALTER LOCATION, and DROP LOCATION statements) by all users.
Logs all access to database procedures (CREATE PROCEDURE and DROP PROCEDURE statements and procedure execution) by all users.
Logs all types of access by all users to all the detail information for querytext events.
Logs all types of access by all users to violations of resource limits.
Logs role events (SET ROLE -r statement)
Logs all types of access by all users to all row-level events.
Logs rule events (CREATE RULE, DROP RULE, and firing of rules)
Logs all types of access by all users to all security-related objects.
Logs all types of access by all users to all tables.
Logs all changes to user and group information, including runtime verification of user and group names.
Logs all types of access by all users to all views.
Logs all types of security events.
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.