数据泵导入导出(二)

【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

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值