{"id":6113,"date":"2024-11-14T09:12:38","date_gmt":"2024-11-14T01:12:38","guid":{"rendered":"https:\/\/fwq.ai\/blog\/6113\/"},"modified":"2024-11-14T09:12:38","modified_gmt":"2024-11-14T01:12:38","slug":"oracle%e6%95%b0%e6%8d%ae%e5%ba%93%e5%a6%82%e4%bd%95%e5%af%bc%e5%87%ba%e6%95%b0%e6%8d%ae","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/6113\/","title":{"rendered":"oracle\u6570\u636e\u5e93\u5982\u4f55\u5bfc\u51fa\u6570\u636e"},"content":{"rendered":"<blockquote><p>\n  \u4ece oracle \u6570\u636e\u5e93\u5bfc\u51fa\u6570\u636e\u7684\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u5bfc\u51fa\u6570\u636e\u6cf5\uff1aexpdp username\/password tables=table_name directory=directory_name dumpfile=dumpfile_name.dmp\u4f7f\u7528\u5bfc\u51fa\u5b9e\u7528\u7a0b\u5e8f\uff1aexp username\/password file=dumpfile_name.dmp tables=table_name\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202406\/13\/2024061300062138497.jpg\" class=\"aligncenter\" title=\"oracle\u6570\u636e\u5e93\u5982\u4f55\u5bfc\u51fa\u6570\u636e\u63d2\u56fe\" alt=\"oracle\u6570\u636e\u5e93\u5982\u4f55\u5bfc\u51fa\u6570\u636e\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u4ece Oracle \u6570\u636e\u5e93\u5bfc\u51fa\u6570\u636e<\/strong><\/p>\n<p>\u5bfc\u51fa Oracle \u6570\u636e\u5e93\u6570\u636e\u662f\u4e00\u79cd\u5e38\u89c1\u64cd\u4f5c\uff0c\u53ef\u7528\u4e8e\u6570\u636e\u5907\u4efd\u3001\u8fc1\u79fb\u548c\u6570\u636e\u5206\u6790\u3002\u672c\u6587\u5c06\u63d0\u4f9b\u4ece Oracle \u6570\u636e\u5e93\u5bfc\u51fa\u6570\u636e\u7684\u9010\u6b65\u6307\u5357\u3002<\/p>\n<p><strong>\u6b65\u9aa4\uff1a<\/strong><\/p>\n<p><strong>1. \u8fde\u63a5\u5230\u6570\u636e\u5e93<\/strong><\/p>\n<p>\u4f7f\u7528 SQL*Plus \u6216\u5176\u4ed6\u6570\u636e\u5e93\u5ba2\u6237\u7aef\u5de5\u5177\u8fde\u63a5\u5230 Oracle \u6570\u636e\u5e93\u3002<\/p>\n<p><strong>2. \u9009\u62e9\u5bfc\u51fa\u65b9\u6cd5<\/strong><\/p>\n<p>Oracle \u63d0\u4f9b\u4e86\u591a\u79cd\u5bfc\u51fa\u65b9\u6cd5\uff0c\u5305\u62ec\uff1a<\/p>\n<ul>\n<li> <strong>\u5bfc\u51fa\u6570\u636e\u6cf5<\/strong>\uff1a\u4e00\u79cd\u5feb\u901f\u3001\u53ef\u9760\u7684\u65b9\u6cd5\uff0c\u7528\u4e8e\u5bfc\u51fa\u5927\u578b\u6570\u636e\u96c6\u3002<\/li>\n<li> <strong>\u5bfc\u51fa\u5b9e\u7528\u7a0b\u5e8f (exp)<\/strong>\uff1a\u4e00\u79cd\u8f83\u65e7\u7684\u65b9\u6cd5\uff0c\u4f46\u5bf9\u4e8e\u5bfc\u51fa\u8f83\u5c0f\u7684\u6570\u636e\u96c6\u4ecd\u7136\u5f88\u6709\u7528\u3002<\/li>\n<\/ul>\n<p><strong>3. \u4f7f\u7528\u5bfc\u51fa\u6570\u636e\u6cf5\u5bfc\u51fa\u6570\u636e<\/strong><\/p>\n<p>\u8981\u4f7f\u7528\u5bfc\u51fa\u6570\u636e\u6cf5\u5bfc\u51fa\u6570\u636e\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>expdp username\/password tables=table_name directory=directory_name dumpfile=dumpfile_name.dmp<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5176\u4e2d\uff1a<\/p>\n<ul>\n<li>username \u548c password \u662f\u6570\u636e\u5e93\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002<\/li>\n<li>tables \u662f\u8981\u5bfc\u51fa\u7684\u8868\u540d\uff08\u53ef\u4ee5\u4f7f\u7528\u901a\u914d\u7b26\uff09\u3002<\/li>\n<li>directory \u662f\u8981\u5bfc\u51fa\u6570\u636e\u5230\u7684\u76ee\u5f55\u3002<\/li>\n<li>dumpfile \u662f\u5bfc\u51fa\u7684\u6570\u636e\u6587\u4ef6\u7684\u6587\u4ef6\u540d\u3002<\/li>\n<\/ul>\n<p><strong>4. \u4f7f\u7528\u5bfc\u51fa\u5b9e\u7528\u7a0b\u5e8f\u5bfc\u51fa\u6570\u636e<\/strong><\/p>\n<p>\u8981\u4f7f\u7528\u5bfc\u51fa\u5b9e\u7528\u7a0b\u5e8f\u5bfc\u51fa\u6570\u636e\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>exp username\/password file=dumpfile_name.dmp tables=table_name<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5176\u4e2d\uff1a<\/p>\n<ul>\n<li>username \u548c password \u662f\u6570\u636e\u5e93\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002<\/li>\n<li>file \u662f\u5bfc\u51fa\u7684\u6570\u636e\u6587\u4ef6\u7684\u6587\u4ef6\u540d\u3002<\/li>\n<li>tables \u662f\u8981\u5bfc\u51fa\u7684\u8868\u540d\uff08\u53ef\u4ee5\u4f7f\u7528\u901a\u914d\u7b26\uff09\u3002<\/li>\n<\/ul>\n<p><strong>5. \u9a8c\u8bc1\u5bfc\u51fa<\/strong><\/p>\n<p>\u5bfc\u51fa\u5b8c\u6210\u540e\uff0c\u9a8c\u8bc1\u5bfc\u51fa\u7684\u6570\u636e\u6587\u4ef6\u662f\u5426\u5b8c\u6574\u65e0\u635f\u574f\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>impdp username\/password directory=directory_name dumpfile=dumpfile_name.dmp<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5982\u679c\u4e0d\u51fa\u73b0\u9519\u8bef\u6d88\u606f\uff0c\u5219\u5bfc\u51fa\u6210\u529f\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u6570\u636e\u5e93\u5982\u4f55\u5bfc\u51fa\u6570\u636e\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>\u4ece oracle \u6570\u636e\u5e93\u5bfc\u51fa\u6570\u636e\u7684\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u5bfc\u51fa\u6570\u636e\u6cf5\uff1aexpdp username\/password tables=table_name directory=directory_name dumpfile=dumpfile_name.dmp\u4f7f\u7528\u5bfc\u51fa\u5b9e\u7528\u7a0b\u5e8f\uff1aexp username\/password file=dumpfile_name.dmp tables=table_name \u5982\u4f55\u4ece Oracle \u6570\u636e\u5e93\u5bfc\u51fa\u6570\u636e \u5bfc\u51fa Oracle \u6570\u636e\u5e93\u6570\u636e\u662f\u4e00\u79cd\u5e38\u89c1\u64cd\u4f5c\uff0c\u53ef\u7528\u4e8e\u6570\u636e\u5907\u4efd\u3001\u8fc1\u79fb\u548c\u6570\u636e\u5206\u6790\u3002\u672c\u6587\u5c06\u63d0\u4f9b\u4ece Oracle \u6570\u636e\u5e93\u5bfc\u51fa\u6570\u636e\u7684\u9010\u6b65\u6307\u5357\u3002 \u6b65\u9aa4\uff1a 1. \u8fde\u63a5\u5230\u6570\u636e\u5e93 \u4f7f\u7528 SQL*Plus \u6216\u5176\u4ed6\u6570\u636e\u5e93\u5ba2\u6237\u7aef\u5de5\u5177\u8fde\u63a5\u5230 Oracle \u6570\u636e\u5e93\u3002 2. \u9009\u62e9\u5bfc\u51fa\u65b9\u6cd5 Oracle \u63d0\u4f9b\u4e86\u591a\u79cd\u5bfc\u51fa\u65b9\u6cd5\uff0c\u5305\u62ec\uff1a \u5bfc\u51fa\u6570\u636e\u6cf5\uff1a\u4e00\u79cd\u5feb\u901f\u3001\u53ef\u9760\u7684\u65b9\u6cd5\uff0c\u7528\u4e8e\u5bfc\u51fa\u5927\u578b\u6570\u636e\u96c6\u3002 \u5bfc\u51fa\u5b9e\u7528\u7a0b\u5e8f (exp)\uff1a\u4e00\u79cd\u8f83\u65e7\u7684\u65b9\u6cd5\uff0c\u4f46\u5bf9\u4e8e\u5bfc\u51fa\u8f83\u5c0f\u7684\u6570\u636e\u96c6\u4ecd\u7136\u5f88\u6709\u7528\u3002 3. \u4f7f\u7528\u5bfc\u51fa\u6570\u636e\u6cf5\u5bfc\u51fa\u6570\u636e \u8981\u4f7f\u7528\u5bfc\u51fa\u6570\u636e\u6cf5\u5bfc\u51fa\u6570\u636e\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a expdp username\/password tables=table_name directory=directory_name dumpfile=dumpfile_name.dmp \u767b\u5f55\u540e\u590d\u5236 \u5176\u4e2d\uff1a username \u548c password \u662f\u6570\u636e\u5e93\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002 tables \u662f\u8981\u5bfc\u51fa\u7684\u8868\u540d\uff08\u53ef\u4ee5\u4f7f\u7528\u901a\u914d\u7b26\uff09\u3002 directory \u662f\u8981\u5bfc\u51fa\u6570\u636e\u5230\u7684\u76ee\u5f55\u3002 dumpfile \u662f\u5bfc\u51fa\u7684\u6570\u636e\u6587\u4ef6\u7684\u6587\u4ef6\u540d\u3002 4. \u4f7f\u7528\u5bfc\u51fa\u5b9e\u7528\u7a0b\u5e8f\u5bfc\u51fa\u6570\u636e [&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-6113","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6113","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=6113"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6113\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=6113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=6113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=6113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}