{"id":81586,"date":"2024-10-16T17:05:18","date_gmt":"2024-10-16T09:05:18","guid":{"rendered":"https:\/\/server.hk\/cnblog\/81586\/"},"modified":"2024-10-16T17:05:18","modified_gmt":"2024-10-16T09:05:18","slug":"ora-00226-operation-disallowed-while-alternate-control-file-open-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\/81586\/","title":{"rendered":"ORA-00226: operation disallowed while alternate control file open ORACLE\u5831\u932f\u6545\u969c\u4fee\u5fa9\u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-00226-operation-disallowed-while-alternate-control-file-open-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-OrjepjUhjw\">ORA-00226: operation disallowed while alternate control file open 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\u7ba1\u7406\u54e1\u53ef\u80fd\u6703\u9047\u5230\u5404\u7a2e\u932f\u8aa4\u4ee3\u78bc\uff0c\u5176\u4e2d\u4e4b\u4e00\u5c31\u662fORA-00226\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u51fa\u73fe\u5728\u5617\u8a66\u57f7\u884c\u67d0\u4e9b\u64cd\u4f5c\u6642\uff0c\u800c\u6b64\u6642\u66ff\u4ee3\u63a7\u5236\u6587\u4ef6\u5df2\u7d93\u88ab\u6253\u958b\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0eORA-00226\u7684\u539f\u56e0\u3001\u5f71\u97ff\u4ee5\u53ca\u5982\u4f55\u9032\u884c\u6545\u969c\u4fee\u5fa9\u3002<\/p>\n<h2 id=\"ora-00226%e7%9a%84%e5%8e%9f%e5%9b%a0-OrjepjUhjw\">ORA-00226\u7684\u539f\u56e0<\/h2>\n<p>ORA-00226\u932f\u8aa4\u7684\u4e3b\u8981\u539f\u56e0\u662fOracle\u6578\u64da\u5eab\u5728\u5617\u8a66\u57f7\u884c\u67d0\u4e9b\u64cd\u4f5c\u6642\uff0c\u767c\u73fe\u66ff\u4ee3\u63a7\u5236\u6587\u4ef6\u5df2\u7d93\u8655\u65bc\u6253\u958b\u72c0\u614b\u3002\u9019\u901a\u5e38\u767c\u751f\u5728\u4ee5\u4e0b\u60c5\u6cc1\uff1a<\/p>\n<ul>\n<li>\u6578\u64da\u5eab\u5728\u555f\u52d5\u904e\u7a0b\u4e2d\uff0c\u63a7\u5236\u6587\u4ef6\u7121\u6cd5\u6b63\u5e38\u8b80\u53d6\u3002<\/li>\n<li>\u6578\u64da\u5eab\u7684\u63a7\u5236\u6587\u4ef6\u640d\u58de\uff0c\u5c0e\u81f4Oracle\u81ea\u52d5\u5207\u63db\u5230\u66ff\u4ee3\u63a7\u5236\u6587\u4ef6\u3002<\/li>\n<li>\u5728\u57f7\u884c\u67d0\u4e9bDDL\uff08\u6578\u64da\u5b9a\u7fa9\u8a9e\u8a00\uff09\u64cd\u4f5c\u6642\uff0c\u6578\u64da\u5eab\u4ecd\u5728\u4f7f\u7528\u66ff\u4ee3\u63a7\u5236\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%bd%b1%e9%9f%bf-OrjepjUhjw\">\u5f71\u97ff<\/h2>\n<p>\u7576\u51fa\u73feORA-00226\u932f\u8aa4\u6642\uff0c\u6578\u64da\u5eab\u7684\u67d0\u4e9b\u64cd\u4f5c\u5c07\u7121\u6cd5\u57f7\u884c\uff0c\u9019\u53ef\u80fd\u6703\u5f71\u97ff\u5230\u696d\u52d9\u7684\u6b63\u5e38\u904b\u884c\u3002\u7279\u5225\u662f\u5728\u9ad8\u53ef\u7528\u6027\u74b0\u5883\u4e2d\uff0c\u9019\u7a2e\u932f\u8aa4\u53ef\u80fd\u5c0e\u81f4\u7cfb\u7d71\u505c\u6a5f\uff0c\u9032\u800c\u5f71\u97ff\u5230\u7528\u6236\u7684\u9ad4\u9a57\u548c\u6578\u64da\u7684\u5b8c\u6574\u6027\u3002<\/p>\n<h2 id=\"%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9%e6%ad%a5%e9%a9%9f-OrjepjUhjw\">\u6545\u969c\u4fee\u5fa9\u6b65\u9a5f<\/h2>\n<p>\u4fee\u5fa9ORA-00226\u932f\u8aa4\u7684\u904e\u7a0b\u901a\u5e38\u6d89\u53ca\u4ee5\u4e0b\u5e7e\u500b\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e7%a2%ba%e8%aa%8d%e6%8e%a7%e5%88%b6%e6%96%87%e4%bb%b6%e7%9a%84%e7%8b%80%e6%85%8b-OrjepjUhjw\">1. \u78ba\u8a8d\u63a7\u5236\u6587\u4ef6\u7684\u72c0\u614b<\/h3>\n<pre><code>SQL&gt; SELECT name, status FROM v$controlfile;<\/code><\/pre>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u6aa2\u67e5\u63a7\u5236\u6587\u4ef6\u7684\u72c0\u614b\uff0c\u4ee5\u78ba\u4fdd\u5b83\u5011\u662f\u53ef\u7528\u7684\u3002\u5982\u679c\u63a7\u5236\u6587\u4ef6\u986f\u793a\u70ba\u201cOPEN\u201d\uff0c\u5247\u9700\u8981\u9032\u4e00\u6b65\u8abf\u67e5\u3002<\/p>\n<h3 id=\"2-%e9%97%9c%e9%96%89%e6%95%b8%e6%93%9a%e5%ba%ab-OrjepjUhjw\">2. \u95dc\u9589\u6578\u64da\u5eab<\/h3>\n<p>\u5982\u679c\u63a7\u5236\u6587\u4ef6\u7684\u72c0\u614b\u4e0d\u6b63\u5e38\uff0c\u60a8\u9700\u8981\u95dc\u9589\u6578\u64da\u5eab\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>SQL&gt; SHUTDOWN IMMEDIATE;<\/code><\/pre>\n<h3 id=\"3-%e4%bd%bf%e7%94%a8%e6%ad%a3%e7%a2%ba%e7%9a%84%e6%8e%a7%e5%88%b6%e6%96%87%e4%bb%b6%e5%95%9f%e5%8b%95%e6%95%b8%e6%93%9a%e5%ba%ab-OrjepjUhjw\">3. \u4f7f\u7528\u6b63\u78ba\u7684\u63a7\u5236\u6587\u4ef6\u555f\u52d5\u6578\u64da\u5eab<\/h3>\n<p>\u5728\u95dc\u9589\u6578\u64da\u5eab\u5f8c\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u6b63\u78ba\u7684\u63a7\u5236\u6587\u4ef6\u91cd\u65b0\u555f\u52d5\u6578\u64da\u5eab\u3002\u9019\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u547d\u4ee4\u5b8c\u6210\uff1a<\/p>\n<pre><code>SQL&gt; STARTUP PFILE='\/path\/to\/your\/init.ora';<\/code><\/pre>\n<p>\u78ba\u4fdd\u5728\u555f\u52d5\u6642\u6307\u5b9a\u6b63\u78ba\u7684\u521d\u59cb\u5316\u53c3\u6578\u6587\u4ef6\uff0c\u4ee5\u4fbfOracle\u80fd\u5920\u627e\u5230\u6b63\u78ba\u7684\u63a7\u5236\u6587\u4ef6\u3002<\/p>\n<h3 id=\"4-%e6%aa%a2%e6%9f%a5%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e5%ae%8c%e6%95%b4%e6%80%a7-OrjepjUhjw\">4. \u6aa2\u67e5\u6578\u64da\u5eab\u7684\u5b8c\u6574\u6027<\/h3>\n<p>\u555f\u52d5\u6578\u64da\u5eab\u5f8c\uff0c\u60a8\u61c9\u8a72\u6aa2\u67e5\u6578\u64da\u5eab\u7684\u5b8c\u6574\u6027\uff0c\u4ee5\u78ba\u4fdd\u6240\u6709\u6578\u64da\u90fd\u6b63\u5e38\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>SQL&gt; RECOVER DATABASE;<\/code><\/pre>\n<h3 id=\"5-%e9%87%8d%e6%96%b0%e5%89%b5%e5%bb%ba%e6%8e%a7%e5%88%b6%e6%96%87%e4%bb%b6%ef%bc%88%e5%a6%82%e6%9c%89%e5%bf%85%e8%a6%81%ef%bc%89-OrjepjUhjw\">5. \u91cd\u65b0\u5275\u5efa\u63a7\u5236\u6587\u4ef6\uff08\u5982\u6709\u5fc5\u8981\uff09<\/h3>\n<p>\u5982\u679c\u63a7\u5236\u6587\u4ef6\u640d\u58de\u4e14\u7121\u6cd5\u6062\u5fa9\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u91cd\u65b0\u5275\u5efa\u63a7\u5236\u6587\u4ef6\u3002\u9019\u662f\u4e00\u500b\u8f03\u70ba\u8907\u96dc\u7684\u904e\u7a0b\uff0c\u5efa\u8b70\u5728\u9032\u884c\u6b64\u64cd\u4f5c\u4e4b\u524d\u5099\u4efd\u6240\u6709\u6578\u64da\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-OrjepjUhjw\">\u7e3d\u7d50<\/h2>\n<p>ORA-00226\u932f\u8aa4\u662f\u4e00\u500b\u5e38\u898b\u7684Oracle\u6578\u64da\u5eab\u554f\u984c\uff0c\u901a\u5e38\u8207\u63a7\u5236\u6587\u4ef6\u7684\u72c0\u614b\u6709\u95dc\u3002\u901a\u904e\u9075\u5faa\u4e0a\u8ff0\u6b65\u9a5f\uff0c\u60a8\u53ef\u4ee5\u6709\u6548\u5730\u8a3a\u65b7\u548c\u4fee\u5fa9\u6b64\u932f\u8aa4\uff0c\u5f9e\u800c\u78ba\u4fdd\u6578\u64da\u5eab\u7684\u6b63\u5e38\u904b\u884c\u3002\u5c0d\u65bc\u9700\u8981\u9ad8\u53ef\u7528\u6027\u548c\u7a69\u5b9a\u6027\u7684\u696d\u52d9\u74b0\u5883\uff0c\u9078\u64c7\u5408\u9069\u7684<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u6216<a href=\"https:\/\/server.hk\">\u4e91\u4f3a\u670d\u5668<\/a>\u89e3\u6c7a\u65b9\u6848\u662f\u81f3\u95dc\u91cd\u8981\u7684\uff0c\u4ee5\u78ba\u4fdd\u6578\u64da\u7684\u5b89\u5168\u548c\u53ef\u7528\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to resolve ORA-00226: operation disallowed while alternate control file open in Oracle. Expert remote troubleshooting tips and solutions.<\/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-81586","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/81586","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=81586"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/81586\/revisions"}],"predecessor-version":[{"id":81587,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/81586\/revisions\/81587"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=81586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=81586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=81586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}