Define a Db2 z/OS Table
Use the Db2 z/OS Table editor to create a table, or work with table properties for an existing Db2 z/OS table.
To define a Db2/zOS Table
- Right-click a Table in the Model Explorer and select Properties.
The Db2 z/OS 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 very large list of tables to locate the one you want to work with.
- Physical Name
Specifies the physical name of the table.
- Schema
Specifies the schema to associate with the table. Select a schema from the drop-down list.
- Db2 z/OS Type
Specifies the table type. Select a value from the drop-down list; valid values are Permanent, Global Temporary, and History.
- Physical Only
In a Logical/Physical model, specifies that the table does not appear on the logical side of the model.
- Generate
Generates DDL for this object during Forward Engineering.
- Work with the following fields on the General tab:
- Physical Name
Specifies the physical name of the table.
- In Tablespace
Specifies the tablespace the table is associated with. Select a tablespace from the drop-down list.
- In Database
Specifies the database the table is associated with. Select a database from the drop-down list.
- Edit Procedure
Specifies the edit routine for the selected table. Enter a value in the field.
- With Row Attributes
Specifies that the edit procedure parameter list contains an address for the description of a row.
- Validation Procedure
Specifies the validation exit routine for the table. Enter a value in the field.
- Object Id
Specifies the OBID (identifier for an object's internal descriptor) to use for the selected table. Enter a value in the field.
- Data Capture
Specifies whether action logging is augmented.
- CCSId
Specifies the encoding scheme for string data stored in the table. Valid Values: ASCII, EBCDIC, UNICODE.
- Has Volatile Cardinality
Specifies that index access should be used on this table wherever possible for SQL operations. Clear the check box to specify NOT VOLATILE.
- Audit Access Type
Identifies the types of access to the selected table that causes auditing to be performed. Valid Values: None, Changes, All.
- Has Restriction on Drop
Indicates that the selected table has the restriction on drop. Clear the check box to remove the restriction on dropping the table, and the database and table space that contain the table.
- Is Appendable
Specifies that append processing is used for the selected table. Clear the check box to indicate APPEND NO.
- Label
Specifies the description of the table.
- Suppress Logging
Specifies whether changes to the table should be logged.
- Is Compressed
Specifies whether data compression should be applied to the rows of the table.
- Data Set Size
Specifies the maximum size for the created partition-by-growth or partition-by-range table space.
- Use Bufferpool
Specifies the buffer pool to be used for the created table space and determines the page size of the table space.
- Member Cluster
Specifies whether data that is inserted by an insert operation is clustered.
- Track Modified Pages
Specifies whether modified pages in the space map pages of the table space should be tracked.
- Page Number
Specifies the type of page numbering that is used while creating a partition-by-range table space.
- Clone Table
Specifies a clone table of the current (base) table.
- Work with the following fields on the Organize By tab:
- Organize By
Specifies the method to be used for data organization of the table. The other fields on the tab are enabled based on the method that you select.
- Organization Key Columns
This property is enabled only on selection of Hash as the organization method. It specifies the list of columns defines the hash key that is used to determine where a row will be placed.
- Hash Size
Specifies the amount of fixed hash space to preallocate for the table.
- Data Unit
Specifies that data unit to be used for the specified hash size.
- K: Multiplies hash size by 1024 to specify the it in bytes.
- M: Multiplies hash size by 1,048,576 to specify it in bytes.
- G: Multiplies hash size by 1,073,741,824 to specify it in bytes.
- Work with the following fields on the Period Clause tab:
- Period System Time
Defines a period for the table with the name SYSTEM_TIME. Period System Time datatype needs a pair of NOT NULL TIMESTAMP columns (one defined as Row Begin, one defined as Row End) and one defined as transaction start ID.
- ST Begin Column
Specifies the period start column. This column must be defined as AS ROW BEGIN in the column properties.
- ST End Column
Specifies the period end column. This column must be defined as AS ROW END in the column properties.
- Period Business Time
Defines an application period with the name BUSINESS_TIME.
- BT Begin Column
Identifies the column that records the beginning of the period of time in which a row is valid. The column must not be defined with a GENERATED clause.
- BT End Column
Identifies the column that records the end of the period of time in which a row is valid. The column must not be defined with a GENERATED clause.
- End Column Clause
Specifies whether the end column is included in the period.
- Inclusive: Specifies that the value of the end column is included in the period.
- Exclusive: Specifies that the value of the end column is not included in the period.
- History Table
Specifies or lets you create a history table and is enabled only when you set Period System Time. A history table is associated with a system-period temporal table and is used to store the historical versions of the rows from the associated system-period temporal table.
For example, consider the following scenario:
- A table, E1 has a Period System Time set.
- A table, E2 is created as a history table and is set as E1's history table.
Then, E2 stores a replica of E1 along with its versions. Therefore, a dependency is created between tables E1 and E2.
- Work with the following fields on the Partitions tab:
- Properties:
- Partition Type
Specifies the partition type for the selected table or index. Select Range or Size from the drop-down menu.
- Partition Elements:
- Name
Specifies the partition name.
- Partition Number
Displays a read-only integer designating the partition number.
- Partition Columns:
- Column
Specifies the columns to determine key data over which the range is defined to determine the target data partition of the data.
- Nulls Last
Specifies that null values are treated as positive infinity during comparison.
- Sort Order
Specifies the order in which the data in the selected columns are sorted. Select from the drop-down list; valid values are Ascending and Descending.
Default: Ascending
- Work with the other tabs in the editor to access additional design features, for example:
- Specify volumetrics options on the Volumetricstab.
- Preview the forward engineering script for a table in the SQL tab.
- Define constraints for a selected table on the Validationtab.
- Define alias and synonym names on the Alias & Synonym tab. You can open the Synonym editor from an icon on this tab if none yet exist.
- Associate permissions with the selected table on the Permission tab.
- Change the object creation order on the Object Creation Order tab.
- Specify the styles for the entity on the Style Tab
- Specify the icon to use for the entity on the Icon 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.
- (Optional) Click the Extended Notes tab to view or edit user notes.
- Click Close.
The Table Editor closes.
Copyright © 2020 erwin, Inc.
All rights reserved.
|
|