您好,登錄后才能下訂單哦!
小編給大家分享一下oracle中expdp和impdp如何導(dǎo)出導(dǎo)入表空間,相信大部分人都還不怎么了解,因此分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后大有收獲,下面讓我們一起去了解一下吧!
[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實(shí)現(xiàn)schema和tablespace的導(dǎo)入。
有時(shí)候import會(huì)報(bào)錯(cuò):
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
重復(fù)執(zhí)行幾次就可以了。
以上是“oracle中expdp和impdp如何導(dǎo)出導(dǎo)入表空間”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注億速云行業(yè)資訊頻道!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。