{"id":95752,"date":"2024-10-20T03:41:17","date_gmt":"2024-10-19T19:41:17","guid":{"rendered":"https:\/\/server.hk\/cnblog\/95752\/"},"modified":"2024-10-20T03:41:18","modified_gmt":"2024-10-19T19:41:18","slug":"oracle%e6%95%b8%e6%93%9a%e5%ba%ab%e9%81%b7%e7%a7%bb%e6%8c%87%e5%8d%97%ef%bc%9a%e5%bf%ab%e9%80%9fmove%e6%95%b8%e6%93%9a%e7%9a%84%e6%8a%80%e5%b7%a7-oracle%e6%95%b8%e6%93%9a%e5%ba%ab-move","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/95752\/","title":{"rendered":"Oracle\u6578\u64da\u5eab\u9077\u79fb\u6307\u5357\uff1a\u5feb\u901fmove\u6578\u64da\u7684\u6280\u5de7 (oracle\u6578\u64da\u5eab move)"},"content":{"rendered":"<h1 id=\"oracle%e6%95%b8%e6%93%9a%e5%ba%ab%e9%81%b7%e7%a7%bb%e6%8c%87%e5%8d%97%ef%bc%9a%e5%bf%ab%e9%80%9fmove%e6%95%b8%e6%93%9a%e7%9a%84%e6%8a%80%e5%b7%a7-nRbxPqeghj\">Oracle\u6578\u64da\u5eab\u9077\u79fb\u6307\u5357\uff1a\u5feb\u901fmove\u6578\u64da\u7684\u6280\u5de7<\/h1>\n<p>\u5728\u7576\u4eca\u6578\u64da\u9a45\u52d5\u7684\u4e16\u754c\u4e2d\uff0c\u6578\u64da\u5eab\u7684\u9077\u79fb\u6210\u70ba\u4f01\u696d\u904b\u71df\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u90e8\u5206\u3002Oracle\u6578\u64da\u5eab\u4f5c\u70ba\u4e00\u500b\u5f37\u5927\u7684\u6578\u64da\u7ba1\u7406\u7cfb\u7d71\uff0c\u7d93\u5e38\u9700\u8981\u9032\u884c\u9077\u79fb\u4ee5\u9069\u61c9\u696d\u52d9\u9700\u6c42\u7684\u8b8a\u5316\u3002\u672c\u6587\u5c07\u63a2\u8a0eOracle\u6578\u64da\u5eab\u7684\u9077\u79fb\u904e\u7a0b\uff0c\u4e26\u63d0\u4f9b\u4e00\u4e9b\u5feb\u901f\u79fb\u52d5\u6578\u64da\u7684\u6280\u5de7\u3002<\/p>\n<h2 id=\"%e9%81%b7%e7%a7%bb%e7%9a%84%e6%ba%96%e5%82%99%e5%b7%a5%e4%bd%9c-nRbxPqeghj\">\u9077\u79fb\u7684\u6e96\u5099\u5de5\u4f5c<\/h2>\n<p>\u5728\u958b\u59cb\u9077\u79fb\u4e4b\u524d\uff0c\u9032\u884c\u5145\u5206\u7684\u6e96\u5099\u662f\u81f3\u95dc\u91cd\u8981\u7684\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u95dc\u9375\u6b65\u9a5f\uff1a<\/p>\n<ul>\n<li><strong>\u8a55\u4f30\u7576\u524d\u74b0\u5883\uff1a<\/strong>\u4e86\u89e3\u73fe\u6709\u6578\u64da\u5eab\u7684\u7d50\u69cb\u3001\u5927\u5c0f\u548c\u6027\u80fd\u9700\u6c42\u3002<\/li>\n<li><strong>\u9078\u64c7\u9077\u79fb\u65b9\u6cd5\uff1a<\/strong>\u6839\u64da\u9700\u6c42\u9078\u64c7\u5408\u9069\u7684\u9077\u79fb\u65b9\u6cd5\uff0c\u5982\u6578\u64da\u6cf5\uff08Data Pump\uff09\u3001\u8cc7\u6599\u5eab\u93c8\u63a5\uff08Database Link\uff09\u6216\u4f7f\u7528Oracle GoldenGate\u3002<\/li>\n<li><strong>\u5099\u4efd\u6578\u64da\uff1a<\/strong>\u5728\u9032\u884c\u4efb\u4f55\u9077\u79fb\u4e4b\u524d\uff0c\u52d9\u5fc5\u5099\u4efd\u6240\u6709\u6578\u64da\uff0c\u4ee5\u9632\u6b62\u6578\u64da\u4e1f\u5931\u3002<\/li>\n<\/ul>\n<h2 id=\"oracle%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e9%81%b7%e7%a7%bb%e6%96%b9%e6%b3%95-nRbxPqeghj\">Oracle\u6578\u64da\u5eab\u7684\u9077\u79fb\u65b9\u6cd5<\/h2>\n<p>Oracle\u63d0\u4f9b\u4e86\u591a\u7a2e\u6578\u64da\u5eab\u9077\u79fb\u7684\u65b9\u6cd5\uff0c\u4ee5\u4e0b\u662f\u5e7e\u7a2e\u5e38\u898b\u7684\u9078\u64c7\uff1a<\/p>\n<h3 id=\"1-%e4%bd%bf%e7%94%a8%e6%95%b8%e6%93%9a%e6%b3%b5%ef%bc%88data-pump%ef%bc%89-nRbxPqeghj\">1. \u4f7f\u7528\u6578\u64da\u6cf5\uff08Data Pump\uff09<\/h3>\n<p>\u6578\u64da\u6cf5\u662f\u4e00\u7a2e\u9ad8\u6548\u7684\u6578\u64da\u5c0e\u51fa\u548c\u5c0e\u5165\u5de5\u5177\uff0c\u9069\u5408\u5927\u898f\u6a21\u6578\u64da\u9077\u79fb\u3002\u4f7f\u7528\u6578\u64da\u6cf5\u7684\u57fa\u672c\u6b65\u9a5f\u5982\u4e0b\uff1a<\/p>\n<pre><code>-- \u5c0e\u51fa\u6578\u64da\nexpdp username\/password DIRECTORY=dir_name DUMPFILE=dumpfile.dmp LOGFILE=export.log\n\n-- \u5c0e\u5165\u6578\u64da\nimpdp username\/password DIRECTORY=dir_name DUMPFILE=dumpfile.dmp LOGFILE=import.log<\/code><\/pre>\n<h3 id=\"2-%e4%bd%bf%e7%94%a8%e8%b3%87%e6%96%99%e5%ba%ab%e9%8f%88%e6%8e%a5%ef%bc%88database-link%ef%bc%89-nRbxPqeghj\">2. \u4f7f\u7528\u8cc7\u6599\u5eab\u93c8\u63a5\uff08Database Link\uff09<\/h3>\n<p>\u8cc7\u6599\u5eab\u93c8\u63a5\u5141\u8a31\u5728\u4e0d\u540c\u7684Oracle\u6578\u64da\u5eab\u4e4b\u9593\u76f4\u63a5\u9032\u884c\u6578\u64da\u50b3\u8f38\u3002\u9019\u7a2e\u65b9\u6cd5\u9069\u5408\u9700\u8981\u5be6\u6642\u6578\u64da\u9077\u79fb\u7684\u60c5\u6cc1\u3002<\/p>\n<pre><code>INSERT INTO target_table@remote_db\nSELECT * FROM source_table;<\/code><\/pre>\n<h3 id=\"3-%e4%bd%bf%e7%94%a8oracle-goldengate-nRbxPqeghj\">3. \u4f7f\u7528Oracle GoldenGate<\/h3>\n<p>Oracle GoldenGate\u662f\u4e00\u500b\u5be6\u6642\u6578\u64da\u8907\u88fd\u548c\u9077\u79fb\u89e3\u6c7a\u65b9\u6848\uff0c\u9069\u5408\u9700\u8981\u9ad8\u53ef\u7528\u6027\u548c\u6700\u5c0f\u505c\u6a5f\u6642\u9593\u7684\u74b0\u5883\u3002\u5b83\u652f\u6301\u591a\u7a2e\u6578\u64da\u5eab\u5e73\u53f0\u4e4b\u9593\u7684\u6578\u64da\u9077\u79fb\u3002<\/p>\n<h2 id=\"%e9%81%b7%e7%a7%bb%e5%be%8c%e7%9a%84%e9%a9%97%e8%ad%89-nRbxPqeghj\">\u9077\u79fb\u5f8c\u7684\u9a57\u8b49<\/h2>\n<p>\u6578\u64da\u9077\u79fb\u5b8c\u6210\u5f8c\uff0c\u9032\u884c\u9a57\u8b49\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u9a57\u8b49\u6b65\u9a5f\uff1a<\/p>\n<ul>\n<li><strong>\u6aa2\u67e5\u6578\u64da\u5b8c\u6574\u6027\uff1a<\/strong>\u78ba\u4fdd\u6240\u6709\u6578\u64da\u90fd\u5df2\u6b63\u78ba\u9077\u79fb\uff0c\u4e26\u4e14\u6c92\u6709\u4e1f\u5931\u6216\u640d\u58de\u3002<\/li>\n<li><strong>\u6027\u80fd\u6e2c\u8a66\uff1a<\/strong>\u6e2c\u8a66\u65b0\u74b0\u5883\u7684\u6027\u80fd\uff0c\u78ba\u4fdd\u5176\u6eff\u8db3\u696d\u52d9\u9700\u6c42\u3002<\/li>\n<li><strong>\u61c9\u7528\u6e2c\u8a66\uff1a<\/strong>\u78ba\u4fdd\u6240\u6709\u61c9\u7528\u7a0b\u5e8f\u80fd\u5920\u6b63\u5e38\u9023\u63a5\u4e26\u4f7f\u7528\u65b0\u7684\u6578\u64da\u5eab\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b5%90%e8%ab%96-nRbxPqeghj\">\u7d50\u8ad6<\/h2>\n<p>Oracle\u6578\u64da\u5eab\u7684\u9077\u79fb\u662f\u4e00\u500b\u8907\u96dc\u4f46\u5fc5\u8981\u7684\u904e\u7a0b\u3002\u901a\u904e\u5145\u5206\u7684\u6e96\u5099\u3001\u9078\u64c7\u5408\u9069\u7684\u9077\u79fb\u65b9\u6cd5\u4ee5\u53ca\u9032\u884c\u5f8c\u7e8c\u9a57\u8b49\uff0c\u53ef\u4ee5\u78ba\u4fdd\u6578\u64da\u7684\u5b89\u5168\u548c\u5b8c\u6574\u6027\u3002\u7121\u8ad6\u662f\u4f7f\u7528\u6578\u64da\u6cf5\u3001\u8cc7\u6599\u5eab\u93c8\u63a5\u9084\u662fOracle GoldenGate\uff0c\u9078\u64c7\u6700\u9069\u5408\u60a8\u9700\u6c42\u7684\u65b9\u6cd5\u5c07\u6709\u52a9\u65bc\u63d0\u9ad8\u9077\u79fb\u7684\u6548\u7387\u548c\u6210\u529f\u7387\u3002<\/p>\n<p>\u5982\u679c\u60a8\u6b63\u5728\u5c0b\u627e\u53ef\u9760\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u89e3\u6c7a\u65b9\u6848\u4f86\u652f\u6301\u60a8\u7684Oracle\u6578\u64da\u5eab\u9077\u79fb\uff0cServer.HK\u63d0\u4f9b\u591a\u7a2e\u9078\u64c7\uff0c\u5e6b\u52a9\u60a8\u8f15\u9b06\u7ba1\u7406\u6578\u64da\u5eab\u74b0\u5883\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a2\u7d22Oracle\u6578\u64da\u5eab\u9077\u79fb\u6307\u5357\uff0c\u638c\u63e1\u5feb\u901f\u79fb\u52d5\u6578\u64da\u7684\u6280\u5de7\uff0c\u78ba\u4fdd\u9ad8\u6548\u3001\u5b89\u5168\u7684\u6578\u64da\u8f49\u79fb\u904e\u7a0b\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-95752","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/95752","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=95752"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/95752\/revisions"}],"predecessor-version":[{"id":95753,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/95752\/revisions\/95753"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=95752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=95752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=95752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}