{"id":40418,"date":"2021-10-11T12:02:22","date_gmt":"2021-10-11T04:02:22","guid":{"rendered":"http:\/\/www.idc.net\/help\/40418\/"},"modified":"2021-10-11T12:02:22","modified_gmt":"2021-10-11T04:02:22","slug":"ora-14253-table-is-not-partitioned-by-composite-range-method-oracle-%e6%8a%a5%e9%94%99-%e6%95%85%e9%9a%9c%e4%bf%ae%e5%a4%8d-%e8%bf%9c%e7%a8%8b%e5%a4%84%e7%90%86","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/40418\/","title":{"rendered":"ORA-14253: table is not partitioned by Composite Range method ORACLE \u62a5\u9519 \u6545\u969c\u4fee\u590d \u8fdc\u7a0b\u5904\u7406"},"content":{"rendered":"<h3>\u6587\u6863\u89e3\u91ca<\/h3>\n<p><span>ORA-14253:<\/span> table is not partitioned by Composite Range method<\/p>\n<p><span>Cause:<\/span> The table in a subpartition maintenance operation (ALTER TABLE EXCHANGE\/MODIFY\/MOVE\/TRUNCATE SUBPARTITION, or ALTER TABLE MODIFY PARTITION ADD\/COALESCE SUBPARTITION command must be partitioned by Composite Range method<\/p>\n<p><span>Action:<\/span> Ensure that the table is partitioned by Composite Range method<\/p>\n<\/p>\n<p>\uff0c\u7ed9\u51fa\u793a\u4f8b<\/p>\n<p>ORA-14253\uff1a\u8868\u6ca1\u6709\u4f7f\u7528\u7ec4\u5408\u8303\u56f4\u65b9\u6cd5\u8fdb\u884c\u5206\u533a\u3002<\/p>\n<h3>\u5b98\u65b9\u89e3\u91ca<\/h3>\n<p>ORA-14253: \u8868\u6ca1\u6709\u4f7f\u7528\u4efb\u4f55\u7ec4\u5408\u8303\u56f4\u7684\u5206\u533a\u65b9\u6cd5\uff0c\u4ee5\u4fbf\u5728\u5206\u533a\u8868\u4e0a\u6267\u884c\u67d0\u4e9b\u64cd\u4f5c\u3002<\/p>\n<h3>\u5e38\u89c1\u6848\u4f8b<\/h3>\n<p>\u5f53\u60a8\u5c1d\u8bd5\u4f7f\u7528\u4ee5\u4e0bSQL\u8bed\u53e5\u5bf9\u5206\u533a\u8868\u8fdb\u884c\u64cd\u4f5c\u65f6\uff0c\u5c31\u4f1a\u9047\u5230ORA-14253\u7684\u9519\u8bef\uff1a<\/p>\n<p> ALTER TABLE <\/p>\n<\/p>\n<p>1.\u83b7\u53d6\u8981\u64cd\u4f5c\u7684\u8868\u5206\u533a\u65b9\u6cd5\uff1a<\/p>\n<p> SELECT PARTITION_METHOD FROM DBA_TAB_PARTITIONS<\/p>\n<p> WHERE TABLE_NAME = \u2018<\/p>\n<h3>\u6b63\u5e38\u5904\u7406\u65b9\u6cd5\u53ca\u6b65\u9aa4<\/h3>\n<table>\n  TRUNCATE PARTITION ;<br \/>\n<\/table>\n<\/p>\n<p> SELECT DBMS_METADATA.GET_DDL( \u2018TABLE\u2019, \u2018<\/p>\n<p>2. \u82e5\u6ca1\u6709\u627e\u5230\uff0c\u5219\u68c0\u67e5\u8868\u5206\u533a\u8bed\u53e5\uff1a<\/p>\n<table>\n  \u2018;<br \/>\n<\/table>\n<\/p>\n<p>3. \u627e\u51fa\u8868\u5206\u533a\u65b9\u6cd5\uff0c\u5e76\u786e\u8ba4\u5b83\u662f\u5426\u4f7f\u7528\u4e86COMPOSITE RANGE\u65b9\u6cd5\u3002<\/p>\n<p> CREATE TABLE <\/p>\n<p> FROM dual;<\/p>\n<table>\n  \u2018)<br \/>\n<\/table>\n<\/p>\n<p> PARTITION BY RANGE(column_name)<\/p>\n<p> (<\/p>\n<p> PARTITION part_name VALUES LESS THAN (value1)<\/p>\n<p> \u2026)<\/p>\n<p> COMPOSITE RANGE<\/p>\n<p> (PARTITION cmp_part1 VALUES LESS THAN (value2),<\/p>\n<p> PARTITION cmp_part2 VALUES LESS THAN (value321))<\/p>\n<p> ( \u2026 )<\/p>\n<p>4. \u82e5\u5206\u533a\u4e0d\u662f\u4f7f\u7528COMPOSITE RANGE\uff0c\u5219\u66f4\u6539\u8868\u7684\u5206\u533a\u65b9\u5f0f\uff0c\u4f7f\u5176\u4f7f\u7528COMPOSITE RANGE\u5206\u533a<\/p>\n<p>\u793a\u4f8b\uff1a<\/p>\n<p> ALTER TABLE <\/p>\n<p> ( \u2026 )<\/p>\n<table>\n<\/table>\n<\/p>\n<p> PARTITION part_name VALUES LESS THAN (value1),<\/p>\n<p> \u2026 )<\/p>\n<p> COMPOSITE RANGE (PARTITION cmp_part1 VALUES LESS THAN (value2),<\/p>\n<p> PARTITION cmp_part2 VALUES LESS THAN (value3))<\/p>\n<p> \u2026 ;<\/p>\n<p> REORGANIZE PARTITION <\/p>\n<p> INTO (<\/p>\n<table>\n<\/table>\n<p>\u9999\u6e2f\u7f8e\u56fd\u4e91\u670d\u52a1\u5668\u9996\u9009\u540e\u6d6a\u4e91\uff0c2H2G\u9996\u670810\u5143\u5f00\u901a\u3002<br \/>\u540e\u6d6a\u4e91\uff08www.IDC.Net\uff09\u63d0\u4f9b\u7b80\u5355\u597d\u7528\uff0c\u4ef7\u683c\u539a\u9053\u7684\u9999\u6e2f\/\u7f8e\u56fd\u4e91\u670d\u52a1\u5668\u548c\u72ec\u7acb\u670d\u52a1\u5668\u3002IDC+ISP+ICP\u8d44\u8d28\u3002ARIN\u548cAPNIC\u4f1a\u5458\u3002\u6210\u719f\u6280\u672f\u56e2\u961f15\u5e74\u884c\u4e1a\u7ecf\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u6863\u89e3\u91ca ORA-14253: table is not partitioned by Composite R [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7038],"tags":[],"class_list":["post-40418","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/40418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=40418"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/40418\/revisions"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=40418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=40418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=40418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}