{"id":87896,"date":"2024-10-18T04:53:19","date_gmt":"2024-10-17T20:53:19","guid":{"rendered":"https:\/\/server.hk\/cnblog\/87896\/"},"modified":"2024-10-18T04:53:19","modified_gmt":"2024-10-17T20:53:19","slug":"ora-22340-%e7%84%a1%e6%b3%95%e5%b0%87%e9%a1%9e%e5%9e%8b-string-string-%e9%80%b2%e8%a1%8c-string%e3%80%82%e4%be%9d%e8%b3%b4%e8%a1%a8%e5%bf%85%e9%a0%88%e5%8d%87","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/87896\/","title":{"rendered":"ORA-22340: \u7121\u6cd5\u5c07\u985e\u578b \u201cstring\u201d.\u201dstring\u201d \u9032\u884c string\u3002\u4f9d\u8cf4\u8868\u5fc5\u9808\u5347\u7d1a\u5230\u6700\u65b0\u7248\u672c ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-22340-%e7%84%a1%e6%b3%95%e5%b0%87%e9%a1%9e%e5%9e%8b-string-string-%e9%80%b2%e8%a1%8c-string%e3%80%82%e4%be%9d%e8%b3%b4%e8%a1%a8%e5%bf%85%e9%a0%88%e5%8d%87-oJryhkhhMv\">ORA-22340: \u7121\u6cd5\u5c07\u985e\u578b \u201cstring\u201d.\u201dstring\u201d \u9032\u884c string\u3002\u4f9d\u8cf4\u8868\u5fc5\u9808\u5347\u7d1a\u5230\u6700\u65b0\u7248\u672c ORACLE \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-22340<\/code>\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8207\u5c0d\u8c61\u985e\u578b\u7684\u4f9d\u8cf4\u6027\u6709\u95dc\uff0c\u7279\u5225\u662f\u5728\u9032\u884c\u985e\u578b\u5347\u7d1a\u6216\u4fee\u6539\u6642\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e <code>ORA-22340<\/code> \u932f\u8aa4\u7684\u539f\u56e0\u3001\u5f71\u97ff\u4ee5\u53ca\u89e3\u6c7a\u65b9\u6848\u3002<\/p>\n<h2 id=\"ora-22340-%e9%8c%af%e8%aa%a4%e7%9a%84%e5%8e%9f%e5%9b%a0-oJryhkhhMv\">ORA-22340 \u932f\u8aa4\u7684\u539f\u56e0<\/h2>\n<p><code>ORA-22340<\/code> \u932f\u8aa4\u7684\u4e3b\u8981\u539f\u56e0\u662f\u7576\u4e00\u500b\u5c0d\u8c61\u985e\u578b\u7684\u4f9d\u8cf4\u8868\u672a\u5347\u7d1a\u5230\u6700\u65b0\u7248\u672c\u6642\uff0c\u5617\u8a66\u9032\u884c\u67d0\u4e9b\u64cd\u4f5c\uff08\u5982\u63d2\u5165\u3001\u66f4\u65b0\u6216\u522a\u9664\uff09\u6703\u5c0e\u81f4\u6b64\u932f\u8aa4\u3002\u9019\u901a\u5e38\u767c\u751f\u5728\u4ee5\u4e0b\u60c5\u6cc1\uff1a<\/p>\n<ul>\n<li>\u5c0d\u8c61\u985e\u578b\u7684\u7d50\u69cb\u5df2\u7d93\u6539\u8b8a\uff0c\u4f46\u4f9d\u8cf4\u65bc\u8a72\u985e\u578b\u7684\u8868\u672a\u9032\u884c\u76f8\u61c9\u7684\u5347\u7d1a\u3002<\/li>\n<li>\u5728\u9032\u884c\u985e\u578b\u7684\u4fee\u6539\u5f8c\uff0c\u672a\u6b63\u78ba\u8655\u7406\u4f9d\u8cf4\u65bc\u8a72\u985e\u578b\u7684\u6240\u6709\u8868\u3002<\/li>\n<li>\u5728\u591a\u500b\u7528\u6236\u6216\u61c9\u7528\u7a0b\u5e8f\u540c\u6642\u8a2a\u554f\u6578\u64da\u5eab\u6642\uff0c\u53ef\u80fd\u6703\u51fa\u73fe\u7248\u672c\u4e0d\u4e00\u81f4\u7684\u60c5\u6cc1\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%a6%82%e4%bd%95%e8%ad%98%e5%88%a5-ora-22340-%e9%8c%af%e8%aa%a4-oJryhkhhMv\">\u5982\u4f55\u8b58\u5225 ORA-22340 \u932f\u8aa4<\/h2>\n<p>\u7576\u60a8\u9047\u5230 <code>ORA-22340<\/code> \u932f\u8aa4\u6642\uff0cOracle \u6578\u64da\u5eab\u6703\u8fd4\u56de\u4e00\u689d\u932f\u8aa4\u6d88\u606f\uff0c\u901a\u5e38\u5305\u542b\u4ee5\u4e0b\u4fe1\u606f\uff1a<\/p>\n<pre>\nORA-22340: \u7121\u6cd5\u5c07\u985e\u578b \u201cstring\u201d.\u201dstring\u201d \u9032\u884c string\u3002\u4f9d\u8cf4\u8868\u5fc5\u9808\u5347\u7d1a\u5230\u6700\u65b0\u7248\u672c\n<\/pre>\n<p>\u9019\u689d\u6d88\u606f\u6307\u51fa\u4e86\u5177\u9ad4\u7684\u985e\u578b\u548c\u64cd\u4f5c\uff0c\u5e6b\u52a9\u958b\u767c\u8005\u5feb\u901f\u5b9a\u4f4d\u554f\u984c\u6240\u5728\u3002<\/p>\n<h2 id=\"%e8%a7%a3%e6%b1%ba-ora-22340-%e9%8c%af%e8%aa%a4%e7%9a%84%e6%96%b9%e6%b3%95-oJryhkhhMv\">\u89e3\u6c7a ORA-22340 \u932f\u8aa4\u7684\u65b9\u6cd5<\/h2>\n<p>\u8981\u89e3\u6c7a <code>ORA-22340<\/code> \u932f\u8aa4\uff0c\u60a8\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\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-oJryhkhhMv\">1. \u78ba\u8a8d\u5c0d\u8c61\u985e\u578b\u7684\u7248\u672c<\/h3>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u78ba\u8a8d\u51fa\u73fe\u932f\u8aa4\u7684\u5c0d\u8c61\u985e\u578b\u7684\u7248\u672c\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b SQL \u67e5\u8a62\u4f86\u6aa2\u67e5\u5c0d\u8c61\u985e\u578b\u7684\u7248\u672c\uff1a<\/p>\n<pre><code>\nSELECT type_name, type_id, created, last_ddl_time\nFROM user_types\nWHERE type_name = 'YOUR_TYPE_NAME';\n<\/code><\/pre>\n<h3 id=\"2-%e5%8d%87%e7%b4%9a%e4%be%9d%e8%b3%b4%e8%a1%a8-oJryhkhhMv\">2. \u5347\u7d1a\u4f9d\u8cf4\u8868<\/h3>\n<p>\u5982\u679c\u767c\u73fe\u4f9d\u8cf4\u65bc\u8a72\u985e\u578b\u7684\u8868\u672a\u5347\u7d1a\uff0c\u60a8\u9700\u8981\u57f7\u884c\u4ee5\u4e0b\u64cd\u4f5c\u4f86\u5347\u7d1a\u9019\u4e9b\u8868\uff1a<\/p>\n<pre><code>\nALTER TABLE your_table_name\n    MODIFY your_column_name your_type_name;\n<\/code><\/pre>\n<p>\u9019\u6a23\u53ef\u4ee5\u78ba\u4fdd\u8868\u7684\u7d50\u69cb\u8207\u5c0d\u8c61\u985e\u578b\u4fdd\u6301\u4e00\u81f4\u3002<\/p>\n<h3 id=\"3-%e6%b8%ac%e8%a9%a6%e5%92%8c%e9%a9%97%e8%ad%89-oJryhkhhMv\">3. \u6e2c\u8a66\u548c\u9a57\u8b49<\/h3>\n<p>\u5728\u5b8c\u6210\u5347\u7d1a\u5f8c\uff0c\u9032\u884c\u6e2c\u8a66\u4ee5\u78ba\u4fdd\u554f\u984c\u5df2\u89e3\u6c7a\u3002\u53ef\u4ee5\u5617\u8a66\u91cd\u65b0\u57f7\u884c\u4e4b\u524d\u5c0e\u81f4\u932f\u8aa4\u7684\u64cd\u4f5c\uff0c\u6aa2\u67e5\u662f\u5426\u4ecd\u7136\u51fa\u73fe <code>ORA-22340<\/code> \u932f\u8aa4\u3002<\/p>\n<h2 id=\"%e9%81%a0%e7%a8%8b%e8%99%95%e7%90%86-ora-22340-%e9%8c%af%e8%aa%a4-oJryhkhhMv\">\u9060\u7a0b\u8655\u7406 ORA-22340 \u932f\u8aa4<\/h2>\n<p>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u60a8\u53ef\u80fd\u7121\u6cd5\u76f4\u63a5\u8a2a\u554f\u6578\u64da\u5eab\u9032\u884c\u4fee\u5fa9\u3002\u9019\u6642\uff0c\u9060\u7a0b\u8655\u7406\u6210\u70ba\u4e00\u500b\u6709\u6548\u7684\u9078\u64c7\u3002\u60a8\u53ef\u4ee5\u8003\u616e\u4ee5\u4e0b\u65b9\u6cd5\uff1a<\/p>\n<ul>\n<li>\u4f7f\u7528\u9060\u7a0b\u684c\u9762\u5de5\u5177\u9023\u63a5\u5230\u6578\u64da\u5eab\u670d\u52d9\u5668\uff0c\u9032\u884c\u5fc5\u8981\u7684\u64cd\u4f5c\u3002<\/li>\n<li>\u901a\u904e SSH \u9023\u63a5\u5230\u670d\u52d9\u5668\uff0c\u57f7\u884c SQL \u67e5\u8a62\u548c\u547d\u4ee4\u3002<\/li>\n<li>\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662f\u96f2\u670d\u52d9\uff0c\u8acb\u6aa2\u67e5\u63d0\u4f9b\u7684\u7ba1\u7406\u63a7\u5236\u53f0\u662f\u5426\u652f\u6301\u9060\u7a0b\u64cd\u4f5c\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-oJryhkhhMv\">\u7e3d\u7d50<\/h2>\n<p>\u5728 Oracle \u6578\u64da\u5eab\u4e2d\uff0c<code>ORA-22340<\/code> \u932f\u8aa4\u901a\u5e38\u662f\u7531\u65bc\u5c0d\u8c61\u985e\u578b\u7684\u4f9d\u8cf4\u8868\u672a\u5347\u7d1a\u6240\u5f15\u8d77\u7684\u3002\u901a\u904e\u78ba\u8a8d\u5c0d\u8c61\u985e\u578b\u7684\u7248\u672c\u3001\u5347\u7d1a\u4f9d\u8cf4\u8868\u4ee5\u53ca\u9032\u884c\u6e2c\u8a66\uff0c\u60a8\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u5982\u679c\u60a8\u9700\u8981\u9032\u4e00\u6b65\u7684\u652f\u6301\u6216\u89e3\u6c7a\u65b9\u6848\uff0c\u8003\u616e\u4f7f\u7528 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u670d\u52d9\u4f86\u7372\u5f97\u66f4\u597d\u7684\u6578\u64da\u5eab\u7ba1\u7406\u548c\u652f\u6301\u3002\u7121\u8ad6\u662f\u96f2\u670d\u52d9\u9084\u662f\u672c\u5730\u670d\u52d9\u5668\uff0c\u9078\u64c7\u5408\u9069\u7684\u89e3\u6c7a\u65b9\u6848\u5c07\u6709\u52a9\u65bc\u63d0\u9ad8\u60a8\u7684\u6578\u64da\u5eab\u6027\u80fd\u548c\u7a69\u5b9a\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u6c7a ORA-22340 \u932f\u8aa4\uff1a\u7121\u6cd5\u5c07\u985e\u578b\u9032\u884c string\uff0c\u4f9d\u8cf4\u8868\u9700\u5347\u7d1a\u81f3\u6700\u65b0\u7248\u672c\uff0c\u63d0\u4f9b\u6545\u969c\u4fee\u5fa9\u8207\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-87896","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/87896","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=87896"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/87896\/revisions"}],"predecessor-version":[{"id":87897,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/87896\/revisions\/87897"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=87896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=87896"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=87896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}