DBZ-4746 Support CHECK shrink-clause option

This commit is contained in:
Chris Cranford 2022-02-15 08:56:21 -05:00 committed by Gunnar Morling
parent 6cf95b7597
commit f69b1811b4
2 changed files with 6 additions and 2 deletions

View File

@ -2225,7 +2225,9 @@ deallocate_unused_clause
;
shrink_clause
: SHRINK SPACE_KEYWORD COMPACT? CASCADE?
// CHECK is an internal Oracle option
// It is used to check for proper segment type and segment attributes to allow shrink
: SHRINK SPACE_KEYWORD (COMPACT|CASCADE|CHECK)?
;
records_per_block_clause

View File

@ -38,4 +38,6 @@ ALTER TABLE SYSTEM.LOGMNR_KOPM$ MODIFY PARTITION P137 REBUILD UNUSABLE LOCAL IND
ALTER TABLE TABLE_DATA_CHANGE_LOG MODIFY PARTITION PART_LOAN_CARDS_DEMAND_DEPOSITION ADD SUBPARTITION SUBPART_LOAN_CARDS_DEMAND_DEPOSITION_20220301 VALUES LESS THAN (30);
ALTER TABLE B.EXCHANGE_LOG DROP PARTITION FOR (TIMESTAMP '2022-01-28 00:00:00') UPDATE GLOBAL INDEXES ;
-- Virtual column support
ALTER TABLE VIDEO ADD (sql_code_injection_check NUMBER GENERATED ALWAYS AS (sdd_avoid_sql_injection(SKRIPT)) VIRTUAL);
ALTER TABLE VIDEO ADD (sql_code_injection_check NUMBER GENERATED ALWAYS AS (sdd_avoid_sql_injection(SKRIPT)) VIRTUAL);
-- Shrink Space
ALTER TABLE "ODS_XMES_QY"."ORDER_ITEM" shrink space CHECK;