Previous Topic

Next Topic

With_Clause for Create Table

The CREATE TABLE statement accepts the following with_clause options:

Previous Topic

Next Topic

Page_size Option

The PAGE_SIZE option on the WITH clause in the CREATE TABLE statement creates a table with a specific page size. This option has the following format:

PAGE_SIZE = n

where n is the number of bytes.

Valid values are shown in the Number of Bytes column in the following table:

Page Size

Number of Bytes

Page Header

2K

2,048

40

4K

4,096

76

8K

8,192

76

16K

16,384

76

32K

32,768

76

64K

65,536

76

Previous Topic

Next Topic

Security_audit Option

The SECURITY_AUDIT option on the WITH clause specifies row- or table-level auditing.

This option has the following format:

SECURITY_AUDIT = (audit_opt {, audit_opt})

Note: Either TABLE and ROW or TABLE and NOROW auditing can be specified. If NOROW is specified, row-level auditing is not performed. If either clause is omitted, the default installation row auditing is used. The default can be either ROW or NOROW depending on how your installation is configured.

WITH SECURITY_AUDIT_KEY Clause

The WITH SECURITY_AUDIT_KEY clause allows the user to specify an optional attribute to be written to the audit log to assist row or table auditing. For example, an employee number can be used as the security audit key:

create table employee (name char(60), emp_no integer)
with security_audit = (table, row),
        security_audit_key = (emp_no);

If no user-specified attribute is given and the table has row-level auditing, a new hidden attribute, _ii_sec_tabkey of type table_key system_maintained is created for the table to be used as the row audit key. Although any user attribute can be used for the security audit key (security_audit_key clause), we recommend that a short, distinctive value be used (such as a social security ID), allowing the user to uniquely identify the row when reviewing the security audit log. If an attribute longer than 256 bytes is specified for the security audit key, only the first 256 bytes are written to the security audit log.


© 2007 Ingres Corporation. All rights reserved.