{"id":83815,"date":"2024-10-17T02:20:16","date_gmt":"2024-10-16T18:20:16","guid":{"rendered":"https:\/\/server.hk\/cnblog\/83815\/"},"modified":"2024-10-17T02:20:16","modified_gmt":"2024-10-16T18:20:16","slug":"ora-03176-string-%e5%8f%aa%e5%9c%a8%e9%96%8b%e5%95%9f%e7%9a%84%e7%89%a9%e7%90%86%e5%be%85%e6%a9%9f%e6%95%b8%e6%93%9a%e5%ba%ab%e4%b8%8a%e9%81%8b%e4%bd%9c-oracle%e5%a0%b1%e9%8c%af%e6%95%85%e9%9a%9c","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/83815\/","title":{"rendered":"ORA-03176: string \u53ea\u5728\u958b\u555f\u7684\u7269\u7406\u5f85\u6a5f\u6578\u64da\u5eab\u4e0a\u904b\u4f5c ORACLE\u5831\u932f\u6545\u969c\u4fee\u5fa9\u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-03176-string-%e5%8f%aa%e5%9c%a8%e9%96%8b%e5%95%9f%e7%9a%84%e7%89%a9%e7%90%86%e5%be%85%e6%a9%9f%e6%95%b8%e6%93%9a%e5%ba%ab%e4%b8%8a%e9%81%8b%e4%bd%9c-oracle%e5%a0%b1%e9%8c%af%e6%95%85%e9%9a%9c-cvaUaxWCvV\">ORA-03176: string \u53ea\u5728\u958b\u555f\u7684\u7269\u7406\u5f85\u6a5f\u6578\u64da\u5eab\u4e0a\u904b\u4f5c 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\u4fbf\u662fORA-03176\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u51fa\u73fe\u5728\u5617\u8a66\u5728\u672a\u555f\u7528\u7684\u7269\u7406\u5f85\u6a5f\u6578\u64da\u5eab\u4e0a\u57f7\u884c\u67d0\u4e9b\u64cd\u4f5c\u6642\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0eORA-03176\u932f\u8aa4\u7684\u539f\u56e0\u3001\u5f71\u97ff\u4ee5\u53ca\u5982\u4f55\u9032\u884c\u6545\u969c\u4fee\u5fa9\u3002<\/p>\n<h2 id=\"ora-03176%e9%8c%af%e8%aa%a4%e7%9a%84%e5%8e%9f%e5%9b%a0-cvaUaxWCvV\">ORA-03176\u932f\u8aa4\u7684\u539f\u56e0<\/h2>\n<p>ORA-03176\u932f\u8aa4\u7684\u5b8c\u6574\u4fe1\u606f\u70ba\uff1a\u201cstring \u53ea\u5728\u958b\u555f\u7684\u7269\u7406\u5f85\u6a5f\u6578\u64da\u5eab\u4e0a\u904b\u4f5c\u201d\u3002\u9019\u610f\u5473\u8457\u60a8\u5617\u8a66\u57f7\u884c\u7684\u64cd\u4f5c\u50c5\u9650\u65bc\u5728\u7269\u7406\u5f85\u6a5f\u6578\u64da\u5eab\u4e0a\u9032\u884c\uff0c\u800c\u7576\u524d\u7684\u6578\u64da\u5eab\u72c0\u614b\u4e26\u4e0d\u7b26\u5408\u9019\u4e00\u8981\u6c42\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\u672a\u555f\u7528\uff1a<\/strong>\u5982\u679c\u7269\u7406\u5f85\u6a5f\u6578\u64da\u5eab\u672a\u555f\u7528\uff0c\u5247\u7121\u6cd5\u57f7\u884c\u67d0\u4e9b\u64cd\u4f5c\u3002<\/li>\n<li><strong>\u932f\u8aa4\u7684\u9023\u63a5\u5b57\u7b26\u4e32\uff1a<\/strong>\u9023\u63a5\u5230\u932f\u8aa4\u7684\u6578\u64da\u5eab\u5be6\u4f8b\uff0c\u53ef\u80fd\u5c0e\u81f4\u6b64\u932f\u8aa4\u3002<\/li>\n<li><strong>\u6578\u64da\u5eab\u72c0\u614b\u4e0d\u6b63\u78ba\uff1a<\/strong>\u6578\u64da\u5eab\u53ef\u80fd\u8655\u65bc\u4e0d\u6b63\u78ba\u7684\u72c0\u614b\uff0c\u4f8b\u5982\u53ea\u8b80\u6a21\u5f0f\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%a6%82%e4%bd%95%e6%aa%a2%e6%9f%a5%e6%95%b8%e6%93%9a%e5%ba%ab%e7%8b%80%e6%85%8b-cvaUaxWCvV\">\u5982\u4f55\u6aa2\u67e5\u6578\u64da\u5eab\u72c0\u614b<\/h2>\n<p>\u5728\u8655\u7406ORA-03176\u932f\u8aa4\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u6aa2\u67e5\u6578\u64da\u5eab\u7684\u7576\u524d\u72c0\u614b\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, OPEN_MODE FROM V$DATABASE;<\/code><\/pre>\n<p>\u9019\u500b\u67e5\u8a62\u5c07\u8fd4\u56de\u6578\u64da\u5eab\u7684\u89d2\u8272\uff08\u5982\u4e3b\u6578\u64da\u5eab\u6216\u5f85\u6a5f\u6578\u64da\u5eab\uff09\u4ee5\u53ca\u7576\u524d\u7684\u958b\u555f\u6a21\u5f0f\uff08\u5982READ WRITE\u6216READ ONLY\uff09\u3002\u5982\u679c\u6578\u64da\u5eab\u7684\u89d2\u8272\u986f\u793a\u70ba\u201cPHYSICAL STANDBY\u201d\uff0c\u4f46\u958b\u555f\u6a21\u5f0f\u986f\u793a\u70ba\u201cREAD ONLY\u201d\uff0c\u5247\u9700\u8981\u5c07\u5176\u5207\u63db\u5230\u6b63\u78ba\u7684\u6a21\u5f0f\u3002<\/p>\n<h2 id=\"%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9%e6%ad%a5%e9%a9%9f-cvaUaxWCvV\">\u6545\u969c\u4fee\u5fa9\u6b65\u9a5f<\/h2>\n<p>\u5982\u679c\u78ba\u5b9a\u6578\u64da\u5eab\u72c0\u614b\u4e0d\u6b63\u78ba\uff0c\u5247\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\u6545\u969c\u4fee\u5fa9\uff1a<\/p>\n<h3 id=\"1-%e5%95%9f%e7%94%a8%e7%89%a9%e7%90%86%e5%be%85%e6%a9%9f%e6%95%b8%e6%93%9a%e5%ba%ab-cvaUaxWCvV\">1. \u555f\u7528\u7269\u7406\u5f85\u6a5f\u6578\u64da\u5eab<\/h3>\n<p>\u5982\u679c\u7269\u7406\u5f85\u6a5f\u6578\u64da\u5eab\u672a\u555f\u7528\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u555f\u7528\uff1a<\/p>\n<pre><code>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;<\/code><\/pre>\n<h3 id=\"2-%e5%88%87%e6%8f%9b%e6%95%b8%e6%93%9a%e5%ba%ab%e6%a8%a1%e5%bc%8f-cvaUaxWCvV\">2. \u5207\u63db\u6578\u64da\u5eab\u6a21\u5f0f<\/h3>\n<p>\u5982\u679c\u6578\u64da\u5eab\u8655\u65bc\u53ea\u8b80\u6a21\u5f0f\uff0c\u5247\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5c07\u5176\u5207\u63db\u5230\u8b80\u5beb\u6a21\u5f0f\uff1a<\/p>\n<pre><code>ALTER DATABASE OPEN;<\/code><\/pre>\n<h3 id=\"3-%e6%aa%a2%e6%9f%a5%e9%80%a3%e6%8e%a5%e5%ad%97%e7%ac%a6%e4%b8%b2-cvaUaxWCvV\">3. \u6aa2\u67e5\u9023\u63a5\u5b57\u7b26\u4e32<\/h3>\n<p>\u78ba\u4fdd\u60a8\u7684\u61c9\u7528\u7a0b\u5e8f\u6216\u5ba2\u6236\u7aef\u9023\u63a5\u5230\u6b63\u78ba\u7684\u6578\u64da\u5eab\u5be6\u4f8b\u3002\u6aa2\u67e5tnsnames.ora\u6587\u4ef6\u4e2d\u7684\u914d\u7f6e\uff0c\u78ba\u4fdd\u9023\u63a5\u5b57\u7b26\u4e32\u6b63\u78ba\u7121\u8aa4\u3002<\/p>\n<h2 id=\"%e7%b5%90%e8%ab%96-cvaUaxWCvV\">\u7d50\u8ad6<\/h2>\n<p>ORA-03176\u932f\u8aa4\u901a\u5e38\u662f\u7531\u65bc\u6578\u64da\u5eab\u72c0\u614b\u4e0d\u6b63\u78ba\u6216\u9023\u63a5\u554f\u984c\u5f15\u8d77\u7684\u3002\u901a\u904e\u6aa2\u67e5\u6578\u64da\u5eab\u7684\u89d2\u8272\u548c\u958b\u555f\u6a21\u5f0f\uff0c\u4e26\u6839\u64da\u9700\u8981\u9032\u884c\u76f8\u61c9\u7684\u8abf\u6574\uff0c\u901a\u5e38\u53ef\u4ee5\u5feb\u901f\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u5c0d\u65bcOracle\u6578\u64da\u5eab\u7ba1\u7406\u54e1\u4f86\u8aaa\uff0c\u4e86\u89e3\u5982\u4f55\u8655\u7406\u9019\u985e\u932f\u8aa4\u662f\u975e\u5e38\u91cd\u8981\u7684\uff0c\u9019\u4e0d\u50c5\u80fd\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\uff0c\u9084\u80fd\u78ba\u4fdd\u6578\u64da\u5eab\u7684\u7a69\u5b9a\u904b\u884c\u3002<\/p>\n<p>\u5982\u9700\u9032\u4e00\u6b65\u4e86\u89e3\u6709\u95dc\u6578\u64da\u5eab\u7ba1\u7406\u548c\u6545\u969c\u6392\u9664\u7684\u8cc7\u8a0a\uff0c\u60a8\u53ef\u4ee5\u8003\u616e\u4f7f\u7528\u6211\u5011\u7684<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u670d\u52d9\uff0c\u9019\u5c07\u70ba\u60a8\u7684\u6578\u64da\u5eab\u63d0\u4f9b\u7a69\u5b9a\u7684\u904b\u884c\u74b0\u5883\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u6c7aORA-03176\u932f\u8aa4\uff0c\u4e86\u89e3\u5982\u4f55\u5728\u958b\u555f\u7684\u7269\u7406\u5f85\u6a5f\u6578\u64da\u5eab\u4e0a\u9032\u884cOracle\u5831\u932f\u6545\u969c\u4fee\u5fa9\u7684\u9060\u7a0b\u8655\u7406\u65b9\u6cd5\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-83815","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/83815","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=83815"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/83815\/revisions"}],"predecessor-version":[{"id":83816,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/83815\/revisions\/83816"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=83815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=83815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=83815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}