Nonstop Database, HiRDB Version 9 System Operation Guide
Key range partitioning is the prerequisite for this method. The following table shows whether partitioning storage conditions can be changed for each table partitioning method.
Table 13-3 Table partitioning methods for which partitioning storage conditions can be changed
Table partitioning method | Applicability | ||
---|---|---|---|
Key range partitioning | Storage condition specification | Only = is used as the comparison operator for storage conditions | Y |
A condition other than = is used as the comparison operator for storage conditions | N | ||
Boundary values specification | Y | ||
Hash partitioning (including rebalancing) | FIX hash not specified | N#1 | |
FIX hash specified | |||
Matrix partitioning | Combination of key range partitioning with boundary value specification | Y#2 | |
Combination of key range partitioning with boundary value specification and hash partitioning | Y#3 |
Partitioning storage conditions cannot be changed for the following types of tables:
To change partitioning storage conditions, you need HiRDB Advanced High Availability. If you attempt to change the partitioning storage conditions (CHANGE RDAREA of ALTER TABLE) and this product has not been set up, the KFPA11948-E message will be displayed and ALTER TABLE will terminate with an error.
If an index has been defined for a table whose partitioning storage conditions are to be changed, it might not be possible to change the partitioning storage conditions depending on the index definition conditions. The following table shows whether the partitioning storage conditions can be changed for each type of index.
Table 13-4 Index types for which partitioning storage conditions can be changed
Index type | Partitioned/Non-partitioned index | Applicability |
---|---|---|
Cluster key index | Partitioned key index | Y#1 |
Primary key index (including an index for which a primary key and cluster key are defined) |
||
B-tree index | Partitioned key index | Y#1 |
Non-partitioned key index | Y#1, #2 | |
Plug-in index | Not applicable | N |
Table 13-5 Whether the partitioning storage conditions can be changed depending on the partitioning conditions for the index storage RDAREAs
Partitioning conditions for the index storage RDAREAs | Whether the partitioning storage conditions can be changed | |||
---|---|---|---|---|
Split | Combine | |||
Partitioning key index | Index storage RDAREAs are partitioned. | Y | Y#1 | |
Index storage RDAREAs are not partitioned. | N#2 | N#3 | ||
Non-partitioning key index | Partitioning is performed in such a manner that the table storage RDAREAs and index storage RDAREAs have a 1-to-1 correspondence. | Index storage RDAREAs are partitioned. | Y | Y#1 |
Index storage RDAREAs are not partitioned. | N#2 | N#3 | ||
Other | N | N |
If the partitioning storage conditions cannot be changed due to the relationship between index storage RDAREAs and table storage RDAREAs, delete the applicable index first, execute ALTER TABLE, and then re-define the index.
Figure 13-19 Case in which a table storage RDAREA cannot be split (part 1) and Figure 13-20 Case in which a table storage RDAREA cannot be split (part 2) show cases in which a table storage RDAREA cannot be split.
Figure 13-19 Case in which a table storage RDAREA cannot be split (part 1)
Figure 13-20 Case in which a table storage RDAREA cannot be split (part 2)
Table 13-6 Applicability of changing partitioning storage conditions for a non-partitioning key index
Table RDAREAs | Index RDAREAs | ||
---|---|---|---|
Row partitioning between servers | Row partitioning within servers | Row partitioning between servers | No row partitioning between servers |
Yes | Yes | Y | N |
No | -- | Y# | |
No | Yes | Y | N |
No | -- | -- |
If RDAREAs storing LOB and indexes are defined for a table whose partitioning storage conditions are to be changed, these RDAREAs must also be partitioned or combined along with the table in the same manner.
RDAREAs after the change cannot be used for the following purposes:
All Rights Reserved. Copyright (C) 2011, 2015, Hitachi, Ltd.