由于Oracle版本问题,11g默认导出的表将无法导入到10g中
会报如下错误:
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-39142: incompatible version number 3.1 in dump file "/oracle/product/10.2.0/rdbms/log/accmonthtrace.dmp"
利用version参数可将11g的表导出并导入到10g中:
从11g导出:
expdp account directory=data_pump_dir dumpfile=accmonthtrace.dmp logfile=accmonthtracetmp.log
tables=accmonthtrace version=10.2.0.1.0
从10g导入:
impdp account directory=data_pump_dir dumpfile=accmonthtrace.dmp logfile=accmonthtracetmp.log
table_exists_action=replace