小编给大家分享一下oracle中expdp和impdp如何导出导入表空间,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!
[oracle@hr1 opt]$ mkdir -p infor1
SQL> create directory scprd as '/opt/infor1';
Directory created.
SQL> grant read,write on directory scprd to system;
Grant succeeded.
[oracle@hr1 opt]$ expdp system/oracle@HR dumpfile=tablespace_hr.dmp schemas=hr2 DIRECTORY=hr LOGFILE=hr2_exp.log
[oracle@hr1 opt]$ impdp system/oracle@HR directory=hr dumpfile=tablespace_hr.dmp remap_schema=hr2:hr6, remap_tablespace=hr2_DATA:hr6_DATA logfile=hr6_imp.log
用remap实现schema和tablespace的导入。
有时候import会报错:
Import: Release 11.2.0.3.0 - Production on Sat Dec 23 23:18:22 2017
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 536
ORA-29283: invalid file operation
重复执行几次就可以了。
以上是“oracle中expdp和impdp如何导出导入表空间”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注亿速云行业资讯频道!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。