{"id":87188,"date":"2024-10-17T22:58:20","date_gmt":"2024-10-17T14:58:20","guid":{"rendered":"https:\/\/server.hk\/cnblog\/87188\/"},"modified":"2024-10-17T22:58:20","modified_gmt":"2024-10-17T14:58:20","slug":"ora-16446-%e7%9b%ae%e6%a8%99%e6%95%b8%e6%93%9a%e5%ba%ab%e4%b8%8d%e6%98%af%e5%be%85%e6%a9%9f%e6%95%b8%e6%93%9a%e5%ba%ab%e3%80%82oracle-%e5%a0%b1%e9%8c%af-%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9-%e9%81%a0","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/87188\/","title":{"rendered":"ORA-16446: \u76ee\u6a19\u6578\u64da\u5eab\u4e0d\u662f\u5f85\u6a5f\u6578\u64da\u5eab\u3002ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-16446-%e7%9b%ae%e6%a8%99%e6%95%b8%e6%93%9a%e5%ba%ab%e4%b8%8d%e6%98%af%e5%be%85%e6%a9%9f%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9%e8%88%87%e9%81%a0%e7%a8%8b%e8%99%95-InVfFbwWLE\">ORA-16446: \u76ee\u6a19\u6578\u64da\u5eab\u4e0d\u662f\u5f85\u6a5f\u6578\u64da\u5eab\u7684\u6545\u969c\u4fee\u5fa9\u8207\u9060\u7a0b\u8655\u7406<\/h1>\n<p>\u5728\u4f7f\u7528Oracle\u6578\u64da\u5eab\u7684\u904e\u7a0b\u4e2d\uff0c\u53ef\u80fd\u6703\u9047\u5230\u5404\u7a2e\u932f\u8aa4\u4ee3\u78bc\uff0c\u5176\u4e2d\u4e4b\u4e00\u4fbf\u662fORA-16446\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u51fa\u73fe\u5728\u6578\u64da\u5eab\u7684\u9ad8\u53ef\u7528\u6027\u914d\u7f6e\u4e2d\uff0c\u7279\u5225\u662f\u5728\u4f7f\u7528\u6578\u64da\u5eab\u5099\u4efd\u548c\u6062\u5fa9\u7684\u60c5\u6cc1\u4e0b\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0eORA-16446\u7684\u539f\u56e0\u3001\u5f71\u97ff\u4ee5\u53ca\u5982\u4f55\u9032\u884c\u6545\u969c\u4fee\u5fa9\u548c\u9060\u7a0b\u8655\u7406\u3002<\/p>\n<h2 id=\"ora-16446%e9%8c%af%e8%aa%a4%e7%9a%84%e5%8e%9f%e5%9b%a0-InVfFbwWLE\">ORA-16446\u932f\u8aa4\u7684\u539f\u56e0<\/h2>\n<p>ORA-16446\u932f\u8aa4\u7684\u5177\u9ad4\u4fe1\u606f\u70ba\u201c\u76ee\u6a19\u6578\u64da\u5eab\u4e0d\u662f\u5f85\u6a5f\u6578\u64da\u5eab\u201d\u3002\u9019\u901a\u5e38\u767c\u751f\u5728\u4ee5\u4e0b\u5e7e\u7a2e\u60c5\u6cc1\u4e0b\uff1a<\/p>\n<ul>\n<li><strong>\u932f\u8aa4\u7684\u6578\u64da\u5eab\u914d\u7f6e\uff1a<\/strong>\u7576\u7528\u6236\u5617\u8a66\u5c07\u4e3b\u6578\u64da\u5eab\u7684\u6578\u64da\u50b3\u8f38\u5230\u4e00\u500b\u975e\u5f85\u6a5f\u6578\u64da\u5eab\u6642\uff0c\u4fbf\u6703\u51fa\u73fe\u6b64\u932f\u8aa4\u3002<\/li>\n<li><strong>\u6578\u64da\u5eab\u72c0\u614b\u4e0d\u6b63\u78ba\uff1a<\/strong>\u5982\u679c\u76ee\u6a19\u6578\u64da\u5eab\u672a\u6b63\u78ba\u8a2d\u7f6e\u70ba\u5f85\u6a5f\u72c0\u614b\uff0c\u5247\u5728\u57f7\u884c\u67d0\u4e9b\u64cd\u4f5c\u6642\u6703\u5831\u932f\u3002<\/li>\n<li><strong>\u7db2\u7d61\u554f\u984c\uff1a<\/strong>\u5728\u9032\u884c\u9060\u7a0b\u64cd\u4f5c\u6642\uff0c\u7db2\u7d61\u9023\u63a5\u4e0d\u7a69\u5b9a\u4e5f\u53ef\u80fd\u5c0e\u81f4\u6b64\u932f\u8aa4\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%a6%82%e4%bd%95%e4%bf%ae%e5%be%a9ora-16446%e9%8c%af%e8%aa%a4-InVfFbwWLE\">\u5982\u4f55\u4fee\u5fa9ORA-16446\u932f\u8aa4<\/h2>\n<p>\u4fee\u5fa9ORA-16446\u932f\u8aa4\u7684\u904e\u7a0b\u901a\u5e38\u5305\u62ec\u4ee5\u4e0b\u5e7e\u500b\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5%e6%95%b8%e6%93%9a%e5%ba%ab%e9%85%8d%e7%bd%ae-InVfFbwWLE\">1. \u6aa2\u67e5\u6578\u64da\u5eab\u914d\u7f6e<\/h3>\n<p>\u9996\u5148\uff0c\u78ba\u4fdd\u76ee\u6a19\u6578\u64da\u5eab\u5df2\u6b63\u78ba\u914d\u7f6e\u70ba\u5f85\u6a5f\u6578\u64da\u5eab\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0bSQL\u67e5\u8a62\u4f86\u6aa2\u67e5\u6578\u64da\u5eab\u7684\u72c0\u614b\uff1a<\/p>\n<pre><code>SELECT DATABASE_ROLE FROM V$DATABASE;<\/code><\/pre>\n<p>\u5982\u679c\u8fd4\u56de\u7684\u7d50\u679c\u4e0d\u662f\u201cPHYSICAL STANDBY\u201d\u6216\u201cLOGICAL STANDBY\u201d\uff0c\u5247\u9700\u8981\u91cd\u65b0\u914d\u7f6e\u6578\u64da\u5eab\u3002<\/p>\n<h3 id=\"2-%e7%a2%ba%e8%aa%8d%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e9%80%a3%e6%8e%a5-InVfFbwWLE\">2. \u78ba\u8a8d\u6578\u64da\u5eab\u7684\u9023\u63a5<\/h3>\n<p>\u6aa2\u67e5\u4e3b\u6578\u64da\u5eab\u548c\u5f85\u6a5f\u6578\u64da\u5eab\u4e4b\u9593\u7684\u9023\u63a5\u662f\u5426\u6b63\u5e38\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u6e2c\u8a66\u9023\u63a5\uff1a<\/p>\n<pre><code>tnsping &lt;\u5f85\u6a5f\u6578\u64da\u5eab\u7684TNS\u540d\u7a31&gt;<\/code><\/pre>\n<p>\u5982\u679c\u9023\u63a5\u5931\u6557\uff0c\u5247\u9700\u8981\u6aa2\u67e5\u7db2\u7d61\u8a2d\u7f6e\u548c\u9632\u706b\u7246\u898f\u5247\u3002<\/p>\n<h3 id=\"3-%e9%87%8d%e6%96%b0%e5%95%9f%e5%8b%95%e5%be%85%e6%a9%9f%e6%95%b8%e6%93%9a%e5%ba%ab-InVfFbwWLE\">3. \u91cd\u65b0\u555f\u52d5\u5f85\u6a5f\u6578\u64da\u5eab<\/h3>\n<p>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u91cd\u65b0\u555f\u52d5\u5f85\u6a5f\u6578\u64da\u5eab\u53ef\u4ee5\u89e3\u6c7a\u554f\u984c\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u91cd\u65b0\u555f\u52d5\u6578\u64da\u5eab\uff1a<\/p>\n<pre><code>SHUTDOWN IMMEDIATE;\nSTARTUP;<\/code><\/pre>\n<h3 id=\"4-%e6%aa%a2%e6%9f%a5%e6%97%a5%e8%aa%8c%e6%96%87%e4%bb%b6-InVfFbwWLE\">4. \u6aa2\u67e5\u65e5\u8a8c\u6587\u4ef6<\/h3>\n<p>\u67e5\u770bOracle\u7684\u65e5\u8a8c\u6587\u4ef6\uff0c\u7279\u5225\u662f\u8b66\u544a\u65e5\u8a8c\u548c\u8ddf\u8e64\u65e5\u8a8c\uff0c\u4ee5\u7372\u53d6\u66f4\u591a\u7684\u932f\u8aa4\u4fe1\u606f\u3002\u9019\u4e9b\u65e5\u8a8c\u901a\u5e38\u4f4d\u65bc\u4ee5\u4e0b\u8def\u5f91\uff1a<\/p>\n<pre><code>$ORACLE_HOME\/diag\/rdbms\/&lt;\u6578\u64da\u5eab\u540d\u7a31&gt;\/&lt;\u5be6\u4f8b\u540d\u7a31&gt;\/trace<\/code><\/pre>\n<h2 id=\"%e9%81%a0%e7%a8%8b%e8%99%95%e7%90%86ora-16446%e9%8c%af%e8%aa%a4-InVfFbwWLE\">\u9060\u7a0b\u8655\u7406ORA-16446\u932f\u8aa4<\/h2>\n<p>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u9032\u884c\u9060\u7a0b\u8655\u7406\u4f86\u89e3\u6c7aORA-16446\u932f\u8aa4\u3002\u9019\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u6b65\u9a5f\u5be6\u73fe\uff1a<\/p>\n<ul>\n<li><strong>\u4f7f\u7528Oracle Data Guard\uff1a<\/strong>\u78ba\u4fddData Guard\u914d\u7f6e\u6b63\u78ba\uff0c\u4e26\u4e14\u6240\u6709\u7684\u8a2d\u7f6e\u90fd\u7b26\u5408\u8981\u6c42\u3002<\/li>\n<li><strong>\u9060\u7a0b\u9023\u63a5\u5230\u6578\u64da\u5eab\uff1a<\/strong>\u4f7f\u7528SQL*Plus\u6216\u5176\u4ed6\u5de5\u5177\u9060\u7a0b\u9023\u63a5\u5230\u5f85\u6a5f\u6578\u64da\u5eab\uff0c\u4e26\u57f7\u884c\u5fc5\u8981\u7684\u6aa2\u67e5\u548c\u4fee\u5fa9\u64cd\u4f5c\u3002<\/li>\n<li><strong>\u806f\u7e6b\u6280\u8853\u652f\u6301\uff1a<\/strong>\u5982\u679c\u554f\u984c\u4ecd\u7136\u5b58\u5728\uff0c\u5efa\u8b70\u806f\u7e6bOracle\u7684\u6280\u8853\u652f\u6301\u4ee5\u7372\u53d6\u5c08\u696d\u5e6b\u52a9\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-InVfFbwWLE\">\u7e3d\u7d50<\/h2>\n<p>ORA-16446\u932f\u8aa4\u901a\u5e38\u8207\u6578\u64da\u5eab\u7684\u914d\u7f6e\u548c\u72c0\u614b\u6709\u95dc\uff0c\u901a\u904e\u6aa2\u67e5\u6578\u64da\u5eab\u89d2\u8272\u3001\u9023\u63a5\u72c0\u614b\u4ee5\u53ca\u65e5\u8a8c\u6587\u4ef6\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u9032\u884c\u6545\u969c\u4fee\u5fa9\u548c\u9060\u7a0b\u8655\u7406\u3002\u5c0d\u65bc\u9700\u8981\u9ad8\u53ef\u7528\u6027\u89e3\u6c7a\u65b9\u6848\u7684\u7528\u6236\uff0c\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u6216 <a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a> \u4f86\u652f\u6301Oracle\u6578\u64da\u5eab\u7684\u904b\u884c\u662f\u81f3\u95dc\u91cd\u8981\u7684\u3002\u4e86\u89e3\u9019\u4e9b\u932f\u8aa4\u7684\u8655\u7406\u65b9\u6cd5\uff0c\u5c07\u6709\u52a9\u65bc\u63d0\u9ad8\u6578\u64da\u5eab\u7684\u7a69\u5b9a\u6027\u548c\u53ef\u9760\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u6c7a ORA-16446 \u932f\u8aa4\uff0c\u4e86\u89e3\u76ee\u6a19\u6578\u64da\u5eab\u975e\u5f85\u6a5f\u6578\u64da\u5eab\u7684\u539f\u56e0\uff0c\u4e26\u638c\u63e1 Oracle \u6545\u969c\u4fee\u5fa9\u8207\u9060\u7a0b\u8655\u7406\u6280\u5de7\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-87188","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/87188","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=87188"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/87188\/revisions"}],"predecessor-version":[{"id":87189,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/87188\/revisions\/87189"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=87188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=87188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=87188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}