{"id":81778,"date":"2024-10-16T18:14:15","date_gmt":"2024-10-16T10:14:15","guid":{"rendered":"https:\/\/server.hk\/cnblog\/81778\/"},"modified":"2024-10-16T18:14:16","modified_gmt":"2024-10-16T10:14:16","slug":"ora-00405-compatibility-type-string-oracle%e5%a0%b1%e9%8c%af%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9%e9%81%a0%e7%a8%8b%e8%99%95%e7%90%86","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/81778\/","title":{"rendered":"ORA-00405: compatibility type \u201cstring\u201d ORACLE\u5831\u932f\u6545\u969c\u4fee\u5fa9\u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-00405-compatibility-type-string-oracle%e5%a0%b1%e9%8c%af%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9%e9%81%a0%e7%a8%8b%e8%99%95%e7%90%86-wHReZxGeSD\">ORA-00405: compatibility type \u201cstring\u201d ORACLE\u5831\u932f\u6545\u969c\u4fee\u5fa9\u9060\u7a0b\u8655\u7406<\/h1>\n<p>\u5728\u4f7f\u7528Oracle\u6578\u64da\u5eab\u7684\u904e\u7a0b\u4e2d\uff0c\u958b\u767c\u8005\u548c\u7cfb\u7d71\u7ba1\u7406\u54e1\u53ef\u80fd\u6703\u9047\u5230\u5404\u7a2e\u932f\u8aa4\u4ee3\u78bc\uff0c\u5176\u4e2d\u4e4b\u4e00\u4fbf\u662fORA-00405\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8207\u6578\u64da\u5eab\u7684\u517c\u5bb9\u6027\u8a2d\u7f6e\u6709\u95dc\uff0c\u7279\u5225\u662f\u5728\u9032\u884c\u6578\u64da\u5eab\u5347\u7d1a\u6216\u9077\u79fb\u6642\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0eORA-00405\u932f\u8aa4\u7684\u6210\u56e0\u3001\u5f71\u97ff\u53ca\u5176\u4fee\u5fa9\u65b9\u6cd5\u3002<\/p>\n<h2 id=\"ora-00405%e9%8c%af%e8%aa%a4%e7%9a%84%e6%88%90%e5%9b%a0-wHReZxGeSD\">ORA-00405\u932f\u8aa4\u7684\u6210\u56e0<\/h2>\n<p>ORA-00405\u932f\u8aa4\u7684\u5177\u9ad4\u4fe1\u606f\u70ba\u201ccompatibility type &#8216;string&#8217;\u201d\u3002\u9019\u610f\u5473\u8457\u7576\u524d\u6578\u64da\u5eab\u7684\u517c\u5bb9\u6027\u8a2d\u7f6e\u8207\u6240\u9700\u7684\u517c\u5bb9\u6027\u8a2d\u7f6e\u4e0d\u5339\u914d\u3002\u9019\u7a2e\u60c5\u6cc1\u901a\u5e38\u767c\u751f\u5728\u4ee5\u4e0b\u5e7e\u7a2e\u60c5\u6cc1\u4e0b\uff1a<\/p>\n<ul>\n<li><strong>\u6578\u64da\u5eab\u5347\u7d1a\uff1a<\/strong>\u5728\u5347\u7d1aOracle\u6578\u64da\u5eab\u7248\u672c\u6642\uff0c\u53ef\u80fd\u6703\u51fa\u73fe\u517c\u5bb9\u6027\u8a2d\u7f6e\u4e0d\u4e00\u81f4\u7684\u60c5\u6cc1\u3002<\/li>\n<li><strong>\u6578\u64da\u5eab\u9077\u79fb\uff1a<\/strong>\u5c07\u6578\u64da\u5eab\u5f9e\u4e00\u500b\u74b0\u5883\u9077\u79fb\u5230\u53e6\u4e00\u500b\u74b0\u5883\u6642\uff0c\u53ef\u80fd\u6703\u56e0\u70ba\u4e0d\u540c\u7684\u517c\u5bb9\u6027\u8a2d\u7f6e\u800c\u5c0e\u81f4\u932f\u8aa4\u3002<\/li>\n<li><strong>\u914d\u7f6e\u6587\u4ef6\u932f\u8aa4\uff1a<\/strong>\u5728\u6578\u64da\u5eab\u7684\u521d\u59cb\u5316\u53c3\u6578\u4e2d\uff0c\u53ef\u80fd\u5b58\u5728\u4e0d\u6b63\u78ba\u7684\u517c\u5bb9\u6027\u8a2d\u7f6e\u3002<\/li>\n<\/ul>\n<h2 id=\"ora-00405%e9%8c%af%e8%aa%a4%e7%9a%84%e5%bd%b1%e9%9f%bf-wHReZxGeSD\">ORA-00405\u932f\u8aa4\u7684\u5f71\u97ff<\/h2>\n<p>\u7576\u51fa\u73feORA-00405\u932f\u8aa4\u6642\uff0c\u6578\u64da\u5eab\u5c07\u7121\u6cd5\u6b63\u5e38\u555f\u52d5\u6216\u904b\u884c\uff0c\u9019\u6703\u5c0d\u696d\u52d9\u904b\u4f5c\u9020\u6210\u5f71\u97ff\u3002\u5177\u9ad4\u5f71\u97ff\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>\u7121\u6cd5\u8a2a\u554f\u6578\u64da\u5eab\u4e2d\u7684\u6578\u64da\uff0c\u5c0e\u81f4\u61c9\u7528\u7a0b\u5e8f\u7121\u6cd5\u6b63\u5e38\u904b\u884c\u3002<\/li>\n<li>\u53ef\u80fd\u9700\u8981\u9032\u884c\u984d\u5916\u7684\u6545\u969c\u6392\u9664\u548c\u4fee\u5fa9\u5de5\u4f5c\uff0c\u589e\u52a0\u4e86\u7cfb\u7d71\u7ba1\u7406\u7684\u8ca0\u64d4\u3002<\/li>\n<li>\u696d\u52d9\u904b\u4f5c\u7684\u4e2d\u65b7\u53ef\u80fd\u6703\u5c0e\u81f4\u7d93\u6fdf\u640d\u5931\u3002<\/li>\n<\/ul>\n<h2 id=\"%e4%bf%ae%e5%be%a9ora-00405%e9%8c%af%e8%aa%a4%e7%9a%84%e6%96%b9%e6%b3%95-wHReZxGeSD\">\u4fee\u5fa9ORA-00405\u932f\u8aa4\u7684\u65b9\u6cd5<\/h2>\n<p>\u4fee\u5fa9ORA-00405\u932f\u8aa4\u7684\u904e\u7a0b\u901a\u5e38\u6d89\u53ca\u4ee5\u4e0b\u5e7e\u500b\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5%e5%85%bc%e5%ae%b9%e6%80%a7%e8%a8%ad%e7%bd%ae-wHReZxGeSD\">1. \u6aa2\u67e5\u517c\u5bb9\u6027\u8a2d\u7f6e<\/h3>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u6aa2\u67e5\u7576\u524d\u6578\u64da\u5eab\u7684\u517c\u5bb9\u6027\u8a2d\u7f6e\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0bSQL\u67e5\u8a62\u4f86\u67e5\u770b\u7576\u524d\u7684\u517c\u5bb9\u6027\u8a2d\u7f6e\uff1a<\/p>\n<pre><code>SELECT value FROM v$parameter WHERE name = 'compatible';<\/code><\/pre>\n<p>\u6839\u64da\u67e5\u8a62\u7d50\u679c\uff0c\u60a8\u53ef\u4ee5\u78ba\u5b9a\u7576\u524d\u7684\u517c\u5bb9\u6027\u8a2d\u7f6e\u662f\u5426\u7b26\u5408\u8981\u6c42\u3002<\/p>\n<h3 id=\"2-%e4%bf%ae%e6%94%b9%e5%85%bc%e5%ae%b9%e6%80%a7%e8%a8%ad%e7%bd%ae-wHReZxGeSD\">2. \u4fee\u6539\u517c\u5bb9\u6027\u8a2d\u7f6e<\/h3>\n<p>\u5982\u679c\u767c\u73fe\u517c\u5bb9\u6027\u8a2d\u7f6e\u4e0d\u6b63\u78ba\uff0c\u60a8\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0bSQL\u547d\u4ee4\u4f86\u4fee\u6539\u5b83\uff1a<\/p>\n<pre><code>ALTER SYSTEM SET compatible = 'desired_version' SCOPE=SPFILE;<\/code><\/pre>\n<p>\u8acb\u5c07&#8217;desired_version&#8217;\u66ff\u63db\u70ba\u6240\u9700\u7684\u7248\u672c\u865f\u3002\u4fee\u6539\u5f8c\uff0c\u60a8\u9700\u8981\u91cd\u555f\u6578\u64da\u5eab\u4ee5\u4f7f\u66f4\u6539\u751f\u6548\u3002<\/p>\n<h3 id=\"3-%e6%aa%a2%e6%9f%a5%e5%88%9d%e5%a7%8b%e5%8c%96%e5%8f%83%e6%95%b8-wHReZxGeSD\">3. \u6aa2\u67e5\u521d\u59cb\u5316\u53c3\u6578<\/h3>\n<p>\u78ba\u4fdd\u6240\u6709\u76f8\u95dc\u7684\u521d\u59cb\u5316\u53c3\u6578\u90fd\u6b63\u78ba\u914d\u7f6e\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u67e5\u8a62\u4f86\u6aa2\u67e5\u6240\u6709\u521d\u59cb\u5316\u53c3\u6578\uff1a<\/p>\n<pre><code>SHOW PARAMETER;<\/code><\/pre>\n<p>\u6839\u64da\u9700\u8981\u9032\u884c\u8abf\u6574\uff0c\u78ba\u4fdd\u6240\u6709\u53c3\u6578\u90fd\u7b26\u5408\u7576\u524d\u7684\u6578\u64da\u5eab\u7248\u672c\u548c\u9700\u6c42\u3002<\/p>\n<h3 id=\"4-%e6%b8%ac%e8%a9%a6%e6%95%b8%e6%93%9a%e5%ba%ab-wHReZxGeSD\">4. \u6e2c\u8a66\u6578\u64da\u5eab<\/h3>\n<p>\u5728\u5b8c\u6210\u4e0a\u8ff0\u6b65\u9a5f\u5f8c\uff0c\u91cd\u65b0\u555f\u52d5\u6578\u64da\u5eab\u4e26\u9032\u884c\u6e2c\u8a66\uff0c\u4ee5\u78ba\u4fdd\u554f\u984c\u5df2\u7d93\u89e3\u6c7a\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u555f\u52d5\u6578\u64da\u5eab\uff1a<\/p>\n<pre><code>STARTUP;<\/code><\/pre>\n<p>\u5982\u679c\u6578\u64da\u5eab\u6210\u529f\u555f\u52d5\u4e14\u7121\u5176\u4ed6\u932f\u8aa4\uff0c\u5247\u8868\u793a\u554f\u984c\u5df2\u7d93\u89e3\u6c7a\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-wHReZxGeSD\">\u7e3d\u7d50<\/h2>\n<p>ORA-00405\u932f\u8aa4\u901a\u5e38\u8207\u6578\u64da\u5eab\u7684\u517c\u5bb9\u6027\u8a2d\u7f6e\u6709\u95dc\uff0c\u901a\u904e\u6aa2\u67e5\u548c\u4fee\u6539\u76f8\u95dc\u8a2d\u7f6e\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u5c0d\u65bc\u4f7f\u7528Oracle\u6578\u64da\u5eab\u7684\u7528\u6236\u4f86\u8aaa\uff0c\u4e86\u89e3\u9019\u4e9b\u932f\u8aa4\u53ca\u5176\u4fee\u5fa9\u65b9\u6cd5\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u82e5\u60a8\u9700\u8981\u9032\u4e00\u6b65\u7684\u652f\u6301\u6216\u5c0b\u627e\u5408\u9069\u7684\u89e3\u6c7a\u65b9\u6848\uff0c\u8003\u616e\u4f7f\u7528<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u6216\u5176\u4ed6\u76f8\u95dc\u670d\u52d9\uff0c\u4ee5\u78ba\u4fdd\u60a8\u7684\u6578\u64da\u5eab\u904b\u884c\u7a69\u5b9a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to troubleshoot and resolve ORA-00405: compatibility type &#8220;string&#8221; errors in Oracle with our remote handling guide.<\/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-81778","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/81778","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=81778"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/81778\/revisions"}],"predecessor-version":[{"id":81779,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/81778\/revisions\/81779"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=81778"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=81778"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=81778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}