Previous Topic: Define a DB2 z/OS XML IndexNext Topic: Define a DB2 for z/OS XML Pattern for XML Index


Specify DB2 z/OS Using Clause Parameters for XML Index

You can create an index on an XML column to evaluate Xpath expressions efficiently and to improve performance when XML documents are queried.

To specify DB2 z/OS using clause parameters for an XML Index

  1. Expand a table in the Model Explorer, expand XML Index, right-click an XML Index and then select Properties.

    The DB2 for z/OS XML Index Editor opens.

  2. Select an XML Index and work with the following options:

    Note: Click New New icon in property editors to create a new object on the toolbar to create an XML Index. Use the Enter filter text text box to filter a large list of XML Indexes to locate the one you want to work with.

    Name

    Specifies the name of the XML Index.

    Schema

    Specifies a schema for the selected XML index. Select from the drop-down list.

    Column

    Specifies the column for which the XML index is being created. Select from the drop-down list. For the selected table, only those columns for which you have specified the Physical Data Type as XML appear in the drop-down list.

    Is Unique

    Specifies whether or not the selected XML index is unique.

    Generate

    Specifies whether or not to generate DDL for this object during Forward Engineering.

  3. Work with the following options on the Using Clause tab:
    Volume Catalog

    Specifies the name for a user-managed data set.

    Storage Group

    Specifies the storage group to use. Select a storage group name from the drop-down list.

    Primary Space Allocation

    Specifies the minimum primary space allocation for a DB2-managed data set. Enter an integer in the text box.

    Secondary Space Allocation

    Specifies the minimum secondary space allocation for a DB2 managed data set. Enter an integer in the text box.

    Erase When Deleted

    Specifies that the DB2-managed data set is erased when deleted during the execution of a utility or a SQL statement that drops the index.

    Free Specification

    Work with the following options for free specification:

    Free Page Interval

    Specifies how often to leave a page of free space when index entries are created. Enter an integer in the text box.

    Percent Free

    Specifies the percentage of each index or tablespace to leave as free space. Enter a value in the text box.

    Gbpcache Specification

    Specify the following group bufferpool option:

    Group Bufferpool Type

    Specifies the group bufferpool type. Select a value from the drop-down list; valid values are Changed, All, and None.

  4. Click Close.

    The DB2 for z/OS XML Index Editor closes.