{"id":6087,"date":"2024-11-14T11:24:23","date_gmt":"2024-11-14T03:24:23","guid":{"rendered":"https:\/\/fwq.ai\/blog\/6087\/"},"modified":"2024-11-14T11:24:23","modified_gmt":"2024-11-14T03:24:23","slug":"oracle%e6%95%b0%e6%8d%ae%e5%ba%93%e5%a6%82%e4%bd%95%e8%87%aa%e5%8a%a8%e5%a4%87%e4%bb%bd","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/6087\/","title":{"rendered":"oracle\u6570\u636e\u5e93\u5982\u4f55\u81ea\u52a8\u5907\u4efd"},"content":{"rendered":"<blockquote><p>\n  \u8981\u542f\u7528 oracle \u4e2d\u7684\u81ea\u52a8\u5907\u4efd\uff0c\u8bf7\u9075\u5faa\u4ee5\u4e0b\u6b65\u9aa4\uff1a1. \u521b\u5efa\u5907\u4efd\u8ba1\u5212\uff1b2. \u542f\u7528\u5907\u4efd\u8ba1\u5212\uff1b3. \u8c03\u5ea6\u5907\u4efd\u7a97\u53e3\u3002\u81ea\u52a8\u5907\u4efd\u4f1a\u81ea\u52a8\u8fde\u63a5\u6570\u636e\u5e93\uff0c\u8bc6\u522b\u66f4\u6539\uff0c\u521b\u5efa\u589e\u91cf\u5907\u4efd\uff0c\u5b58\u50a8\u5907\u4efd\u5e76\u6e05\u7406\u65e7\u5907\u4efd\uff0c\u4ece\u800c\u51cf\u8f7b\u7ba1\u7406\u8d1f\u62c5\uff0c\u63d0\u9ad8\u6570\u636e\u4fdd\u62a4\uff0c\u63d0\u4f9b\u7248\u672c\u63a7\u5236\uff0c\u4f18\u5316\u6027\u80fd\u5e76\u652f\u6301\u5408\u89c4\u6027\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202406\/12\/2024061222152280417.jpg\" class=\"aligncenter\" title=\"oracle\u6570\u636e\u5e93\u5982\u4f55\u81ea\u52a8\u5907\u4efd\u63d2\u56fe\" alt=\"oracle\u6570\u636e\u5e93\u5982\u4f55\u81ea\u52a8\u5907\u4efd\u63d2\u56fe\" \/><\/p>\n<p><strong>Oracle \u6570\u636e\u5e93\u81ea\u52a8\u5907\u4efd<\/strong><\/p>\n<p><strong>\u5982\u4f55\u542f\u7528\u81ea\u52a8\u5907\u4efd\uff1f<\/strong><\/p>\n<p>\u5728 Oracle \u6570\u636e\u5e93\u4e2d\u542f\u7528\u81ea\u52a8\u5907\u4efd\u9700\u8981\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<p><strong>1. \u521b\u5efa\u5907\u4efd\u8ba1\u5212\uff1a<\/strong><\/p>\n<ul>\n<li>\u4f7f\u7528 RMAN \u5907\u4efd\u5b9e\u7528\u7a0b\u5e8f\uff0c\u521b\u5efa\u5907\u4efd\u8ba1\u5212\uff0c\u6307\u5b9a\u5907\u4efd\u76ee\u6807\u3001\u4fdd\u7559\u7b56\u7565\u548c\u5176\u4ed6\u9009\u9879\u3002<\/li>\n<\/ul>\n<pre>RMAN&gt; create backup plan autobackup_plan target '\/oracle\/backup\/db1' retention policy to redundancy 2;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>2. \u542f\u7528\u5907\u4efd\u8ba1\u5212\uff1a<\/strong><\/p>\n<ul>\n<li>\u5c06\u81ea\u52a8\u5907\u4efd\u8ba1\u5212\u4e0e\u6570\u636e\u5e93\u5173\u8054\uff0c\u4f7f\u5176\u5b9a\u671f\u6267\u884c\u5907\u4efd\u3002<\/li>\n<\/ul>\n<pre>RMAN&gt; enable backup plan autobackup_plan;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>3. \u8c03\u5ea6\u5907\u4efd\u7a97\u53e3\uff1a<\/strong><\/p>\n<ul>\n<li>\u4e3a\u81ea\u52a8\u5907\u4efd\u8bbe\u7f6e\u4e00\u4e2a\u65f6\u95f4\u7a97\u53e3\uff0c\u5728\u8be5\u7a97\u53e3\u5185\u6267\u884c\u5907\u4efd\u3002<\/li>\n<\/ul>\n<pre>RMAN&gt; configure backup window optimize for 1 day starting at 12:00;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u81ea\u52a8\u5907\u4efd\u5982\u4f55\u5de5\u4f5c\uff1f<\/strong><\/p>\n<p>\u5f53\u542f\u7528\u81ea\u52a8\u5907\u4efd\u65f6\uff0cRMAN \u4f1a\u6839\u636e\u914d\u7f6e\u7684\u65f6\u95f4\u8868\u5728\u6307\u5b9a\u7684\u65f6\u95f4\u7a97\u53e3\u5185\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<ul>\n<li> <strong>\u8fde\u63a5\u5230\u6570\u636e\u5e93\uff1a<\/strong>RMAN \u5efa\u7acb\u4e0e\u6570\u636e\u5e93\u7684\u8fde\u63a5\u3002<\/li>\n<li> <strong>\u8bc6\u522b\u66f4\u6539\uff1a<\/strong>RMAN \u6bd4\u8f83\u4e0a\u6b21\u5907\u4efd\u4ee5\u6765\u7684\u6570\u636e\u5e93\u66f4\u6539\u3002<\/li>\n<li> <strong>\u521b\u5efa\u589e\u91cf\u5907\u4efd\uff1a<\/strong>RMAN \u521b\u5efa\u4e00\u4e2a\u5305\u542b\u6570\u636e\u5e93\u4e2d\u66f4\u6539\u5185\u5bb9\u7684\u589e\u91cf\u5907\u4efd\u3002<\/li>\n<li> <strong>\u5b58\u50a8\u5907\u4efd\uff1a<\/strong>\u589e\u91cf\u5907\u4efd\u5b58\u50a8\u5728\u6307\u5b9a\u7684\u5907\u4efd\u76ee\u6807\u4e2d\u3002<\/li>\n<li> <strong>\u6e05\u7406\u65e7\u5907\u4efd\uff1a<\/strong>\u6839\u636e\u4fdd\u7559\u7b56\u7565\uff0cRMAN \u5220\u9664\u4e0d\u518d\u9700\u8981\u7684\u65e7\u5907\u4efd\u3002<\/li>\n<\/ul>\n<p><strong>\u4f18\u52bf\uff1a<\/strong><\/p>\n<p>\u81ea\u52a8\u5907\u4efd\u63d0\u4f9b\u4e86\u4ee5\u4e0b\u4f18\u52bf\uff1a<\/p>\n<ul>\n<li> <strong>\u51cf\u8f7b\u7ba1\u7406\u8d1f\u62c5\uff1a<\/strong>\u81ea\u52a8\u5316\u5907\u4efd\u8fc7\u7a0b\uff0c\u65e0\u9700\u624b\u52a8\u5e72\u9884\u3002<\/li>\n<li> <strong>\u63d0\u9ad8\u6570\u636e\u4fdd\u62a4\uff1a<\/strong>\u5b9a\u671f\u5907\u4efd\u786e\u4fdd\u6570\u636e\u5f97\u5230\u4fdd\u62a4\uff0c\u5373\u4f7f\u53d1\u751f\u60c5\u51b5\u3002<\/li>\n<li> <strong>\u7248\u672c\u63a7\u5236\uff1a<\/strong>\u589e\u91cf\u5907\u4efd\u521b\u5efa\u5907\u4efd\u94fe\uff0c\u5141\u8bb8\u7528\u6237\u6062\u590d\u6570\u636e\u5e93\u5230\u4efb\u4f55\u7279\u5b9a\u65f6\u95f4\u70b9\u3002<\/li>\n<li> <strong>\u6027\u80fd\u4f18\u5316\uff1a<\/strong>\u4f18\u5316\u5907\u4efd\u65f6\u95f4\u7a97\u53e3\u53ef\u6700\u5927\u7a0b\u5ea6\u5730\u51cf\u5c11\u5907\u4efd\u5bf9\u751f\u4ea7\u6570\u636e\u5e93\u7684\u5f71\u54cd\u3002<\/li>\n<li> <strong>\u5408\u89c4\u6027\uff1a<\/strong>\u81ea\u52a8\u5907\u4efd\u652f\u6301\u6570\u636e\u4fdd\u62a4\u548c\u5408\u89c4\u8981\u6c42\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u6570\u636e\u5e93\u5982\u4f55\u81ea\u52a8\u5907\u4efd\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8981\u542f\u7528 oracle \u4e2d\u7684\u81ea\u52a8\u5907\u4efd\uff0c\u8bf7\u9075\u5faa\u4ee5\u4e0b\u6b65\u9aa4\uff1a1. \u521b\u5efa\u5907\u4efd\u8ba1\u5212\uff1b2. \u542f\u7528\u5907\u4efd\u8ba1\u5212\uff1b3. \u8c03\u5ea6\u5907\u4efd\u7a97\u53e3\u3002\u81ea\u52a8\u5907\u4efd\u4f1a\u81ea\u52a8\u8fde\u63a5\u6570\u636e\u5e93\uff0c\u8bc6\u522b\u66f4\u6539\uff0c\u521b\u5efa\u589e\u91cf\u5907\u4efd\uff0c\u5b58\u50a8\u5907\u4efd\u5e76\u6e05\u7406\u65e7\u5907\u4efd\uff0c\u4ece\u800c\u51cf\u8f7b\u7ba1\u7406\u8d1f\u62c5\uff0c\u63d0\u9ad8\u6570\u636e\u4fdd\u62a4\uff0c\u63d0\u4f9b\u7248\u672c\u63a7\u5236\uff0c\u4f18\u5316\u6027\u80fd\u5e76\u652f\u6301\u5408\u89c4\u6027\u3002 Oracle \u6570\u636e\u5e93\u81ea\u52a8\u5907\u4efd \u5982\u4f55\u542f\u7528\u81ea\u52a8\u5907\u4efd\uff1f \u5728 Oracle \u6570\u636e\u5e93\u4e2d\u542f\u7528\u81ea\u52a8\u5907\u4efd\u9700\u8981\u4ee5\u4e0b\u6b65\u9aa4\uff1a 1. \u521b\u5efa\u5907\u4efd\u8ba1\u5212\uff1a \u4f7f\u7528 RMAN \u5907\u4efd\u5b9e\u7528\u7a0b\u5e8f\uff0c\u521b\u5efa\u5907\u4efd\u8ba1\u5212\uff0c\u6307\u5b9a\u5907\u4efd\u76ee\u6807\u3001\u4fdd\u7559\u7b56\u7565\u548c\u5176\u4ed6\u9009\u9879\u3002 RMAN&gt; create backup plan autobackup_plan target &#8216;\/oracle\/backup\/db1&#8217; retention policy to redundancy 2; \u767b\u5f55\u540e\u590d\u5236 2. \u542f\u7528\u5907\u4efd\u8ba1\u5212\uff1a \u5c06\u81ea\u52a8\u5907\u4efd\u8ba1\u5212\u4e0e\u6570\u636e\u5e93\u5173\u8054\uff0c\u4f7f\u5176\u5b9a\u671f\u6267\u884c\u5907\u4efd\u3002 RMAN&gt; enable backup plan autobackup_plan; \u767b\u5f55\u540e\u590d\u5236 3. \u8c03\u5ea6\u5907\u4efd\u7a97\u53e3\uff1a \u4e3a\u81ea\u52a8\u5907\u4efd\u8bbe\u7f6e\u4e00\u4e2a\u65f6\u95f4\u7a97\u53e3\uff0c\u5728\u8be5\u7a97\u53e3\u5185\u6267\u884c\u5907\u4efd\u3002 RMAN&gt; configure backup window optimize for 1 day starting at 12:00; \u767b\u5f55\u540e\u590d\u5236 \u81ea\u52a8\u5907\u4efd\u5982\u4f55\u5de5\u4f5c\uff1f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-6087","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6087","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=6087"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6087\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=6087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=6087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=6087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}