将源端数据库导入目标端数据库中
export ORACLE_SID=orcl
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$PATH:$ORACLE_HOME/bin
dmp_dir=/home/oracle/test_imp
sqlplus / as sysdba <<EOF
drop directory exp_dir;
create directory exp_dir as '${dmp_dir}';
grant read,write on directory exp_dir to ${user_name};
quit
EOF
rq=`date +%Y%m%d`
impdp lxm/lxm PARALLEL=8 cluster=no dumpfile=tqyb_%U.dmp logfile=${rq}_impdb.log directory=exp_dir REMAP_TABLESPACE=LLTF_DATA:USERS REMAP_SCHEMA=lltf:lxm TABLE_EXISTS_ACTION=truncate