-
Introduction to Oracle Partitioning
https://www.qycn.com/xzx/article/4944.html
, this link has a very detailed introduction to partitions.
2. After partitioning, there are problems when data is inserted into the table.
① Updating the partition key column will result in a partition change
②The updated partition key is outside the highest legal partition key
3. Partition error analysis
① For 更新分区关键字列将导致分区的更改
understanding, this piece of data was originally in the A area of the table, but after changing the data, it went to the B area of the table, resulting in one less data in A area and one more data in B area, which led to the change of partition .
solution:alter table T_CC_MIZED_VISIT_TASK enable row movement;
② For 更新的分区关键字在最高合法分区关键字之外
understanding, the created partition has a range, and the changed data (increase, change) exceeds the range of the partition.
solution:ALTER TABLE T_CC_POLICY_TASK ADD PARTITION PART_MONTH_20231212 VALUES LESS THAN (TO_DATE('2023-12-12','YYYY-MM-DD'));
注意!!!
②The solution is not necessarily correct. It has to be judged according to how the actual Oracle database table is partitioned. There are different solutions according to different partition creation methods.