{"id":197684,"date":"2024-11-14T09:51:23","date_gmt":"2024-11-14T01:51:23","guid":{"rendered":"https:\/\/server.hk\/cnblog\/197684\/"},"modified":"2024-11-14T09:51:24","modified_gmt":"2024-11-14T01:51:24","slug":"%e5%88%a9%e7%94%a8rman%e5%bf%ab%e9%80%9f%e8%a4%87%e8%a3%bd%e4%bd%a0%e7%9a%84%e6%95%b8%e6%93%9a%e5%ba%ab-%e4%bd%bf%e7%94%a8rman%e8%a4%87%e8%a3%bd%e6%95%b8%e6%93%9a%e5%ba%ab","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/197684\/","title":{"rendered":"\u5229\u7528RMAN\u5feb\u901f\u8907\u88fd\u4f60\u7684\u6578\u64da\u5eab (\u4f7f\u7528rman\u8907\u88fd\u6578\u64da\u5eab)"},"content":{"rendered":"<h1 id=\"%e5%88%a9%e7%94%a8rman%e5%bf%ab%e9%80%9f%e8%a4%87%e8%a3%bd%e4%bd%a0%e7%9a%84%e6%95%b8%e6%93%9a%e5%ba%ab-%e4%bd%bf%e7%94%a8rman%e8%a4%87%e8%a3%bd%e6%95%b8%e6%93%9a%e5%ba%ab-WRwHOCAjGr\">\u5229\u7528RMAN\u5feb\u901f\u8907\u88fd\u4f60\u7684\u6578\u64da\u5eab (\u4f7f\u7528rman\u8907\u88fd\u6578\u64da\u5eab)<\/h1>\n<p>\u5728\u6578\u64da\u5eab\u7ba1\u7406\u4e2d\uff0c\u6578\u64da\u7684\u5b89\u5168\u6027\u548c\u53ef\u7528\u6027\u662f\u81f3\u95dc\u91cd\u8981\u7684\u3002Oracle\u7684RMAN\uff08Recovery Manager\uff09\u662f\u4e00\u500b\u5f37\u5927\u7684\u5de5\u5177\uff0c\u5c08\u9580\u7528\u65bc\u5099\u4efd\u548c\u6062\u5fa9Oracle\u6578\u64da\u5eab\u3002\u9664\u4e86\u5099\u4efd\u548c\u6062\u5fa9\u529f\u80fd\u5916\uff0cRMAN\u9084\u53ef\u4ee5\u7528\u65bc\u5feb\u901f\u8907\u88fd\u6578\u64da\u5eab\uff0c\u9019\u5c0d\u65bc\u6e2c\u8a66\u74b0\u5883\u7684\u5efa\u7acb\u6216\u6578\u64da\u5eab\u7684\u9077\u79fb\u975e\u5e38\u6709\u7528\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u5982\u4f55\u5229\u7528RMAN\u5feb\u901f\u8907\u88fd\u4f60\u7684\u6578\u64da\u5eab\u3002<\/p>\n<h2 id=\"rman%e7%9a%84%e5%9f%ba%e6%9c%ac%e6%a6%82%e5%bf%b5-WRwHOCAjGr\">RMAN\u7684\u57fa\u672c\u6982\u5ff5<\/h2>\n<p>RMAN\u662f\u4e00\u500b\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u63d0\u4f9b\u4e86\u4e00\u500b\u7c21\u55ae\u7684\u754c\u9762\u4f86\u7ba1\u7406\u6578\u64da\u5eab\u7684\u5099\u4efd\u548c\u6062\u5fa9\u3002\u5b83\u652f\u6301\u589e\u91cf\u5099\u4efd\u3001\u5168\u5099\u4efd\u3001\u4ee5\u53ca\u57fa\u65bc\u6620\u50cf\u7684\u5099\u4efd\uff0c\u4e26\u4e14\u80fd\u5920\u81ea\u52d5\u5316\u8a31\u591a\u5e38\u898b\u7684\u5099\u4efd\u4efb\u52d9\u3002RMAN\u7684\u512a\u52e2\u5728\u65bc\u5b83\u80fd\u5920\u76f4\u63a5\u8207Oracle\u6578\u64da\u5eab\u9032\u884c\u4ea4\u4e92\uff0c\u4e26\u4e14\u80fd\u5920\u6709\u6548\u5730\u7ba1\u7406\u5099\u4efd\u96c6\u548c\u6062\u5fa9\u9ede\u3002<\/p>\n<h2 id=\"%e7%82%ba%e4%bb%80%e9%ba%bc%e4%bd%bf%e7%94%a8rman%e8%a4%87%e8%a3%bd%e6%95%b8%e6%93%9a%e5%ba%ab-WRwHOCAjGr\">\u70ba\u4ec0\u9ebc\u4f7f\u7528RMAN\u8907\u88fd\u6578\u64da\u5eab<\/h2>\n<ul>\n<li><strong>\u9ad8\u6548\u6027\uff1a<\/strong>RMAN\u80fd\u5920\u5feb\u901f\u8907\u88fd\u6578\u64da\u5eab\uff0c\u56e0\u70ba\u5b83\u53ea\u9700\u8981\u8907\u88fd\u5fc5\u8981\u7684\u6578\u64da\u584a\uff0c\u800c\u4e0d\u662f\u6574\u500b\u6578\u64da\u5eab\u3002<\/li>\n<li><strong>\u4e00\u81f4\u6027\uff1a<\/strong>\u4f7f\u7528RMAN\u9032\u884c\u8907\u88fd\u6642\uff0c\u80fd\u5920\u78ba\u4fdd\u6578\u64da\u7684\u4e00\u81f4\u6027\uff0c\u56e0\u70ba\u5b83\u6703\u5728\u8907\u88fd\u904e\u7a0b\u4e2d\u9396\u5b9a\u6578\u64da\u5eab\u3002<\/li>\n<li><strong>\u7c21\u5316\u7ba1\u7406\uff1a<\/strong>RMAN\u63d0\u4f9b\u4e86\u7c21\u55ae\u7684\u547d\u4ee4\u4f86\u57f7\u884c\u8907\u88fd\uff0c\u6e1b\u5c11\u4e86\u624b\u52d5\u64cd\u4f5c\u7684\u932f\u8aa4\u98a8\u96aa\u3002<\/li>\n<\/ul>\n<h2 id=\"%e4%bd%bf%e7%94%a8rman%e8%a4%87%e8%a3%bd%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e6%ad%a5%e9%a9%9f-WRwHOCAjGr\">\u4f7f\u7528RMAN\u8907\u88fd\u6578\u64da\u5eab\u7684\u6b65\u9a5f<\/h2>\n<p>\u4ee5\u4e0b\u662f\u4f7f\u7528RMAN\u8907\u88fd\u6578\u64da\u5eab\u7684\u57fa\u672c\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e6%ba%96%e5%82%99%e7%92%b0%e5%a2%83-WRwHOCAjGr\">1. \u6e96\u5099\u74b0\u5883<\/h3>\n<p>\u5728\u958b\u59cb\u4e4b\u524d\uff0c\u78ba\u4fdd\u4f60\u6709\u8db3\u5920\u7684\u78c1\u789f\u7a7a\u9593\u4f86\u5b58\u653e\u8907\u88fd\u7684\u6578\u64da\u5eab\u3002\u6b64\u5916\uff0c\u78ba\u4fdd\u6e90\u6578\u64da\u5eab\u548c\u76ee\u6a19\u6578\u64da\u5eab\u90fd\u5df2\u7d93\u5b89\u88dd\u4e26\u914d\u7f6e\u597dOracle\u3002<\/p>\n<h3 id=\"2-%e9%80%a3%e6%8e%a5%e5%88%b0rman-WRwHOCAjGr\">2. \u9023\u63a5\u5230RMAN<\/h3>\n<pre><code>rman target \/<\/code><\/pre>\n<p>\u9019\u689d\u547d\u4ee4\u5c07\u9023\u63a5\u5230\u7576\u524d\u7684Oracle\u6578\u64da\u5eab\u5be6\u4f8b\u3002<\/p>\n<h3 id=\"3-%e9%96%8b%e5%a7%8b%e8%a4%87%e8%a3%bd%e6%95%b8%e6%93%9a%e5%ba%ab-WRwHOCAjGr\">3. \u958b\u59cb\u8907\u88fd\u6578\u64da\u5eab<\/h3>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u8907\u88fd\u6578\u64da\u5eab\uff1a<\/p>\n<pre><code>RUN {\n    ALLOCATE CHANNEL c1 DEVICE TYPE DISK;\n    DUPLICATE DATABASE TO 'new_db' FROM ACTIVE DATABASE;\n    RELEASE CHANNEL c1;\n}<\/code><\/pre>\n<p>\u9019\u6bb5\u4ee3\u78bc\u5c07\u5f9e\u7576\u524d\u6d3b\u52d5\u6578\u64da\u5eab\u8907\u88fd\u6578\u64da\uff0c\u4e26\u5c07\u5176\u547d\u540d\u70ba\u201cnew_db\u201d\u3002<\/p>\n<h3 id=\"4-%e5%ae%8c%e6%88%90%e8%a4%87%e8%a3%bd-WRwHOCAjGr\">4. \u5b8c\u6210\u8907\u88fd<\/h3>\n<p>\u8907\u88fd\u904e\u7a0b\u5b8c\u6210\u5f8c\uff0c\u6aa2\u67e5\u76ee\u6a19\u6578\u64da\u5eab\u7684\u72c0\u614b\uff0c\u78ba\u4fdd\u6240\u6709\u6578\u64da\u90fd\u5df2\u6b63\u78ba\u8907\u88fd\u3002<\/p>\n<h2 id=\"%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a0%85-WRwHOCAjGr\">\u6ce8\u610f\u4e8b\u9805<\/h2>\n<ul>\n<li>\u5728\u8907\u88fd\u904e\u7a0b\u4e2d\uff0c\u78ba\u4fdd\u6e90\u6578\u64da\u5eab\u8655\u65bc\u53ef\u7528\u72c0\u614b\uff0c\u4e26\u4e14\u6c92\u6709\u9032\u884c\u4efb\u4f55\u91cd\u5927\u7684\u6578\u64da\u66f4\u6539\u3002<\/li>\n<li>\u5b9a\u671f\u6aa2\u67e5RMAN\u7684\u65e5\u8a8c\uff0c\u4ee5\u78ba\u4fdd\u6c92\u6709\u932f\u8aa4\u767c\u751f\u3002<\/li>\n<li>\u5728\u751f\u7522\u74b0\u5883\u4e2d\u9032\u884c\u8907\u88fd\u6642\uff0c\u5efa\u8b70\u5728\u4f4e\u5cf0\u6642\u6bb5\u9032\u884c\uff0c\u4ee5\u6e1b\u5c11\u5c0d\u696d\u52d9\u7684\u5f71\u97ff\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b5%90%e8%ab%96-WRwHOCAjGr\">\u7d50\u8ad6<\/h2>\n<p>\u5229\u7528RMAN\u5feb\u901f\u8907\u88fd\u6578\u64da\u5eab\u662f\u4e00\u500b\u9ad8\u6548\u4e14\u53ef\u9760\u7684\u65b9\u6cd5\uff0c\u80fd\u5920\u5e6b\u52a9\u6578\u64da\u5eab\u7ba1\u7406\u54e1\u5728\u4e0d\u540c\u74b0\u5883\u4e2d\u5feb\u901f\u90e8\u7f72\u6578\u64da\u5eab\u3002\u901a\u904e\u7c21\u55ae\u7684\u547d\u4ee4\u548c\u6b65\u9a5f\uff0cRMAN\u4f7f\u5f97\u6578\u64da\u5eab\u7684\u8907\u88fd\u8b8a\u5f97\u66f4\u52a0\u5bb9\u6613\u548c\u5b89\u5168\u3002\u5c0d\u65bc\u9700\u8981\u9ad8\u53ef\u7528\u6027\u548c\u6578\u64da\u4fdd\u8b77\u7684\u4f01\u696d\u4f86\u8aaa\uff0c\u638c\u63e1RMAN\u7684\u4f7f\u7528\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002<\/p>\n<p>\u5982\u679c\u4f60\u6b63\u5728\u5c0b\u627e\u7a69\u5b9a\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u89e3\u6c7a\u65b9\u6848\u4f86\u652f\u6301\u4f60\u7684\u6578\u64da\u5eab\u904b\u884c\uff0cServer.HK \u63d0\u4f9b\u591a\u7a2e\u9078\u64c7\uff0c\u6eff\u8db3\u4e0d\u540c\u9700\u6c42\u7684\u5ba2\u6236\u3002\u7121\u8ad6\u662f\u5c0f\u578b\u4f01\u696d\u9084\u662f\u5927\u578b\u6a5f\u69cb\uff0c\u6211\u5011\u7684 <a href=\"https:\/\/server.hk\">\u4e91\u670d\u52a1\u5668<\/a> \u90fd\u80fd\u70ba\u4f60\u63d0\u4f9b\u53ef\u9760\u7684\u652f\u6301\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5feb\u901f\u5b78\u7fd2\u5982\u4f55\u5229\u7528RMAN\u8f15\u9b06\u8907\u88fd\u4f60\u7684\u6578\u64da\u5eab\uff0c\u63d0\u5347\u6578\u64da\u7ba1\u7406\u6548\u7387\uff0c\u78ba\u4fdd\u6578\u64da\u5b89\u5168\u8207\u53ef\u9760\u6027\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-197684","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/197684","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=197684"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/197684\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=197684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=197684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=197684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}