To save index space and to improve INSERT and query performance, you can redefine an
index so that it no longer contains null keys.
About this task
In this example, the index IXFGR2 was originally created with null keys.
Procedure
-
On the DB2 Administration Menu (ADB2)
panel, select option
1, and press Enter.
-
On the System Catalog (ADB21)
panel, select option
X, and press Enter.
-
On the Indexes (ADBADB25C21X)
panel, issue the ALT line
command next to the index that you want to redefine.
-
On the Redefine Index (ADB21XAR)
panel, type
YES in the Exclude Null Keys field and
press Enter:
-
Issue the NEXT primary command, and press Enter.
-
On the Redefine Index - Space (ADB21XAS
) panel, issue
NEXT again, and press Enter.
-
On the Alter Objects (ADB27CA)
panel, issue the
ALTOPT command, and press Enter:
-
On the ALTER Options Menu (ADBP7OP)
panel, select option
1, and press Enter.
-
On the ALTER Analysis Options
(ADBP7P) panel, type
YES in the Perform analysis in batch
field.
-
Exit back to the Alter Objects (ADB27CA)
panel.
-
Generate an ALT job.