{"id":94704,"date":"2024-10-19T20:28:18","date_gmt":"2024-10-19T12:28:18","guid":{"rendered":"https:\/\/server.hk\/cnblog\/94704\/"},"modified":"2024-10-19T20:28:18","modified_gmt":"2024-10-19T12:28:18","slug":"oracle%e5%82%99%e4%bb%bd%ef%bc%8d%ef%bc%8dredo%e4%b8%9f%e5%a4%b1%e8%88%87%e6%81%a2%e5%be%a9%e7%9a%84%e5%af%a6%e9%9a%9b%e6%93%8d%e4%bd%9c%e6%ad%a5%e9%a9%9f","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/94704\/","title":{"rendered":"Oracle\u5099\u4efd\uff0d\uff0dredo\u4e1f\u5931\u8207\u6062\u5fa9\u7684\u5be6\u969b\u64cd\u4f5c\u6b65\u9a5f"},"content":{"rendered":"<h1 id=\"oracle%e5%82%99%e4%bb%bd%ef%bc%8d%ef%bc%8dredo%e4%b8%9f%e5%a4%b1%e8%88%87%e6%81%a2%e5%be%a9%e7%9a%84%e5%af%a6%e9%9a%9b%e6%93%8d%e4%bd%9c%e6%ad%a5%e9%a9%9f-KdWbXBpzfB\">Oracle\u5099\u4efd\uff0d\uff0dredo\u4e1f\u5931\u8207\u6062\u5fa9\u7684\u5be6\u969b\u64cd\u4f5c\u6b65\u9a5f<\/h1>\n<p>\u5728\u6578\u64da\u5eab\u7ba1\u7406\u4e2d\uff0cOracle\u7684\u5099\u4efd\u8207\u6062\u5fa9\u662f\u81f3\u95dc\u91cd\u8981\u7684\uff0c\u7279\u5225\u662f\u5728\u9762\u5c0dredo\u65e5\u8a8c\u4e1f\u5931\u7684\u60c5\u6cc1\u4e0b\u3002\u672c\u6587\u5c07\u63a2\u8a0eredo\u65e5\u8a8c\u7684\u529f\u80fd\u3001\u4e1f\u5931\u7684\u539f\u56e0\u4ee5\u53ca\u6062\u5fa9\u7684\u5177\u9ad4\u64cd\u4f5c\u6b65\u9a5f\uff0c\u5e6b\u52a9\u6578\u64da\u5eab\u7ba1\u7406\u54e1\u6709\u6548\u61c9\u5c0d\u9019\u4e00\u6311\u6230\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%afredo%e6%97%a5%e8%aa%8c%ef%bc%9f-KdWbXBpzfB\">\u4ec0\u9ebc\u662fRedo\u65e5\u8a8c\uff1f<\/h2>\n<p>Redo\u65e5\u8a8c\u662fOracle\u6578\u64da\u5eab\u7528\u4f86\u8a18\u9304\u6240\u6709\u66f4\u6539\u6578\u64da\u7684\u64cd\u4f5c\u3002\u9019\u4e9b\u65e5\u8a8c\u4e0d\u50c5\u7528\u65bc\u6578\u64da\u6062\u5fa9\uff0c\u9084\u80fd\u78ba\u4fdd\u6578\u64da\u7684\u4e00\u81f4\u6027\u548c\u5b8c\u6574\u6027\u3002\u7576\u6578\u64da\u5eab\u767c\u751f\u6545\u969c\u6642\uff0cRedo\u65e5\u8a8c\u80fd\u5920\u5e6b\u52a9\u6062\u5fa9\u5230\u6545\u969c\u524d\u7684\u72c0\u614b\u3002<\/p>\n<h2 id=\"redo%e6%97%a5%e8%aa%8c%e4%b8%9f%e5%a4%b1%e7%9a%84%e5%8e%9f%e5%9b%a0-KdWbXBpzfB\">Redo\u65e5\u8a8c\u4e1f\u5931\u7684\u539f\u56e0<\/h2>\n<ul>\n<li>\u786c\u9ad4\u6545\u969c\uff1a\u5982\u78c1\u789f\u640d\u58de\u6216\u4f3a\u670d\u5668\u5d29\u6f70\u3002<\/li>\n<li>\u4eba\u70ba\u932f\u8aa4\uff1a\u5982\u8aa4\u522a\u9664Redo\u65e5\u8a8c\u6587\u4ef6\u3002<\/li>\n<li>\u7cfb\u7d71\u6545\u969c\uff1a\u5982\u64cd\u4f5c\u7cfb\u7d71\u5d29\u6f70\u6216\u4e0d\u7576\u95dc\u6a5f\u3002<\/li>\n<\/ul>\n<h2 id=\"redo%e6%97%a5%e8%aa%8c%e4%b8%9f%e5%a4%b1%e7%9a%84%e5%bd%b1%e9%9f%bf-KdWbXBpzfB\">Redo\u65e5\u8a8c\u4e1f\u5931\u7684\u5f71\u97ff<\/h2>\n<p>\u7576Redo\u65e5\u8a8c\u4e1f\u5931\u6642\uff0c\u6578\u64da\u5eab\u53ef\u80fd\u7121\u6cd5\u6b63\u78ba\u6062\u5fa9\u5230\u6700\u8fd1\u7684\u72c0\u614b\uff0c\u9019\u53ef\u80fd\u5c0e\u81f4\u6578\u64da\u4e1f\u5931\u6216\u4e0d\u4e00\u81f4\u3002\u56e0\u6b64\uff0c\u53ca\u6642\u7684\u5099\u4efd\u548c\u6062\u5fa9\u7b56\u7565\u662f\u5fc5\u4e0d\u53ef\u5c11\u7684\u3002<\/p>\n<h2 id=\"%e6%81%a2%e5%be%a9redo%e6%97%a5%e8%aa%8c%e7%9a%84%e6%ad%a5%e9%a9%9f-KdWbXBpzfB\">\u6062\u5fa9Redo\u65e5\u8a8c\u7684\u6b65\u9a5f<\/h2>\n<p>\u4ee5\u4e0b\u662f\u6062\u5fa9Redo\u65e5\u8a8c\u7684\u5177\u9ad4\u64cd\u4f5c\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"%e6%ad%a5%e9%a9%9f%e4%b8%80%ef%bc%9a%e6%aa%a2%e6%9f%a5%e6%95%b8%e6%93%9a%e5%ba%ab%e7%8b%80%e6%85%8b-KdWbXBpzfB\">\u6b65\u9a5f\u4e00\uff1a\u6aa2\u67e5\u6578\u64da\u5eab\u72c0\u614b<\/h3>\n<pre><code>SQL&gt; SELECT status FROM v$instance;<\/code><\/pre>\n<p>\u9996\u5148\uff0c\u6aa2\u67e5\u6578\u64da\u5eab\u7684\u72c0\u614b\uff0c\u78ba\u4fdd\u5176\u904b\u884c\u6b63\u5e38\u3002\u5982\u679c\u6578\u64da\u5eab\u8655\u65bc\u639b\u8d77\u72c0\u614b\uff0c\u5247\u9700\u8981\u5148\u555f\u52d5\u6578\u64da\u5eab\u3002<\/p>\n<h3 id=\"%e6%ad%a5%e9%a9%9f%e4%ba%8c%ef%bc%9a%e6%9f%a5%e6%89%be%e4%b8%9f%e5%a4%b1%e7%9a%84redo%e6%97%a5%e8%aa%8c-KdWbXBpzfB\">\u6b65\u9a5f\u4e8c\uff1a\u67e5\u627e\u4e1f\u5931\u7684Redo\u65e5\u8a8c<\/h3>\n<pre><code>SQL&gt; SELECT * FROM v$log;<\/code><\/pre>\n<p>\u4f7f\u7528\u4e0a\u8ff0\u67e5\u8a62\u4f86\u6aa2\u67e5Redo\u65e5\u8a8c\u7684\u72c0\u614b\uff0c\u78ba\u5b9a\u54ea\u4e9b\u65e5\u8a8c\u6587\u4ef6\u4e1f\u5931\u3002<\/p>\n<h3 id=\"%e6%ad%a5%e9%a9%9f%e4%b8%89%ef%bc%9a%e6%81%a2%e5%be%a9redo%e6%97%a5%e8%aa%8c-KdWbXBpzfB\">\u6b65\u9a5f\u4e09\uff1a\u6062\u5fa9Redo\u65e5\u8a8c<\/h3>\n<p>\u5982\u679c\u6709\u5099\u4efd\u7684Redo\u65e5\u8a8c\uff0c\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u547d\u4ee4\u4f86\u6062\u5fa9\uff1a<\/p>\n<pre><code>RMAN&gt; RESTORE LOGFILE 'path_to_redo_log';<\/code><\/pre>\n<p>\u5982\u679c\u6c92\u6709\u5099\u4efd\uff0c\u5247\u9700\u8981\u8003\u616e\u4f7f\u7528\u5176\u4ed6\u6062\u5fa9\u65b9\u6cd5\uff0c\u5982\u4f7f\u7528Flashback\u6280\u8853\u3002<\/p>\n<h3 id=\"%e6%ad%a5%e9%a9%9f%e5%9b%9b%ef%bc%9a%e6%87%89%e7%94%a8redo%e6%97%a5%e8%aa%8c-KdWbXBpzfB\">\u6b65\u9a5f\u56db\uff1a\u61c9\u7528Redo\u65e5\u8a8c<\/h3>\n<pre><code>SQL&gt; RECOVER DATABASE;<\/code><\/pre>\n<p>\u5728\u6062\u5fa9Redo\u65e5\u8a8c\u5f8c\uff0c\u61c9\u7528\u9019\u4e9b\u65e5\u8a8c\u4ee5\u78ba\u4fdd\u6578\u64da\u5eab\u7684\u4e00\u81f4\u6027\u3002<\/p>\n<h3 id=\"%e6%ad%a5%e9%a9%9f%e4%ba%94%ef%bc%9a%e6%aa%a2%e6%9f%a5%e6%81%a2%e5%be%a9%e7%b5%90%e6%9e%9c-KdWbXBpzfB\">\u6b65\u9a5f\u4e94\uff1a\u6aa2\u67e5\u6062\u5fa9\u7d50\u679c<\/h3>\n<pre><code>SQL&gt; SELECT * FROM v$database;<\/code><\/pre>\n<p>\u6700\u5f8c\uff0c\u6aa2\u67e5\u6578\u64da\u5eab\u7684\u72c0\u614b\uff0c\u78ba\u4fdd\u6062\u5fa9\u6210\u529f\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-KdWbXBpzfB\">\u7e3d\u7d50<\/h2>\n<p>Redo\u65e5\u8a8c\u7684\u4e1f\u5931\u53ef\u80fd\u6703\u5c0d\u6578\u64da\u5eab\u7684\u904b\u884c\u9020\u6210\u56b4\u91cd\u5f71\u97ff\uff0c\u56e0\u6b64\uff0c\u5b9a\u671f\u5099\u4efd\u548c\u6709\u6548\u7684\u6062\u5fa9\u7b56\u7565\u662f\u5fc5\u4e0d\u53ef\u5c11\u7684\u3002\u901a\u904e\u4e0a\u8ff0\u6b65\u9a5f\uff0c\u6578\u64da\u5eab\u7ba1\u7406\u54e1\u53ef\u4ee5\u6709\u6548\u5730\u61c9\u5c0dRedo\u65e5\u8a8c\u4e1f\u5931\u7684\u60c5\u6cc1\uff0c\u78ba\u4fdd\u6578\u64da\u7684\u5b89\u5168\u6027\u548c\u5b8c\u6574\u6027\u3002<\/p>\n<p>\u5982\u9700\u4e86\u89e3\u66f4\u591a\u6709\u95dc<em><a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a><\/em>\u548c<em><a href=\"https:\/\/server.hk\">\u4f3a\u670d\u5668<\/a><\/em>\u7684\u8cc7\u8a0a\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e86\u89e3Oracle\u5099\u4efd\u4e2dredo\u4e1f\u5931\u7684\u539f\u56e0\u53ca\u6062\u5fa9\u7684\u5be6\u969b\u64cd\u4f5c\u6b65\u9a5f\uff0c\u78ba\u4fdd\u6578\u64da\u5b89\u5168\u8207\u7cfb\u7d71\u7a69\u5b9a\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-94704","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/94704","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=94704"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/94704\/revisions"}],"predecessor-version":[{"id":94705,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/94704\/revisions\/94705"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=94704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=94704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=94704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}