赞
踩
mkdir /data/sharedata/mydump
chown -R oracle:oinstall /data/sharedata/mydump
ORACLE_HOME=/oralce/product/11.2.0.4/dbhome
PATH=$ORACLE_HOME:$PATH
打开监听器:lsnrctl start
查看监听器运行状态:lsnrctl status
sqlplus / as sysdba
startup
create directory mydump as '/data/sharedata/mydump';
select * from dba_directories;
impdp \'/ as sysdba\' directory=mydump dumpfile=mydb.dmp table_exists_action=replace
expdp \'/ as sysdba\' SCHEMAS=TEST directory=mydump dumpfile=mydb.dmp logfile=mydb.log
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。