{"id":87864,"date":"2024-10-18T04:37:17","date_gmt":"2024-10-17T20:37:17","guid":{"rendered":"https:\/\/server.hk\/cnblog\/87864\/"},"modified":"2024-10-18T04:37:17","modified_gmt":"2024-10-17T20:37:17","slug":"ora-22313-%e7%84%a1%e6%b3%95%e4%bd%bf%e7%94%a8%e7%9b%b8%e5%90%8c%e9%a1%9e%e5%9e%8b-string-%e7%9a%84%e5%85%a9%e5%80%8b%e7%89%88%e6%9c%ac-oracle-%e5%a0%b1%e9%8c%af-%e6%95%85%e9%9a%9c","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/87864\/","title":{"rendered":"ORA-22313: \u7121\u6cd5\u4f7f\u7528\u76f8\u540c\u985e\u578b \u201cstring\u201d \u7684\u5169\u500b\u7248\u672c ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-22313-%e7%84%a1%e6%b3%95%e4%bd%bf%e7%94%a8%e7%9b%b8%e5%90%8c%e9%a1%9e%e5%9e%8b-string-%e7%9a%84%e5%85%a9%e5%80%8b%e7%89%88%e6%9c%ac-oracle-%e5%a0%b1%e9%8c%af-%e6%95%85%e9%9a%9c-LLjajlEgdI\">ORA-22313: \u7121\u6cd5\u4f7f\u7528\u76f8\u540c\u985e\u578b \u201cstring\u201d \u7684\u5169\u500b\u7248\u672c ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406<\/h1>\n<p>\u5728\u4f7f\u7528 Oracle \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\u662f <code>ORA-22313<\/code>\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8868\u793a\u5728\u4f7f\u7528\u76f8\u540c\u985e\u578b\u7684\u5169\u500b\u7248\u672c\u6642\u51fa\u73fe\u4e86\u885d\u7a81\uff0c\u5c0e\u81f4\u7121\u6cd5\u6b63\u5e38\u57f7\u884c\u64cd\u4f5c\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e <code>ORA-22313<\/code> \u7684\u6210\u56e0\u3001\u5f71\u97ff\u53ca\u5176\u89e3\u6c7a\u65b9\u6848\u3002<\/p>\n<h2 id=\"ora-22313-%e9%8c%af%e8%aa%a4%e7%9a%84%e6%88%90%e5%9b%a0-LLjajlEgdI\">ORA-22313 \u932f\u8aa4\u7684\u6210\u56e0<\/h2>\n<p>\u7576\u4f60\u5728 Oracle \u6578\u64da\u5eab\u4e2d\u4f7f\u7528\u5c0d\u8c61\u985e\u578b\uff08Object Types\uff09\u6642\uff0c\u53ef\u80fd\u6703\u56e0\u70ba\u4ee5\u4e0b\u5e7e\u500b\u539f\u56e0\u800c\u5c0e\u81f4 <code>ORA-22313<\/code> \u932f\u8aa4\uff1a<\/p>\n<ul>\n<li><strong>\u7248\u672c\u4e0d\u4e00\u81f4\uff1a<\/strong>\u7576\u6578\u64da\u5eab\u4e2d\u5b58\u5728\u591a\u500b\u7248\u672c\u7684\u76f8\u540c\u5c0d\u8c61\u985e\u578b\u6642\uff0cOracle \u6703\u7121\u6cd5\u78ba\u5b9a\u61c9\u8a72\u4f7f\u7528\u54ea\u4e00\u500b\u7248\u672c\uff0c\u5f9e\u800c\u5f15\u767c\u932f\u8aa4\u3002<\/li>\n<li><strong>\u985e\u578b\u5b9a\u7fa9\u7684\u8b8a\u66f4\uff1a<\/strong>\u5982\u679c\u5c0d\u8c61\u985e\u578b\u7684\u5b9a\u7fa9\u88ab\u4fee\u6539\uff0c\u4f46\u76f8\u95dc\u7684\u6578\u64da\u4ecd\u7136\u4f7f\u7528\u820a\u7248\u672c\uff0c\u9019\u4e5f\u6703\u5c0e\u81f4\u885d\u7a81\u3002<\/li>\n<li><strong>\u4e0d\u6b63\u78ba\u7684\u5f15\u7528\uff1a<\/strong>\u5728 PL\/SQL \u7a0b\u5e8f\u4e2d\uff0c\u5982\u679c\u5f15\u7528\u4e86\u4e0d\u6b63\u78ba\u7684\u5c0d\u8c61\u985e\u578b\uff0c\u5247\u53ef\u80fd\u6703\u51fa\u73fe\u6b64\u932f\u8aa4\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%a6%82%e4%bd%95%e8%ad%98%e5%88%a5-ora-22313-%e9%8c%af%e8%aa%a4-LLjajlEgdI\">\u5982\u4f55\u8b58\u5225 ORA-22313 \u932f\u8aa4<\/h2>\n<p>\u7576\u4f60\u57f7\u884c SQL \u67e5\u8a62\u6216 PL\/SQL \u7a0b\u5e8f\u6642\uff0c\u5982\u679c\u9047\u5230 <code>ORA-22313<\/code> \u932f\u8aa4\uff0cOracle \u6703\u8fd4\u56de\u4e00\u689d\u932f\u8aa4\u6d88\u606f\uff0c\u901a\u5e38\u6703\u5305\u542b\u4ee5\u4e0b\u4fe1\u606f\uff1a<\/p>\n<pre>\nORA-22313: \u7121\u6cd5\u4f7f\u7528\u76f8\u540c\u985e\u578b \u201cstring\u201d \u7684\u5169\u500b\u7248\u672c\n<\/pre>\n<p>\u9019\u689d\u6d88\u606f\u8868\u660e\uff0cOracle \u7121\u6cd5\u78ba\u5b9a\u61c9\u8a72\u4f7f\u7528\u54ea\u4e00\u500b\u7248\u672c\u7684\u5c0d\u8c61\u985e\u578b\u3002\u70ba\u4e86\u9032\u4e00\u6b65\u8a3a\u65b7\u554f\u984c\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b SQL \u67e5\u8a62\u4f86\u6aa2\u67e5\u6578\u64da\u5eab\u4e2d\u5c0d\u8c61\u985e\u578b\u7684\u7248\u672c\uff1a<\/p>\n<pre>\nSELECT object_name, object_type, created, last_ddl_time \nFROM user_objects \nWHERE object_type = 'TYPE';\n<\/pre>\n<h2 id=\"%e8%a7%a3%e6%b1%ba-ora-22313-%e9%8c%af%e8%aa%a4%e7%9a%84%e6%96%b9%e6%b3%95-LLjajlEgdI\">\u89e3\u6c7a ORA-22313 \u932f\u8aa4\u7684\u65b9\u6cd5<\/h2>\n<p>\u89e3\u6c7a <code>ORA-22313<\/code> \u932f\u8aa4\u7684\u6b65\u9a5f\u5982\u4e0b\uff1a<\/p>\n<h3 id=\"1-%e7%a2%ba%e8%aa%8d%e5%b0%8d%e8%b1%a1%e9%a1%9e%e5%9e%8b%e7%9a%84%e7%89%88%e6%9c%ac-LLjajlEgdI\">1. \u78ba\u8a8d\u5c0d\u8c61\u985e\u578b\u7684\u7248\u672c<\/h3>\n<p>\u9996\u5148\uff0c\u4f7f\u7528\u4e0a\u8ff0 SQL \u67e5\u8a62\u78ba\u8a8d\u6578\u64da\u5eab\u4e2d\u5b58\u5728\u7684\u5c0d\u8c61\u985e\u578b\u53ca\u5176\u7248\u672c\u3002\u5982\u679c\u767c\u73fe\u6709\u591a\u500b\u7248\u672c\uff0c\u5247\u9700\u8981\u9032\u884c\u6e05\u7406\u3002<\/p>\n<h3 id=\"2-%e5%88%aa%e9%99%a4%e8%88%8a%e7%89%88%e6%9c%ac-LLjajlEgdI\">2. \u522a\u9664\u820a\u7248\u672c<\/h3>\n<p>\u5982\u679c\u78ba\u5b9a\u67d0\u4e9b\u7248\u672c\u4e0d\u518d\u4f7f\u7528\uff0c\u53ef\u4ee5\u8003\u616e\u522a\u9664\u820a\u7248\u672c\u3002\u4f7f\u7528\u4ee5\u4e0b SQL \u8a9e\u53e5\u522a\u9664\u4e0d\u9700\u8981\u7684\u5c0d\u8c61\u985e\u578b\uff1a<\/p>\n<pre>\nDROP TYPE old_type_name;\n<\/pre>\n<h3 id=\"3-%e6%9b%b4%e6%96%b0%e5%bc%95%e7%94%a8-LLjajlEgdI\">3. \u66f4\u65b0\u5f15\u7528<\/h3>\n<p>\u78ba\u4fdd\u6240\u6709 PL\/SQL \u7a0b\u5e8f\u548c SQL \u67e5\u8a62\u90fd\u5f15\u7528\u4e86\u6b63\u78ba\u7684\u5c0d\u8c61\u985e\u578b\u3002\u5982\u679c\u9700\u8981\uff0c\u66f4\u65b0\u4ee3\u78bc\u4ee5\u4f7f\u7528\u6700\u65b0\u7248\u672c\u7684\u5c0d\u8c61\u985e\u578b\u3002<\/p>\n<h3 id=\"4-%e6%b8%ac%e8%a9%a6%e8%ae%8a%e6%9b%b4-LLjajlEgdI\">4. \u6e2c\u8a66\u8b8a\u66f4<\/h3>\n<p>\u5728\u9032\u884c\u4efb\u4f55\u66f4\u6539\u5f8c\uff0c\u52d9\u5fc5\u6e2c\u8a66\u6240\u6709\u76f8\u95dc\u7684 SQL \u67e5\u8a62\u548c PL\/SQL \u7a0b\u5e8f\uff0c\u4ee5\u78ba\u4fdd\u554f\u984c\u5df2\u7d93\u89e3\u6c7a\u3002<\/p>\n<h2 id=\"%e7%b5%90%e8%ab%96-LLjajlEgdI\">\u7d50\u8ad6<\/h2>\n<p>\u5728 Oracle \u6578\u64da\u5eab\u4e2d\uff0c<code>ORA-22313<\/code> \u932f\u8aa4\u53ef\u80fd\u6703\u5f71\u97ff\u61c9\u7528\u7a0b\u5e8f\u7684\u6b63\u5e38\u904b\u884c\u3002\u901a\u904e\u78ba\u8a8d\u5c0d\u8c61\u985e\u578b\u7684\u7248\u672c\u3001\u522a\u9664\u4e0d\u5fc5\u8981\u7684\u820a\u7248\u672c\u3001\u66f4\u65b0\u5f15\u7528\u4ee5\u53ca\u9032\u884c\u5145\u5206\u7684\u6e2c\u8a66\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u5c0d\u65bc\u9700\u8981\u7a69\u5b9a\u548c\u9ad8\u6548\u904b\u884c\u7684\u61c9\u7528\u7a0b\u5e8f\uff0c\u53ca\u6642\u8655\u7406\u9019\u985e\u932f\u8aa4\u81f3\u95dc\u91cd\u8981\u3002<\/p>\n<p>\u5982\u9700\u9032\u4e00\u6b65\u4e86\u89e3\u5982\u4f55\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u670d\u52d9\uff0c\u6216\u6709\u5176\u4ed6\u6578\u64da\u5eab\u7ba1\u7406\u7684\u9700\u6c42\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u4ee5\u7372\u53d6\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u6c7a ORA-22313 \u932f\u8aa4\uff0c\u7121\u6cd5\u4f7f\u7528\u76f8\u540c\u985e\u578b &#8220;string&#8221; \u7684\u5169\u500b\u7248\u672c\uff0c\u63d0\u4f9b\u6545\u969c\u4fee\u5fa9\u548c\u9060\u7a0b\u8655\u7406\u65b9\u6848\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-87864","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/87864","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=87864"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/87864\/revisions"}],"predecessor-version":[{"id":87865,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/87864\/revisions\/87865"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=87864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=87864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=87864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}