Nonstop Database, HiRDB Version 9 System Operation Guide
To change the partitioning storage conditions, specify CHANGE RDAREA in the ALTER TABLE statement. Splitting and combining cannot be executed at the same time. To execute both splitting and combining, use two separate ALTER TABLE statements.
The following shows an example of partitioning storage conditions before combining or splitting:
CREATE FIX TABLE "T1"("C1" CHAR(10),"C2"... IN(("TA1")"C1"='Berkeley branch',("TA2")"C1"='Oakland branch',("TA3")"C1"='Sausalito branch', ("TA4")"C1"=('San Francisco branch','San Jose branch'),("TA5")) CREATE INDEX "I1" ON "T1"("C1") IN(("IA1"),("IA2"),("IA3"),("IA4"),("IA5")) |
The following example combines data from the Berkeley and Oakland branches into the same RDAREA:
ALTER TABLE "T1" CHANGE RDAREA PARTITIONED CONDITION (("TA1"),("TA2")) INTO ("TA1") FOR INDEX "I1" INTO "IA1" |
The following example splits the data for the San Francisco and San Jose branches into separate RDAREAs:
ALTER TABLE "T1" CHANGE RDAREA PARTITIONED CONDITION (("TA4")) INTO (("TA4")"C1"=('San Francisco branch'),("TA6")"C1"=('San Jose branch')) FOR INDEX "I1" INTO (("IA4"),("IA6")) |
All Rights Reserved. Copyright (C) 2011, 2015, Hitachi, Ltd.