Define DB2 LUW Global Temporary Table
Use the DB2 for LUW Table Editor to create a global temporary table, or work with the properties of an existing DB2 LUW global temporary table.
To define a DB2 LUW global temporary table
- Right-click a Table in the Model Explorer and select Properties.
The DB2 for LUW Table Editor opens.
- Select a table and work with the following options:
Note: Click New
on the toolbar to create a table. Use the Enter filter text text box to filter a large list of names to locate the one you want to work with.
- Physical Name
Specifies the physical name for the table.
- Schema
Specifies the schema associated with the selected table. Create or select a schema from the drop-down list.
- DB2/LUW Type
Specifies the table type. Select Global Temporary from the drop-down list. The Organize By, Partitions, Table Options, Validation, and Volumetrics tabs are disabled based on this value.
- Use Replace Syntax
Specifies whether or not to use the CREATE or REPLACE command instead of the CREATE command during Forward Engineering.
Note: This field applies to DB2 for LUW version 9.7 only.
- Physical Only
In a Logical/Physical model, specifies that the table does not appear on the logical side as an entity.
- Generate
Specifies whether or not to generate DDL for this object during Forward Engineering.
- Click the Dimensional tab and work with the following options:
- Dimensional Notation Rule Type
Specifies the role assigned to the table for dimensional modeling. Select from the drop-down list; valid values are Fact, Dimension, and Outrigger.
- Dimensional Notation Update Type
Specifies the type of update you want to use to update dimensional notations. Select from the drop-down list; valid values are Fixed, Type 1, Type 2, and Type 3.
- Click the Data Movement Rule tab and work with the following options:
- Refresh Rule
- Append Rule
- Backup Rule
- Recovery Rule
- Archive Rule
- Purge Rule
- Click the General tab and work with the following options:
- Commit Type
Specifies the action that you want to take on a global temporary table when a COMMIT operation is performed. Select from the drop-down list; valid values are Delete Rows and Preserve Rows.
- Is Logging Enabled
Specifies whether or not you want to log the operations performed on a global temporary table.
- Rollback Type
Specifies the action that you want to take when a ROLLBACK operation is performed on a global temporary table that is not logged. Select from the drop-down list; valid values are Delete Rows and Preserve Rows.
- Click the Tablespace tab and work with the following options:
- Name
Specifies the tablespace name where the global temporary table will be instantiated.
- Click the Distribution tab and work with the following options:
- Distribute By
Specifies the default distribution method across database partitions.
- Distribution Key Columns
Specifies the columns on which you want to use hash as the default distribution method.
- Click the Alias tab and work with the following options:
- Name
Specifies the alias for the global temporary table.
- Schema
Specifies the schema for the alias. Create or select from the drop-down list.
- Work with the other tabs in the editor to access additional design features, for example:
- Associate permissions with the selected table on the Permission tab.
- Specify a theme for the table on the Style tab.
- Select an icon for the current table on the Icon tab.
- Change the object creation order on the Object Creation Order tab.
- (Optional) Click the Comment tab and enter any comments that you want to associate with the object.
- (Optional) Click the Where Used tab to view where the object is used within the model.
- (Optional) Click the UDP tab to work with user-defined properties for the object.
- (Optional) Click the History tab to view the history information for the object.
- (Optional) Click the Notes tab to view and edit user notes.
- Click Close.
The DB2 for LUW Table Editor closes.
Copyright © 2019 erwin, Inc.
All rights reserved.
|
|