{"id":85594,"date":"2024-10-17T15:01:17","date_gmt":"2024-10-17T07:01:17","guid":{"rendered":"https:\/\/server.hk\/cnblog\/85594\/"},"modified":"2024-10-17T15:01:17","modified_gmt":"2024-10-17T07:01:17","slug":"ora-13383-%e7%b6%b2%e7%b5%a1%e5%85%83%e6%95%b8%e6%93%9a%e4%b8%8d%e4%b8%80%e8%87%b4%ef%bc%9a%e5%ad%97%e7%ac%a6%e4%b8%b2%e3%80%82oracle-%e5%a0%b1%e9%8c%af-%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9-%e9%81%a0","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/85594\/","title":{"rendered":"ORA-13383: \u7db2\u7d61\u5143\u6578\u64da\u4e0d\u4e00\u81f4\uff1a\u5b57\u7b26\u4e32\u3002ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-13383-%e7%b6%b2%e7%b5%a1%e5%85%83%e6%95%b8%e6%93%9a%e4%b8%8d%e4%b8%80%e8%87%b4%ef%bc%9a%e5%ad%97%e7%ac%a6%e4%b8%b2%e3%80%82oracle-%e5%a0%b1%e9%8c%af-%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9-%e9%81%a0-OYFkzTTCAy\">ORA-13383: \u7db2\u7d61\u5143\u6578\u64da\u4e0d\u4e00\u81f4\uff1a\u5b57\u7b26\u4e32\u3002ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406<\/h1>\n<p>\u5728\u4f7f\u7528 Oracle \u6578\u64da\u5eab\u7684\u904e\u7a0b\u4e2d\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\u662f <code>ORA-13383<\/code>\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8868\u793a\u7db2\u7d61\u5143\u6578\u64da\u4e0d\u4e00\u81f4\uff0c\u9019\u53ef\u80fd\u6703\u5c0e\u81f4\u6578\u64da\u5eab\u64cd\u4f5c\u5931\u6557\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e <code>ORA-13383<\/code> \u7684\u6210\u56e0\u3001\u5f71\u97ff\u4ee5\u53ca\u6545\u969c\u4fee\u5fa9\u7684\u65b9\u6cd5\u3002<\/p>\n<h2 id=\"ora-13383-%e9%8c%af%e8%aa%a4%e7%9a%84%e6%88%90%e5%9b%a0-OYFkzTTCAy\">ORA-13383 \u932f\u8aa4\u7684\u6210\u56e0<\/h2>\n<p><code>ORA-13383<\/code> \u932f\u8aa4\u901a\u5e38\u51fa\u73fe\u5728\u8655\u7406\u5730\u7406\u7a7a\u9593\u6578\u64da\u6642\uff0c\u7279\u5225\u662f\u5728\u4f7f\u7528 Oracle Spatial \u548c Graph \u529f\u80fd\u7684\u60c5\u6cc1\u4e0b\u3002\u9019\u500b\u932f\u8aa4\u7684\u4e3b\u8981\u539f\u56e0\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>\u6578\u64da\u4e0d\u4e00\u81f4\uff1a\u7576\u6578\u64da\u5eab\u4e2d\u7684\u7a7a\u9593\u6578\u64da\u8207\u5176\u5143\u6578\u64da\u4e0d\u5339\u914d\u6642\uff0c\u53ef\u80fd\u6703\u5c0e\u81f4\u6b64\u932f\u8aa4\u3002<\/li>\n<li>\u6578\u64da\u640d\u58de\uff1a\u5982\u679c\u6578\u64da\u5728\u50b3\u8f38\u904e\u7a0b\u4e2d\u640d\u58de\uff0c\u6216\u8005\u5728\u6578\u64da\u5eab\u4e2d\u9032\u884c\u4e86\u4e0d\u7576\u7684\u64cd\u4f5c\uff0c\u5247\u53ef\u80fd\u6703\u51fa\u73fe\u6b64\u932f\u8aa4\u3002<\/li>\n<li>\u7248\u672c\u4e0d\u517c\u5bb9\uff1a\u4f7f\u7528\u4e0d\u540c\u7248\u672c\u7684 Oracle \u6578\u64da\u5eab\u6216\u5de5\u5177\u6642\uff0c\u53ef\u80fd\u6703\u5c0e\u81f4\u5143\u6578\u64da\u4e0d\u4e00\u81f4\u3002<\/li>\n<\/ul>\n<h2 id=\"%e9%8c%af%e8%aa%a4%e7%9a%84%e5%bd%b1%e9%9f%bf-OYFkzTTCAy\">\u932f\u8aa4\u7684\u5f71\u97ff<\/h2>\n<p>\u7576 <code>ORA-13383<\/code> \u932f\u8aa4\u767c\u751f\u6642\uff0c\u5c07\u6703\u5f71\u97ff\u5230\u6578\u64da\u5eab\u7684\u6b63\u5e38\u904b\u884c\u3002\u5177\u9ad4\u5f71\u97ff\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>\u7121\u6cd5\u57f7\u884c\u67e5\u8a62\uff1a\u7528\u6236\u5c07\u7121\u6cd5\u57f7\u884c\u6d89\u53ca\u7a7a\u9593\u6578\u64da\u7684\u67e5\u8a62\uff0c\u9019\u53ef\u80fd\u6703\u5f71\u97ff\u696d\u52d9\u904b\u4f5c\u3002<\/li>\n<li>\u6578\u64da\u5b8c\u6574\u6027\u554f\u984c\uff1a\u6578\u64da\u7684\u4e0d\u4e00\u81f4\u6027\u53ef\u80fd\u5c0e\u81f4\u6578\u64da\u5b8c\u6574\u6027\u554f\u984c\uff0c\u9032\u800c\u5f71\u97ff\u5831\u544a\u548c\u5206\u6790\u7684\u6e96\u78ba\u6027\u3002<\/li>\n<li>\u6027\u80fd\u4e0b\u964d\uff1a\u5728\u5617\u8a66\u4fee\u5fa9\u932f\u8aa4\u7684\u904e\u7a0b\u4e2d\uff0c\u6578\u64da\u5eab\u6027\u80fd\u53ef\u80fd\u6703\u53d7\u5230\u5f71\u97ff\u3002<\/li>\n<\/ul>\n<h2 id=\"%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9%e6%ad%a5%e9%a9%9f-OYFkzTTCAy\">\u6545\u969c\u4fee\u5fa9\u6b65\u9a5f<\/h2>\n<p>\u4fee\u5fa9 <code>ORA-13383<\/code> \u932f\u8aa4\u7684\u904e\u7a0b\u53ef\u80fd\u9700\u8981\u591a\u500b\u6b65\u9a5f\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u898b\u7684\u6545\u969c\u6392\u9664\u65b9\u6cd5\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5%e6%95%b8%e6%93%9a%e4%b8%80%e8%87%b4%e6%80%a7-OYFkzTTCAy\">1. \u6aa2\u67e5\u6578\u64da\u4e00\u81f4\u6027<\/h3>\n<p>\u9996\u5148\uff0c\u6aa2\u67e5\u6578\u64da\u5eab\u4e2d\u7684\u7a7a\u9593\u6578\u64da\u8207\u5176\u5143\u6578\u64da\u662f\u5426\u4e00\u81f4\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b SQL \u67e5\u8a62\u4f86\u6aa2\u67e5\u6578\u64da\u7684\u4e00\u81f4\u6027\uff1a<\/p>\n<pre><code>SELECT * FROM user_sdo_geom_metadata;<\/code><\/pre>\n<p>\u9019\u5c07\u986f\u793a\u6240\u6709\u7a7a\u9593\u6578\u64da\u7684\u5143\u6578\u64da\uff0c\u60a8\u53ef\u4ee5\u6aa2\u67e5\u662f\u5426\u5b58\u5728\u4e0d\u4e00\u81f4\u7684\u60c5\u6cc1\u3002<\/p>\n<h3 id=\"2-%e4%bf%ae%e5%be%a9%e6%95%b8%e6%93%9a-OYFkzTTCAy\">2. \u4fee\u5fa9\u6578\u64da<\/h3>\n<p>\u5982\u679c\u767c\u73fe\u6578\u64da\u4e0d\u4e00\u81f4\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>SDO_UTIL.RECTIFY_GEOMETRY<\/code> \u51fd\u6578\u4f86\u4fee\u5fa9\u7a7a\u9593\u6578\u64da\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code>UPDATE your_table\nSET your_geometry_column = SDO_UTIL.RECTIFY_GEOMETRY(your_geometry_column)\nWHERE your_condition;<\/code><\/pre>\n<h3 id=\"3-%e6%9b%b4%e6%96%b0%e6%95%b8%e6%93%9a%e5%ba%ab%e7%89%88%e6%9c%ac-OYFkzTTCAy\">3. \u66f4\u65b0\u6578\u64da\u5eab\u7248\u672c<\/h3>\n<p>\u5982\u679c\u60a8\u4f7f\u7528\u7684 Oracle \u6578\u64da\u5eab\u7248\u672c\u8f03\u820a\uff0c\u5efa\u8b70\u8003\u616e\u5347\u7d1a\u5230\u6700\u65b0\u7248\u672c\uff0c\u4ee5\u78ba\u4fdd\u517c\u5bb9\u6027\u548c\u6027\u80fd\u3002<\/p>\n<h3 id=\"4-%e8%81%af%e7%b9%ab-oracle-%e6%94%af%e6%8c%81-OYFkzTTCAy\">4. \u806f\u7e6b Oracle \u652f\u6301<\/h3>\n<p>\u5982\u679c\u4ee5\u4e0a\u6b65\u9a5f\u7121\u6cd5\u89e3\u6c7a\u554f\u984c\uff0c\u5efa\u8b70\u806f\u7e6b Oracle \u7684\u6280\u8853\u652f\u6301\uff0c\u7372\u53d6\u5c08\u696d\u7684\u5e6b\u52a9\u548c\u5efa\u8b70\u3002<\/p>\n<h2 id=\"%e7%b5%90%e8%ab%96-OYFkzTTCAy\">\u7d50\u8ad6<\/h2>\n<p>\u5728\u4f7f\u7528 Oracle \u6578\u64da\u5eab\u6642\uff0c<code>ORA-13383<\/code> \u932f\u8aa4\u53ef\u80fd\u6703\u5c0d\u696d\u52d9\u904b\u4f5c\u9020\u6210\u5f71\u97ff\u3002\u901a\u904e\u6aa2\u67e5\u6578\u64da\u4e00\u81f4\u6027\u3001\u4fee\u5fa9\u6578\u64da\u3001\u66f4\u65b0\u6578\u64da\u5eab\u7248\u672c\u4ee5\u53ca\u5fc5\u8981\u6642\u806f\u7e6b\u6280\u8853\u652f\u6301\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u5c0d\u65bc\u9700\u8981\u7a69\u5b9a\u548c\u9ad8\u6548\u6578\u64da\u5eab\u904b\u884c\u7684\u4f01\u696d\u4f86\u8aaa\uff0c\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u89e3\u6c7a\u65b9\u6848\u81f3\u95dc\u91cd\u8981\u3002\u4e86\u89e3\u66f4\u591a\u95dc\u65bc <a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a> \u7684\u4fe1\u606f\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u6c7a ORA-13383 \u932f\u8aa4\uff1a\u7db2\u7d61\u5143\u6578\u64da\u4e0d\u4e00\u81f4\u7684\u554f\u984c\uff0c\u63d0\u4f9b\u6545\u969c\u4fee\u5fa9\u548c\u9060\u7a0b\u8655\u7406\u65b9\u6848\uff0c\u78ba\u4fdd Oracle \u6578\u64da\u5eab\u7a69\u5b9a\u904b\u884c\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-85594","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/85594","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=85594"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/85594\/revisions"}],"predecessor-version":[{"id":85595,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/85594\/revisions\/85595"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=85594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=85594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=85594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}