A primary key (PK) and a foreign key (IF) index is automatically created for each table in your model, based on the primary key and foreign key columns. If you designate columns as an alternate key group (AK) or an inversion entry (IE), the equivalent unique (AK) and non-unique (IE) indexes are also generated.
Use the DB2 for LUW Table Index Editor to create alternate key (unique) and inversion entry (non-unique) indexes for tables in your model. After you create an index, you can use the Index editor to modify its properties, such as the index name, column members, physical properties, user-defined properties, and comments.
To define a DB2 LUW Index
The DB2 for LUW Table Index Editor opens.
Note: Click New on the toolbar to create a index. Use the Enter filter text text box to filter a large list of indexes to locate the one you want to work with.
Specifies whether or not to display foreign key indexes in the Index list.
Specifies the name of the index.
Specifies the default schema for the index.
Shows the key group type. This is a read-only field.
Specifies whether or not the columns defined in the index must be unique.
Specifies whether or not the index should be suppressed from a logical model and appear in a physical model only.
Specifies whether or not to generate DDL for this object during Forward Engineering.
Specifies whether or not to generate a constraint based on the information in the selected index during Forward Engineering.
You can sort the columns and open the DB2 for LUW Table Column Editor.
Specifies the constraint associated with the index.
Specifies that the index is the clustering index of the table.
Specifies the tablespace name in which to create the index.
Specifies the percentage of each index page to leave as free space when building the index.
Specifies the percentage of each index level 2 page to leave as free space when building the index.
Specifies whether index leaf pages are merged online, and the threshold for the minimum percentage of space used on an index leaf page.
Specifies that an index can support both forward and reverse scans; that is, scanning of the index in the order that was defined at index creation time, and scanning in the opposite order.
Specifies the index split behavior. Select from the drop-down list. The valid values are symmetric, high, and low.
Specifies that the index statistics have to be collected at the time of creating the index. Select from the drop-down list. The valid values are basic, detailed, and detailed by sampling.
Specifies that the index will use index compression. Select from the drop-down list; valid values are True and False.
Specifies that a partitioned index should be created.
Specifies the name of the index-extension used to manage this index.
Specifies values for any required arguments for the index extension. Each expression must be a constant value with a data type that exactly matches the defined data type of the corresponding index extension parameters, including length or precision, and scale.
The changes are saved and the DB2 for LUW Table Index Editor closes.
Copyright © 2013 CA.
All rights reserved.
|
|