Creating auxiliary objects for a nonpartitioned table space
Use the following procedure to create auxiliary objects for an existing base table in a nonpartitioned table space.
The CAX action code is used to create the auxiliary table spaces, tables, and indexes that are required for a base table that contains a LOB column.
In this procedure, you perform the following subtasks:
- Specify a base table.
- Create the auxiliary table space.
- Create the auxiliary table.
- Create the auxiliary index.
- Review the list of auxiliary objects.
- (Optional) Undo changes to the auxiliary objects.
To specify a base table
- On the BMC AMI Change Manager for Db2 Main Menu, select WORKID, and press Enter.
- On the WORKID Action Menu, type the name of the WORKID or type a wildcard pattern to display a list of work IDs. Then, select Specify Db2 definitions and press Enter.
- On the Object Specification panel, specify the name of a nonpartitioned table space (or use wildcard characters). Then, press Enter.
- On the Mixed List panel, type CO in the Act column adjacent to the base table (TBB) that contains a LOB column.
- On the Table Columns List panel, type CAX in the Act column adjacent to the LOB column name and press Enter.
To create the auxiliary table space
On the Create Auxiliary Tablespace panel, specify the attributes for the table space.
- Specify the name of the table space.
- Specify the owner of the table space.
- Specify the attributes for the table space. To specify additional attributes, type S to select More Tablespace Attributes.
- Specify whether the parent database already exists in the Db2 catalog.
- Press END.The auxiliary table space is saved in the CD tables.
To create the auxiliary table
On the Create Auxiliary Table panel, specify the attributes for the table.
- Specify the owner of the table.
- Specify the name of the table.
- Specify the name of the table space.
- Specify a label for the table.
- Specify the partition number for which you want to create the auxiliary table. For nonpartitioned table spaces, the partition number should be 0 (zero).
- Specify whether the parent table space already exists in the Db2 catalog.
To specify a comment for the table, type S to select Table Comment.
- Press END.The auxiliary table is saved in the CD tables.
To create the auxiliary index
On the Create Auxiliary Index panel, specify the attributes for the index.
- Specify the owner of the index.
- Specify the name of the index.
- Specify the owner of the table.
- Specify the name of the table.
- Specify values for the attributes. To specify additional attributes, type S to select More Attributes.
- Specify whether the parent table already exists in the Db2 catalog.
- To specify a comment for the index, type S to select Comment.
- Press END.
The auxiliary index is saved in the CD tables.
- On the Table Columns List panel, press END.The Mixed List panel is displayed. The *@ marker adjacent to the base table (TBB) object indicates that auxiliary objects were created or modified for the base table.
To review the list of auxiliary objects
On the Mixed List panel, type AX in the Act column adjacent to the base table to review the list of auxiliary objects for the base table.The Auxiliary Objects List is displayed. The new auxiliary table space, table, and index are listed, as shown in the following figure.
ALUSAXL ER --------------------- Auxiliary Objects List ---------------------
Command ===> Scroll. . CSR
WORKID . . . . . RDACRJ.ALT03 Commands: CANCEL
Base Table . . . RDACRJ.T_L12SS
Type action next to object and press Enter.
E=Edit L=Like D=Drop U=Undo
Objects 1 to 3 of 3
More:
Act Object-Type Objects Column Part
************************************ TOP **************************************
L TS . . . . . . CJACML01 ATSL12SS
L TB . . . . . RDACRJ ATL12SS XCLOB 0
L IX . . . . RDACRJ AIL12SS
*********************************** BOTTOM ************************************- Press END until the WORKID Action Menu is displayed.
To undo changes to auxiliary objects
If you wanted to undo the changes to the base table, you must undo the changes to the auxiliary objects.
- In the Mixed List panel, type AX in the Act column adjacent to the modified base table (TBB).
- In the Auxiliary Objects List panel, remove the requested changes to the auxiliary objects.
- To undo changes to all of the objects listed, type UNDOALL on the Command line.
- To undo changes to one or more of the objects listed, type U in the Act column adjacent to the auxiliary objects.
Where to go from here
Now that the auxiliary objects have been created, you can analyze a work ID and execute a worklist.