June 2018
Intermediate to advanced
478 pages
10h 52m
English
Attaching a data partition to a base table consists of two steps: attaching the partition to the base table, and then performing the data integrity checks, such as range validation and constraint checking.
You can use the ALTER TABLE ... ATTACH PART statement to attach a data partition to the base table:
alter table STAGING.SALES_ORDER_INCR_STG attach part PART102 starting (102) ending (102) from STAGING.SALES_ORDER_INCR_STG_102;
You can query the system catalog table to identify the tables that are in a SET INTEGRITY pending state, as shown here:
SELECT substr (rtrim (TABSCHEMA) ||'.'||rtrim (TABNAME), 1, 50) FROM SYSCAT.TABLES WHERE STATUS = 'C';
To resolve the SET INTEGRITY pending state on a table, the following ...
Read now
Unlock full access