【expdp示例】
1、【全库模式】将本地数据库全库导出到已创建的目录对象dptest中
expdp system/manager@orcl dumpfile = orcl_dp.dmp directory = dptest full = y
2、【表模式】将本地数据库scott中的表emp、dept导出到已创建的目录对象dptest中
expdp scott/scott@orcl tables = emp,dept dumpfile = empdept_dp.dmp directory = dptest
3、【用户模式】将本地数据库scott用户数据导出到已创建的目录对象dptest中
expdp scott/scott@orcl schemas = scott dumpfile = scott_dp.dmp directory = dptest
4、【表空间模式】将本地数据库中USERS和TEMP表空间下数据导出到已创建的目录对象dptest中
expdp system/manager@orcl dumpfile = users_temp_dp.dmp directory = dptest tablespace = users,temp
5、按表导出且指定条件(可实现多表多条件),将表emp中SAL字段大于1000的记录导出
expdp scott/scott@orcl directory= dptest dumpfile=expdp.dmp tables=emp query=' where sal > 1000'
6、并行进程parallel
expdp scott/scott@orcl directory= dptest dumpfile=scott1.dmp parallel=40 job_name=scott1