{"id":81648,"date":"2024-10-16T17:38:21","date_gmt":"2024-10-16T09:38:21","guid":{"rendered":"https:\/\/server.hk\/cnblog\/81648\/"},"modified":"2024-10-16T17:38:21","modified_gmt":"2024-10-16T09:38:21","slug":"ora-00325-archived-log-for-thread-string-wrong-thread-string-in-header-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\/81648\/","title":{"rendered":"ORA-00325: archived log for thread string, wrong thread # string in header ORACLE\u5831\u932f\u6545\u969c\u4fee\u5fa9\u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-00325-archived-log-for-thread-string-wrong-thread-string-in-header-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-ndKqItCgKZ\">ORA-00325: archived log for thread string, wrong thread # string in header 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-00325\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8207\u6578\u64da\u5eab\u7684\u6b78\u6a94\u65e5\u8a8c\u6709\u95dc\uff0c\u7279\u5225\u662f\u5728\u591a\u7dda\u7a0b\u74b0\u5883\u4e2d\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0eORA-00325\u7684\u539f\u56e0\u3001\u5f71\u97ff\u4ee5\u53ca\u5982\u4f55\u9032\u884c\u6545\u969c\u4fee\u5fa9\u3002<\/p>\n<h2 id=\"ora-00325%e7%9a%84%e5%8e%9f%e5%9b%a0-ndKqItCgKZ\">ORA-00325\u7684\u539f\u56e0<\/h2>\n<p>ORA-00325\u932f\u8aa4\u7684\u5177\u9ad4\u4fe1\u606f\u70ba\u201carchived log for thread string, wrong thread # string in header\u201d\u3002\u9019\u610f\u5473\u8457\u5728\u5617\u8a66\u8b80\u53d6\u67d0\u500b\u7dda\u7a0b\u7684\u6b78\u6a94\u65e5\u8a8c\u6642\uff0cOracle\u767c\u73fe\u8a72\u65e5\u8a8c\u7684\u6a19\u982d\u4fe1\u606f\u8207\u9810\u671f\u7684\u7dda\u7a0b\u4e0d\u7b26\u3002\u9019\u7a2e\u60c5\u6cc1\u901a\u5e38\u767c\u751f\u5728\u4ee5\u4e0b\u5e7e\u7a2e\u60c5\u6cc1\u4e0b\uff1a<\/p>\n<ul>\n<li><strong>\u932f\u8aa4\u7684\u6b78\u6a94\u65e5\u8a8c\uff1a<\/strong>\u5982\u679c\u6b78\u6a94\u65e5\u8a8c\u88ab\u932f\u8aa4\u5730\u79fb\u52d5\u6216\u640d\u58de\uff0cOracle\u5c07\u7121\u6cd5\u6b63\u78ba\u8b58\u5225\u5176\u6240\u5c6c\u7684\u7dda\u7a0b\u3002<\/li>\n<li><strong>\u591a\u7dda\u7a0b\u74b0\u5883\u4e2d\u7684\u914d\u7f6e\u554f\u984c\uff1a<\/strong>\u5728\u591a\u7dda\u7a0b\u7684\u6578\u64da\u5eab\u74b0\u5883\u4e2d\uff0c\u7dda\u7a0b\u4e4b\u9593\u7684\u914d\u7f6e\u4e0d\u4e00\u81f4\u53ef\u80fd\u5c0e\u81f4\u6b64\u932f\u8aa4\u3002<\/li>\n<li><strong>\u6578\u64da\u5eab\u6062\u5fa9\u904e\u7a0b\u4e2d\u7684\u554f\u984c\uff1a<\/strong>\u5728\u9032\u884c\u6578\u64da\u5eab\u6062\u5fa9\u6642\uff0c\u5982\u679c\u4f7f\u7528\u4e86\u4e0d\u6b63\u78ba\u7684\u6b78\u6a94\u65e5\u8a8c\uff0c\u4e5f\u6703\u5f15\u767c\u6b64\u932f\u8aa4\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%bd%b1%e9%9f%bf-ndKqItCgKZ\">\u5f71\u97ff<\/h2>\n<p>\u7576\u51fa\u73feORA-00325\u932f\u8aa4\u6642\uff0c\u6578\u64da\u5eab\u5c07\u7121\u6cd5\u6b63\u5e38\u904b\u884c\uff0c\u9019\u53ef\u80fd\u5c0e\u81f4\u61c9\u7528\u7a0b\u5e8f\u7121\u6cd5\u8a2a\u554f\u6578\u64da\uff0c\u5f9e\u800c\u5f71\u97ff\u696d\u52d9\u904b\u4f5c\u3002\u7279\u5225\u662f\u5728\u9ad8\u53ef\u7528\u6027\u74b0\u5883\u4e2d\uff0c\u9019\u7a2e\u932f\u8aa4\u53ef\u80fd\u6703\u5c0e\u81f4\u7cfb\u7d71\u505c\u6a5f\uff0c\u9032\u800c\u5f71\u97ff\u7528\u6236\u9ad4\u9a57\u548c\u696d\u52d9\u9023\u7e8c\u6027\u3002<\/p>\n<h2 id=\"%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9%e6%ad%a5%e9%a9%9f-ndKqItCgKZ\">\u6545\u969c\u4fee\u5fa9\u6b65\u9a5f<\/h2>\n<p>\u4fee\u5fa9ORA-00325\u932f\u8aa4\u9700\u8981\u9075\u5faa\u4ee5\u4e0b\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e7%a2%ba%e8%aa%8d%e6%ad%b8%e6%aa%94%e6%97%a5%e8%aa%8c%e7%9a%84%e5%ae%8c%e6%95%b4%e6%80%a7-ndKqItCgKZ\">1. \u78ba\u8a8d\u6b78\u6a94\u65e5\u8a8c\u7684\u5b8c\u6574\u6027<\/h3>\n<p>\u9996\u5148\uff0c\u6aa2\u67e5\u51fa\u73fe\u554f\u984c\u7684\u6b78\u6a94\u65e5\u8a8c\u662f\u5426\u5b58\u5728\u4ee5\u53ca\u5176\u5b8c\u6574\u6027\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0bSQL\u67e5\u8a62\u4f86\u6aa2\u67e5\u6b78\u6a94\u65e5\u8a8c\u7684\u72c0\u614b\uff1a<\/p>\n<pre><code>SELECT * FROM V$ARCHIVED_LOG WHERE THREAD# = 'string';<\/code><\/pre>\n<p>\u5982\u679c\u767c\u73fe\u65e5\u8a8c\u7f3a\u5931\u6216\u640d\u58de\uff0c\u5247\u9700\u8981\u5f9e\u5099\u4efd\u4e2d\u6062\u5fa9\u3002<\/p>\n<h3 id=\"2-%e6%aa%a2%e6%9f%a5%e7%b7%9a%e7%a8%8b%e9%85%8d%e7%bd%ae-ndKqItCgKZ\">2. \u6aa2\u67e5\u7dda\u7a0b\u914d\u7f6e<\/h3>\n<p>\u78ba\u4fdd\u6578\u64da\u5eab\u7684\u7dda\u7a0b\u914d\u7f6e\u6b63\u78ba\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u67e5\u8a62\u4f86\u6aa2\u67e5\u7576\u524d\u7684\u7dda\u7a0b\u914d\u7f6e\uff1a<\/p>\n<pre><code>SELECT THREAD#, STATUS FROM V$THREAD;<\/code><\/pre>\n<p>\u5982\u679c\u767c\u73fe\u7dda\u7a0b\u914d\u7f6e\u4e0d\u4e00\u81f4\uff0c\u5247\u9700\u8981\u9032\u884c\u76f8\u61c9\u7684\u8abf\u6574\u3002<\/p>\n<h3 id=\"3-%e6%81%a2%e5%be%a9%e6%ad%a3%e7%a2%ba%e7%9a%84%e6%ad%b8%e6%aa%94%e6%97%a5%e8%aa%8c-ndKqItCgKZ\">3. \u6062\u5fa9\u6b63\u78ba\u7684\u6b78\u6a94\u65e5\u8a8c<\/h3>\n<p>\u5982\u679c\u78ba\u5b9a\u67d0\u500b\u6b78\u6a94\u65e5\u8a8c\u662f\u932f\u8aa4\u7684\uff0c\u5247\u9700\u8981\u6062\u5fa9\u6b63\u78ba\u7684\u65e5\u8a8c\u3002\u53ef\u4ee5\u4f7f\u7528RMAN\u5de5\u5177\u4f86\u57f7\u884c\u6062\u5fa9\u64cd\u4f5c\uff1a<\/p>\n<pre><code>RMAN&gt; RECOVER DATABASE USING BACKUP CONTROLFILE;<\/code><\/pre>\n<h3 id=\"4-%e9%87%8d%e6%96%b0%e5%95%9f%e5%8b%95%e6%95%b8%e6%93%9a%e5%ba%ab-ndKqItCgKZ\">4. \u91cd\u65b0\u555f\u52d5\u6578\u64da\u5eab<\/h3>\n<p>\u5728\u5b8c\u6210\u4e0a\u8ff0\u6b65\u9a5f\u5f8c\uff0c\u91cd\u65b0\u555f\u52d5\u6578\u64da\u5eab\u4ee5\u61c9\u7528\u66f4\u6539\uff1a<\/p>\n<pre><code>SHUTDOWN IMMEDIATE;\nSTARTUP;<\/code><\/pre>\n<h2 id=\"%e7%b8%bd%e7%b5%90-ndKqItCgKZ\">\u7e3d\u7d50<\/h2>\n<p>ORA-00325\u932f\u8aa4\u901a\u5e38\u8207\u6b78\u6a94\u65e5\u8a8c\u7684\u914d\u7f6e\u548c\u5b8c\u6574\u6027\u6709\u95dc\u3002\u901a\u904e\u6aa2\u67e5\u6b78\u6a94\u65e5\u8a8c\u3001\u78ba\u8a8d\u7dda\u7a0b\u914d\u7f6e\u4ee5\u53ca\u6062\u5fa9\u6b63\u78ba\u7684\u65e5\u8a8c\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u5c0d\u65bc\u4f7f\u7528Oracle\u6578\u64da\u5eab\u7684\u4f01\u696d\u4f86\u8aaa\uff0c\u5b9a\u671f\u5099\u4efd\u548c\u76e3\u63a7\u7cfb\u7d71\u72c0\u614b\u662f\u9632\u6b62\u6b64\u985e\u932f\u8aa4\u767c\u751f\u7684\u95dc\u9375\u3002<\/p>\n<p>\u5982\u9700\u9032\u4e00\u6b65\u4e86\u89e3\u5982\u4f55\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u670d\u52d9\u4ee5\u652f\u6301\u60a8\u7684\u6578\u64da\u5eab\u904b\u884c\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u4ee5\u7372\u53d6\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to troubleshoot and resolve ORA-00325: archived log for thread string, wrong thread # string in header in Oracle with remote support 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-81648","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/81648","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=81648"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/81648\/revisions"}],"predecessor-version":[{"id":81649,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/81648\/revisions\/81649"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=81648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=81648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=81648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}