SYSAUDITPOLICIES catalog table
The SYSAUDITPOLICIES table contains one row for each audit policy. The schema is SYSIBM.
A user with SECADM authority has the privilege to select from, insert, update, or delete from the SYSAUDITPOLICIES catalog table. A user with SQLADM, system DBADM, DATAACCESS, ACCESSCTRL, SYSCTRL or SYSADM authority has the privilege to select from this catalog table.
If a view is created on this catalog table, the DATAACCESS authority can perform insert, update, and delete on the view to indirectly insert, update, and delete on the catalog table.
FL 505 SYSIBM.SYSAUDITPOLICIES has an associated history table, SYSIBM.SYSAUDITPOLICIES_H, which provides temporal versioning of the catalog table. Both tables contain the same columns, with the same data types. The temporal relationship must be enabled before the history table can be used. Rows in the history table can be deleted by using the REORG TABLESPACE DISCARD option. For information about enabling the temporal relationship, see Temporal versioning for Db2 security-related catalog tables.
Column name | Data type | Description | Use |
---|---|---|---|
AUDITPOLICYNAME | VARCHAR(128)
NOT NULL |
Name of the audit policy. The name must be an identifier of 1 to 128 characters and must begin with a letter. Any other values result in an error being returned when audit policy is started. | G |
OBJECTSCHEMA | VARCHAR(128)
NOT NULL WITH DEFAULT |
Schema of the audited object. The object schema only applies to categories, OBJMAINT and EXECUTE. | G |
OBJECTNAME | VARCHAR(128)
NOT NULL WITH DEFAULT |
Name of the object. The object name only applies to categories, OBJMAINT and EXECUTE. Object name can be specified using an SQL LIKE predicate. If the object name is specified using an SQL LIKE predicate, it has to be specified as a delimited identifier. The escape character to be used for the SQL LIKE predicate is obtained from RGFESCP subsystem parameter. If not specified, the default escape character is '+'. | G |
OBJECTTYPE | CHAR(1)
NOT NULL WITH DEFAULT |
Type of the object.
The object type only applies to categories, OBJMAINT and EXECUTE |
G |
CREATEDTS | TIMESTAMP
NOT NULL WITH DEFAULT |
The time when the row was inserted. | G |
ALTEREDTS | TIMESTAMP
NOT NULL WITH DEFAULT |
The time when the row was last updated. | G |
CHECKING | CHAR(1)
NOT NULL WITH DEFAULT |
Indicates if authorization and authentication failures
are audited:
|
G |
VALIDATE | CHAR(1)
NOT NULL WITH DEFAULT |
Indicates if auditing is enabled for when a trusted
connection is established or used by a different user:
|
G |
OBJMAINT | CHAR(1)
NOT NULL WITH DEFAULT |
Indicates if auditing is enabled for when the table
that is identified by OBJECTSCHEMA, OBJECTNAME, and OBJECTTYPE columns
is altered or dropped:
|
G |
EXECUTE | CHAR(1)
NOT NULL WITH DEFAULT |
Indicates the type of auditing that is performed. Auditing is done for every unique operation on a table by an SQL statement with a unique statement ID. The table on which the SQL statement operates is identified by the OBJECTSCHEMA, OBJECTNAME, and OBJECTTYPE columns.
|
G |
CONTEXT | CHAR(1)
NOT NULL WITH DEFAULT |
Indicates if auditing is enabled for the start
of a utility, a change to a utility object or phase, and the end of
utility:
|
G |
SECMAINT | CHAR(1)
NOT NULL WITH DEFAULT |
Indicates if auditing is enabled for when a grant
or revoke is made or a trusted context is created or altered:
|
G |
SYSADMIN | VARCHAR(128)
NOT NULL WITH DEFAULT |
Indicates if auditing is enabled for when an operation
is performed using an administrative authority to perform system administration
tasks:
|
G |
DBADMIN | VARCHAR(128)
NOT NULL WITH DEFAULT |
Indicates if auditing is enabled for when an operation
is performed using an administrative authority to perform database
administration tasks:
|
G |
DBNAME | VARCHAR(24)
NOT NULL WITH DEFAULT |
Database name. The database name can be used to specify the database for auditing DBADM, DBCTRL, and DBMAINT authorities. If the database name is not specified, then all the databases, including implicit databases are audited. If the database name is specified, it only applies to DBADM, DBCTRL, and DBMAINT authorities in category, DBADMIN. | G |
COLLID | VARCHAR(128)
NOT NULL WITH DEFAULT |
Name of the package collection. The package collection can be used to specify the collection name for auditing PACKADM authority. If specified, all packages in that collection are audited. If the collection name is not specified, packages in all collections are audited. If the package collection is specified, it only applies to PACKADM authority in category, DBADMIN. | G |
DB2START | CHAR(1)
NOT NULL WITH DEFAULT |
Indicates if audit policies are to be started automatically during Db2 start up. Up to 8 audit policies can be specified.
|
G |
IBMREQD | CHAR(1)
NOT NULL |
A value of Y indicates that the row was provided with the Db2 product code. For all other values, see Release dependency indicators. The value in this field is not a reliable indicator of release dependencies. |
G |
SYS_START | TIMESTAMP(12)
NOT NULL GENERATED ALWAYS AS ROW BEGIN |
FL 505 ![]() ![]() |
G |
SYS_END | TIMESTAMP(12)
NOT NULL GENERATED ALWAYS AS ROW END |
FL 505 ![]() ![]() |
G |
TRANS_START | TIMESTAMP(12)
NOT NULL GENERATED ALWAYS AS TRANSACTION START ID |
FL 505 ![]() ![]() |
G |
![]() ![]() |
![]() VARCHAR(128)
GENERATED ALWAYS AS (SESSION_USER) ![]() |
![]() ![]() |
![]() ![]() |