上传文件至服务器目录,并修改权限

chmod 777 ETL.dmp

为避免乱码,查询先本地库的字符集

select userenv('language') from dual;

在Linux端执行

export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK

WIND用户的表导出到指定路径

export ORACLE_SID=hrxj_poc
exp system/SunSJ$2021 file=/home/oracle/WIND.dmp owner=WIND

/home/oracle/ETL.dmp中的数据导入(从mrmsdev用户导入ETL用户)

export ORACLE_SID=hrxj_poc
imp file=/home/oracle/ETL.dmp userid=system/SunSJ$2021 fromuser=mrmsdev touser=ETL buffer=30720 statistics=none commit=no grants=yes ignore=yes indexes=no rows=yes show=no constraints=yes;