{"id":86120,"date":"2024-10-17T18:37:17","date_gmt":"2024-10-17T10:37:17","guid":{"rendered":"https:\/\/server.hk\/cnblog\/86120\/"},"modified":"2024-10-17T18:37:17","modified_gmt":"2024-10-17T10:37:17","slug":"ora-14400-%e6%8f%92%e5%85%a5%e7%9a%84%e5%88%86%e5%8d%80%e9%8d%b5%e6%9c%aa%e6%98%a0%e5%b0%84%e5%88%b0%e4%bb%bb%e4%bd%95%e5%88%86%e5%8d%80%e3%80%82oracle-%e5%a0%b1%e9%8c%af-%e6%95%85%e9%9a%9c%e4%bf%ae","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/86120\/","title":{"rendered":"ORA-14400: \u63d2\u5165\u7684\u5206\u5340\u9375\u672a\u6620\u5c04\u5230\u4efb\u4f55\u5206\u5340\u3002ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-14400-%e6%8f%92%e5%85%a5%e7%9a%84%e5%88%86%e5%8d%80%e9%8d%b5%e6%9c%aa%e6%98%a0%e5%b0%84%e5%88%b0%e4%bb%bb%e4%bd%95%e5%88%86%e5%8d%80-uWyysFwPZn\">ORA-14400: \u63d2\u5165\u7684\u5206\u5340\u9375\u672a\u6620\u5c04\u5230\u4efb\u4f55\u5206\u5340<\/h1>\n<p>\u5728\u4f7f\u7528Oracle\u6578\u64da\u5eab\u6642\uff0c\u958b\u767c\u8005\u548c\u6578\u64da\u5eab\u7ba1\u7406\u54e1\u53ef\u80fd\u6703\u9047\u5230\u5404\u7a2e\u932f\u8aa4\u4ee3\u78bc\uff0c\u5176\u4e2d\u4e4b\u4e00\u4fbf\u662fORA-14400\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u51fa\u73fe\u5728\u5617\u8a66\u63d2\u5165\u6578\u64da\u5230\u5206\u5340\u8868\u6642\uff0c\u7576\u63d2\u5165\u7684\u5206\u5340\u9375\u672a\u80fd\u6b63\u78ba\u6620\u5c04\u5230\u4efb\u4f55\u5df2\u5b9a\u7fa9\u7684\u5206\u5340\u6642\uff0c\u5c31\u6703\u5f15\u767c\u6b64\u932f\u8aa4\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0eORA-14400\u7684\u539f\u56e0\u3001\u89e3\u6c7a\u65b9\u6848\u4ee5\u53ca\u5982\u4f55\u9032\u884c\u9060\u7a0b\u8655\u7406\u3002<\/p>\n<h2 id=\"ora-14400%e7%9a%84%e5%8e%9f%e5%9b%a0-uWyysFwPZn\">ORA-14400\u7684\u539f\u56e0<\/h2>\n<p>ORA-14400\u932f\u8aa4\u7684\u4e3b\u8981\u539f\u56e0\u662f\u63d2\u5165\u7684\u6578\u64da\u4e0d\u7b26\u5408\u5206\u5340\u8868\u7684\u5206\u5340\u9375\u898f\u5247\u3002\u5177\u9ad4\u4f86\u8aaa\uff0c\u9019\u53ef\u80fd\u662f\u7531\u65bc\u4ee5\u4e0b\u5e7e\u500b\u539f\u56e0\uff1a<\/p>\n<ul>\n<li><strong>\u5206\u5340\u9375\u503c\u4e0d\u5728\u7bc4\u570d\u5167\uff1a<\/strong>\u5982\u679c\u5206\u5340\u8868\u662f\u57fa\u65bc\u7bc4\u570d\u5206\u5340\u7684\uff0c\u63d2\u5165\u7684\u503c\u53ef\u80fd\u8d85\u51fa\u4e86\u5b9a\u7fa9\u7684\u7bc4\u570d\u3002<\/li>\n<li><strong>\u5206\u5340\u8868\u7d50\u69cb\u8b8a\u66f4\uff1a<\/strong>\u5982\u679c\u5728\u63d2\u5165\u6578\u64da\u4e4b\u524d\u5c0d\u5206\u5340\u8868\u9032\u884c\u4e86\u7d50\u69cb\u8b8a\u66f4\uff08\u4f8b\u5982\uff0c\u6dfb\u52a0\u6216\u522a\u9664\u5206\u5340\uff09\uff0c\u53ef\u80fd\u6703\u5c0e\u81f4\u539f\u6709\u7684\u5206\u5340\u9375\u4e0d\u518d\u6709\u6548\u3002<\/li>\n<li><strong>\u6578\u64da\u985e\u578b\u4e0d\u5339\u914d\uff1a<\/strong>\u63d2\u5165\u7684\u6578\u64da\u985e\u578b\u5fc5\u9808\u8207\u5206\u5340\u9375\u7684\u6578\u64da\u985e\u578b\u4e00\u81f4\uff0c\u5426\u5247\u6703\u5c0e\u81f4\u932f\u8aa4\u3002<\/li>\n<\/ul>\n<h2 id=\"%e8%a7%a3%e6%b1%baora-14400%e9%8c%af%e8%aa%a4%e7%9a%84%e6%96%b9%e6%b3%95-uWyysFwPZn\">\u89e3\u6c7aORA-14400\u932f\u8aa4\u7684\u65b9\u6cd5<\/h2>\n<p>\u7576\u9047\u5230ORA-14400\u932f\u8aa4\u6642\uff0c\u53ef\u4ee5\u63a1\u53d6\u4ee5\u4e0b\u5e7e\u500b\u6b65\u9a5f\u4f86\u9032\u884c\u6545\u969c\u6392\u9664\u548c\u4fee\u5fa9\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5%e5%88%86%e5%8d%80%e9%8d%b5%e7%9a%84%e5%ae%9a%e7%be%a9-uWyysFwPZn\">1. \u6aa2\u67e5\u5206\u5340\u9375\u7684\u5b9a\u7fa9<\/h3>\n<p>\u9996\u5148\uff0c\u6aa2\u67e5\u5206\u5340\u8868\u7684\u5b9a\u7fa9\uff0c\u78ba\u4fdd\u63d2\u5165\u7684\u6578\u64da\u7b26\u5408\u5206\u5340\u9375\u7684\u7bc4\u570d\u3002\u4f8b\u5982\uff0c\u5c0d\u65bc\u7bc4\u570d\u5206\u5340\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0bSQL\u67e5\u8a62\u4f86\u67e5\u770b\u5206\u5340\u7684\u7bc4\u570d\uff1a<\/p>\n<pre><code>SELECT partition_name, high_value \nFROM user_tab_partitions \nWHERE table_name = 'YOUR_TABLE_NAME';<\/code><\/pre>\n<p>\u9019\u6a23\u53ef\u4ee5\u5e6b\u52a9\u60a8\u78ba\u8a8d\u63d2\u5165\u7684\u6578\u64da\u662f\u5426\u5728\u6b63\u78ba\u7684\u7bc4\u570d\u5167\u3002<\/p>\n<h3 id=\"2-%e6%aa%a2%e6%9f%a5%e6%95%b8%e6%93%9a%e9%a1%9e%e5%9e%8b-uWyysFwPZn\">2. \u6aa2\u67e5\u6578\u64da\u985e\u578b<\/h3>\n<p>\u78ba\u4fdd\u63d2\u5165\u7684\u6578\u64da\u985e\u578b\u8207\u5206\u5340\u9375\u7684\u6578\u64da\u985e\u578b\u4e00\u81f4\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u67e5\u8a62\u4f86\u6aa2\u67e5\u5206\u5340\u9375\u7684\u6578\u64da\u985e\u578b\uff1a<\/p>\n<pre><code>SELECT column_name, data_type \nFROM user_tab_columns \nWHERE table_name = 'YOUR_TABLE_NAME';<\/code><\/pre>\n<h3 id=\"3-%e6%9b%b4%e6%96%b0%e5%88%86%e5%8d%80%e8%a1%a8%e7%b5%90%e6%a7%8b-uWyysFwPZn\">3. \u66f4\u65b0\u5206\u5340\u8868\u7d50\u69cb<\/h3>\n<p>\u5982\u679c\u5206\u5340\u8868\u7684\u7d50\u69cb\u5df2\u7d93\u8b8a\u66f4\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u66f4\u65b0\u5206\u5340\u8868\u4ee5\u5305\u542b\u65b0\u7684\u5206\u5340\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0bSQL\u8a9e\u53e5\u4f86\u6dfb\u52a0\u65b0\u7684\u5206\u5340\uff1a<\/p>\n<pre><code>ALTER TABLE YOUR_TABLE_NAME \nADD PARTITION new_partition_name \nVALUES LESS THAN (new_value);<\/code><\/pre>\n<h3 id=\"4-%e4%bd%bf%e7%94%a8%e7%95%b0%e5%b8%b8%e8%99%95%e7%90%86-uWyysFwPZn\">4. \u4f7f\u7528\u7570\u5e38\u8655\u7406<\/h3>\n<p>\u5728\u61c9\u7528\u7a0b\u5e8f\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u7570\u5e38\u8655\u7406\u4f86\u6355\u7372ORA-14400\u932f\u8aa4\uff0c\u4e26\u6839\u64da\u9700\u8981\u9032\u884c\u76f8\u61c9\u7684\u8655\u7406\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code>BEGIN\n    INSERT INTO YOUR_TABLE_NAME (partition_key, other_columns) \n    VALUES (value1, value2);\nEXCEPTION\n    WHEN OTHERS THEN\n        IF SQLCODE = -14400 THEN\n            DBMS_OUTPUT.PUT_LINE('\u5206\u5340\u9375\u672a\u6620\u5c04\u5230\u4efb\u4f55\u5206\u5340\u3002');\n        END IF;\nEND;<\/code><\/pre>\n<h2 id=\"%e9%81%a0%e7%a8%8b%e8%99%95%e7%90%86ora-14400%e9%8c%af%e8%aa%a4-uWyysFwPZn\">\u9060\u7a0b\u8655\u7406ORA-14400\u932f\u8aa4<\/h2>\n<p>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u9032\u884c\u9060\u7a0b\u8655\u7406\u4ee5\u89e3\u6c7aORA-14400\u932f\u8aa4\u3002\u9019\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u65b9\u5f0f\u5be6\u73fe\uff1a<\/p>\n<ul>\n<li><strong>\u4f7f\u7528\u9060\u7a0b\u684c\u9762\u9023\u63a5\uff1a<\/strong>\u5982\u679c\u60a8\u6709\u6b0a\u9650\uff0c\u53ef\u4ee5\u901a\u904e\u9060\u7a0b\u684c\u9762\u9023\u63a5\u5230\u6578\u64da\u5eab\u4f3a\u670d\u5668\uff0c\u76f4\u63a5\u9032\u884c\u6545\u969c\u6392\u9664\u3002<\/li>\n<li><strong>\u4f7f\u7528SQL*Plus\u6216\u5176\u4ed6\u6578\u64da\u5eab\u7ba1\u7406\u5de5\u5177\uff1a<\/strong>\u9019\u4e9b\u5de5\u5177\u53ef\u4ee5\u5e6b\u52a9\u60a8\u57f7\u884cSQL\u67e5\u8a62\u548c\u7ba1\u7406\u6578\u64da\u5eab\u3002<\/li>\n<li><strong>\u8acb\u6c42\u6280\u8853\u652f\u6301\uff1a<\/strong>\u5982\u679c\u60a8\u7121\u6cd5\u81ea\u884c\u89e3\u6c7a\u554f\u984c\uff0c\u53ef\u4ee5\u8003\u616e\u8acb\u6c42\u5c08\u696d\u7684\u6280\u8853\u652f\u6301\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-uWyysFwPZn\">\u7e3d\u7d50<\/h2>\n<p>ORA-14400\u932f\u8aa4\u901a\u5e38\u662f\u7531\u65bc\u63d2\u5165\u7684\u5206\u5340\u9375\u672a\u80fd\u6b63\u78ba\u6620\u5c04\u5230\u4efb\u4f55\u5206\u5340\u6240\u5f15\u8d77\u7684\u3002\u901a\u904e\u6aa2\u67e5\u5206\u5340\u9375\u7684\u5b9a\u7fa9\u3001\u6578\u64da\u985e\u578b\u4ee5\u53ca\u66f4\u65b0\u5206\u5340\u8868\u7d50\u69cb\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u5728\u9032\u884c\u6545\u969c\u6392\u9664\u6642\uff0c\u9060\u7a0b\u8655\u7406\u4e5f\u662f\u4e00\u500b\u53ef\u884c\u7684\u9078\u64c7\u3002\u5c0d\u65bc\u9700\u8981\u7a69\u5b9a\u548c\u9ad8\u6548\u7684\u6578\u64da\u5eab\u89e3\u6c7a\u65b9\u6848\uff0c\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u6216 <a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a> \u662f\u81f3\u95dc\u91cd\u8981\u7684\uff0c\u9019\u5c07\u6709\u52a9\u65bc\u78ba\u4fdd\u60a8\u7684\u6578\u64da\u5eab\u904b\u884c\u9806\u5229\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u6c7a ORA-14400 \u932f\u8aa4\uff1a\u63d2\u5165\u7684\u5206\u5340\u9375\u672a\u6620\u5c04\u5230\u4efb\u4f55\u5206\u5340\uff0c\u63d0\u4f9b\u6545\u969c\u4fee\u5fa9\u548c\u9060\u7a0b\u8655\u7406\u65b9\u6848\uff0c\u52a9\u60a8\u5feb\u901f\u6062\u5fa9\u3002<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-86120","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/86120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=86120"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/86120\/revisions"}],"predecessor-version":[{"id":86121,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/86120\/revisions\/86121"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=86120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=86120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=86120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}