Specify General Physical Properties for a Materialized Query Table

You can use the General tab in the Materialized Query Tables editor to specify the physical properties of materialized query tables. Refer to your Db2 database documentation for detailed information on specific Db2 objects and properties.

To specify general physical properties for a materialized query table

  1. Click Materialized Query Tables on the Model menu in a physical model based on Db2 UDB.

    The Materialized Query Table editor opens.

  2. Select a materialized query to work with, then click the General tab. You can specify the following options:
    Value Compression

    Specifies to activate or deactivate the compression of NULL and zero-length data values in the table for all datatypes of BLOB, CLOB, DBLOB, LONG VARCHAR, or LONG VARGRAPHIC.

    Compress Yes
    Specifies whether data compression is applicable to materialized query table rows. Select from the drop-down list; valid values are Adaptive and Static.
    Is Table Row Compressed

    Specifies whether or not the table row is compressed. Select true or false from the drop-down menu.

    Data Capture

    Specifies whether action logging is augmented. Valid values: None, Changes, Changes (including long vars).

    Has Restriction On Drop

    Indicates that the selected materialized query table has the restriction on drop. Clear the check box to remove the restriction on dropping the table, and the database and table space that contain the table.

    Is Logging Index Builds

    Specifies whether or not logging is to be performed while creating, recreating, or reorganizing indexes on this table.

    Not Logged Initially

    Specifies to avoid logging any insert, update, and delete activity.

    Lock Type

    Specifies the lock type. Select a value from the drop-down menu: Row, Table, or Block Insert.

    Coded Character Set Identifier (CCSID)

    Specifies the encoding scheme for string data stored in the table. Valid Values: ASCII, UNICODE.

    Security Policy

    Indicates the security policy to associate with the materialized query table. Select a security policy from the drop-down list.

    Has Volatile Cardinality

    Specifies that index access should be used on this table wherever possible for SQL operations. Clear the check box to specify NOT VOLATILE.

    Is Appendable

    Specifies that append processing is used for the selected table. Clear the check box to indicate APPEND NO.

    Audit Policy

    Specifies the audit policy for the selected table. Create or select from the drop-down list.

    Percent Free

    Indicates what percentage of each page to leave as free space when the table is loaded or reorganized. Enter an integer in the text box.

    Row Access Control

    Specifies whether row-level access control is activated on the table.

    Column Access Control

    Specifies whether column-level access control is activated on the table.

  3. Work with other tabs in the editor, then click Close.

    Your changes are saved and the Materialized Query Tables dialog closes.