{"id":91090,"date":"2024-10-18T18:17:20","date_gmt":"2024-10-18T10:17:20","guid":{"rendered":"https:\/\/server.hk\/cnblog\/91090\/"},"modified":"2024-10-18T18:17:20","modified_gmt":"2024-10-18T10:17:20","slug":"ora-29706-%e5%8f%83%e6%95%b8-active_instance_count-%e7%9a%84%e5%80%bc-string-%e4%b8%8d%e6%ad%a3%e7%a2%ba-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","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/91090\/","title":{"rendered":"ORA-29706: \u53c3\u6578 ACTIVE_INSTANCE_COUNT \u7684\u503c string \u4e0d\u6b63\u78ba ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-29706-%e5%8f%83%e6%95%b8-active_instance_count-%e7%9a%84%e5%80%bc-string-%e4%b8%8d%e6%ad%a3%e7%a2%ba-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-gfqwSGnvWj\">ORA-29706: \u53c3\u6578 ACTIVE_INSTANCE_COUNT \u7684\u503c string \u4e0d\u6b63\u78ba 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\u53ef\u80fd\u6703\u9047\u5230\u5404\u7a2e\u932f\u8aa4\u4ee3\u78bc\uff0c\u5176\u4e2d\u4e4b\u4e00\u5c31\u662f ORA-29706\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8207 Oracle \u6578\u64da\u5eab\u7684\u5be6\u4f8b\u6578\u91cf\u914d\u7f6e\u6709\u95dc\uff0c\u7279\u5225\u662f\u53c3\u6578 <code>ACTIVE_INSTANCE_COUNT<\/code> \u7684\u8a2d\u7f6e\u4e0d\u6b63\u78ba\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u9019\u500b\u932f\u8aa4\u7684\u539f\u56e0\u3001\u5f71\u97ff\u4ee5\u53ca\u5982\u4f55\u9032\u884c\u6545\u969c\u4fee\u5fa9\u3002<\/p>\n<h2 id=\"ora-29706-%e9%8c%af%e8%aa%a4%e6%a6%82%e8%bf%b0-gfqwSGnvWj\">ORA-29706 \u932f\u8aa4\u6982\u8ff0<\/h2>\n<p>ORA-29706 \u932f\u8aa4\u7684\u5b8c\u6574\u4fe1\u606f\u901a\u5e38\u70ba\uff1a\u201cORA-29706: \u53c3\u6578 ACTIVE_INSTANCE_COUNT \u7684\u503c string \u4e0d\u6b63\u78ba\u201d\u3002\u9019\u610f\u5473\u8457 Oracle \u6578\u64da\u5eab\u5728\u555f\u52d5\u6216\u904b\u884c\u6642\u6aa2\u6e2c\u5230 <code>ACTIVE_INSTANCE_COUNT<\/code> \u7684\u503c\u4e0d\u7b26\u5408\u9810\u671f\u3002\u9019\u500b\u53c3\u6578\u7528\u65bc\u5b9a\u7fa9\u7576\u524d\u6d3b\u52d5\u7684\u5be6\u4f8b\u6578\u91cf\uff0c\u5c0d\u65bc\u96c6\u7fa4\u74b0\u5883\u5c24\u70ba\u91cd\u8981\u3002<\/p>\n<h2 id=\"%e9%8c%af%e8%aa%a4%e5%8e%9f%e5%9b%a0-gfqwSGnvWj\">\u932f\u8aa4\u539f\u56e0<\/h2>\n<p>\u9020\u6210 ORA-29706 \u932f\u8aa4\u7684\u539f\u56e0\u4e3b\u8981\u6709\u4ee5\u4e0b\u5e7e\u500b\uff1a<\/p>\n<ul>\n<li><strong>\u914d\u7f6e\u932f\u8aa4\uff1a<\/strong>\u5728 Oracle RAC\uff08Real Application Clusters\uff09\u74b0\u5883\u4e2d\uff0c<code>ACTIVE_INSTANCE_COUNT<\/code> \u7684\u503c\u5fc5\u9808\u8207\u5be6\u969b\u904b\u884c\u7684\u5be6\u4f8b\u6578\u91cf\u76f8\u7b26\u3002\u5982\u679c\u914d\u7f6e\u6587\u4ef6\u4e2d\u8a2d\u7f6e\u7684\u503c\u8207\u5be6\u969b\u60c5\u6cc1\u4e0d\u7b26\uff0c\u5c31\u6703\u5c0e\u81f4\u6b64\u932f\u8aa4\u3002<\/li>\n<li><strong>\u5be6\u4f8b\u6545\u969c\uff1a<\/strong>\u5982\u679c\u67d0\u500b\u5be6\u4f8b\u56e0\u6545\u969c\u800c\u7121\u6cd5\u6b63\u5e38\u904b\u884c\uff0c\u5247 <code>ACTIVE_INSTANCE_COUNT<\/code> \u7684\u503c\u53ef\u80fd\u6703\u4e0d\u6b63\u78ba\uff0c\u5f9e\u800c\u5f15\u767c\u932f\u8aa4\u3002<\/li>\n<li><strong>\u7248\u672c\u4e0d\u517c\u5bb9\uff1a<\/strong>\u4e0d\u540c\u7248\u672c\u7684 Oracle \u6578\u64da\u5eab\u5c0d\u65bc\u53c3\u6578\u7684\u8981\u6c42\u53ef\u80fd\u6709\u6240\u4e0d\u540c\uff0c\u5347\u7d1a\u6216\u964d\u7d1a\u5f8c\u672a\u80fd\u6b63\u78ba\u914d\u7f6e\u53c3\u6578\u4e5f\u53ef\u80fd\u5c0e\u81f4\u6b64\u932f\u8aa4\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-gfqwSGnvWj\">\u6545\u969c\u4fee\u5fa9\u6b65\u9a5f<\/h2>\n<p>\u7576\u9047\u5230 ORA-29706 \u932f\u8aa4\u6642\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\u6545\u969c\u6392\u9664\u548c\u4fee\u5fa9\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5%e7%95%b6%e5%89%8d%e5%af%a6%e4%be%8b%e7%8b%80%e6%85%8b-gfqwSGnvWj\">1. \u6aa2\u67e5\u7576\u524d\u5be6\u4f8b\u72c0\u614b<\/h3>\n<pre><code>SELECT INSTANCE_NAME, STATUS FROM V$INSTANCE;<\/code><\/pre>\n<p>\u4f7f\u7528\u4e0a\u8ff0 SQL \u67e5\u8a62\u4f86\u6aa2\u67e5\u7576\u524d\u6240\u6709\u5be6\u4f8b\u7684\u72c0\u614b\uff0c\u78ba\u4fdd\u6240\u6709\u61c9\u8a72\u904b\u884c\u7684\u5be6\u4f8b\u90fd\u5728\u904b\u884c\u4e2d\u3002<\/p>\n<h3 id=\"2-%e6%aa%a2%e6%9f%a5%e5%8f%83%e6%95%b8%e8%a8%ad%e7%bd%ae-gfqwSGnvWj\">2. \u6aa2\u67e5\u53c3\u6578\u8a2d\u7f6e<\/h3>\n<pre><code>SHOW PARAMETER ACTIVE_INSTANCE_COUNT;<\/code><\/pre>\n<p>\u6aa2\u67e5 <code>ACTIVE_INSTANCE_COUNT<\/code> \u7684\u7576\u524d\u8a2d\u7f6e\uff0c\u78ba\u4fdd\u5176\u503c\u8207\u5be6\u969b\u904b\u884c\u7684\u5be6\u4f8b\u6578\u91cf\u76f8\u7b26\u3002\u5982\u679c\u4e0d\u76f8\u7b26\uff0c\u5247\u9700\u8981\u9032\u884c\u8abf\u6574\u3002<\/p>\n<h3 id=\"3-%e4%bf%ae%e6%94%b9%e5%8f%83%e6%95%b8%e5%80%bc-gfqwSGnvWj\">3. \u4fee\u6539\u53c3\u6578\u503c<\/h3>\n<p>\u5982\u679c\u767c\u73fe <code>ACTIVE_INSTANCE_COUNT<\/code> \u7684\u503c\u4e0d\u6b63\u78ba\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u9032\u884c\u4fee\u6539\uff1a<\/p>\n<pre><code>ALTER SYSTEM SET ACTIVE_INSTANCE_COUNT = n;<\/code><\/pre>\n<p>\u5176\u4e2d <code>n<\/code> \u662f\u7576\u524d\u6d3b\u52d5\u5be6\u4f8b\u7684\u6578\u91cf\u3002\u8acb\u6ce8\u610f\uff0c\u9019\u4e00\u64cd\u4f5c\u9700\u8981\u5728\u6240\u6709\u5be6\u4f8b\u4e0a\u9032\u884c\u3002<\/p>\n<h3 id=\"4-%e9%87%8d%e5%95%9f%e5%af%a6%e4%be%8b-gfqwSGnvWj\">4. \u91cd\u555f\u5be6\u4f8b<\/h3>\n<p>\u5728\u4fee\u6539\u53c3\u6578\u5f8c\uff0c\u53ef\u80fd\u9700\u8981\u91cd\u555f Oracle \u5be6\u4f8b\u4ee5\u4f7f\u66f4\u6539\u751f\u6548\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u9032\u884c\u91cd\u555f\uff1a<\/p>\n<pre><code>SHUTDOWN IMMEDIATE;\nSTARTUP;<\/code><\/pre>\n<h2 id=\"%e9%81%a0%e7%a8%8b%e8%99%95%e7%90%86%e5%bb%ba%e8%ad%b0-gfqwSGnvWj\">\u9060\u7a0b\u8655\u7406\u5efa\u8b70<\/h2>\n<p>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u9032\u884c\u9060\u7a0b\u8655\u7406\u4f86\u89e3\u6c7a ORA-29706 \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\u5de5\u5177\uff1a<\/strong>\u5982 TeamViewer \u6216 AnyDesk\uff0c\u9060\u7a0b\u9023\u63a5\u5230\u6578\u64da\u5eab\u670d\u52d9\u5668\uff0c\u9032\u884c\u6545\u969c\u6392\u9664\u3002<\/li>\n<li><strong>\u4f7f\u7528 SSH \u9023\u63a5\uff1a<\/strong>\u5982\u679c\u670d\u52d9\u5668\u652f\u6301 SSH\uff0c\u53ef\u4ee5\u901a\u904e\u547d\u4ee4\u884c\u9032\u884c\u64cd\u4f5c\uff0c\u6aa2\u67e5\u5be6\u4f8b\u72c0\u614b\u548c\u53c3\u6578\u8a2d\u7f6e\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-gfqwSGnvWj\">\u7e3d\u7d50<\/h2>\n<p>ORA-29706 \u932f\u8aa4\u901a\u5e38\u8207 Oracle \u6578\u64da\u5eab\u7684\u5be6\u4f8b\u914d\u7f6e\u6709\u95dc\uff0c\u901a\u904e\u6aa2\u67e5\u5be6\u4f8b\u72c0\u614b\u548c\u53c3\u6578\u8a2d\u7f6e\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u9032\u884c\u6545\u969c\u6392\u9664\u3002\u5c0d\u65bc\u9700\u8981\u9ad8\u53ef\u7528\u6027\u7684\u74b0\u5883\uff0c\u6b63\u78ba\u914d\u7f6e <code>ACTIVE_INSTANCE_COUNT<\/code> \u662f\u81f3\u95dc\u91cd\u8981\u7684\u3002\u82e5\u60a8\u9700\u8981\u9032\u4e00\u6b65\u7684\u652f\u6301\u6216\u89e3\u6c7a\u65b9\u6848\uff0c\u8acb\u8003\u616e\u4f7f\u7528 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u670d\u52d9\uff0c\u4ee5\u78ba\u4fdd\u60a8\u7684\u6578\u64da\u5eab\u74b0\u5883\u7a69\u5b9a\u904b\u884c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u6c7a ORA-29706 \u932f\u8aa4\uff0c\u4fee\u5fa9 ACTIVE_INSTANCE_COUNT \u53c3\u6578\u4e0d\u6b63\u78ba\u554f\u984c\uff0c\u63d0\u4f9b\u6709\u6548\u7684\u9060\u7a0b\u8655\u7406\u65b9\u6848\uff0c\u78ba\u4fdd Oracle \u7cfb\u7d71\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-91090","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/91090","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=91090"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/91090\/revisions"}],"predecessor-version":[{"id":91091,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/91090\/revisions\/91091"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=91090"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=91090"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=91090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}