实现数据导出

导出模式

模式  参数  说明  操作角色
full    full    导出整个数据库 exp_full_database
schema  schmas  导出一个或多个用户模式中的数据和元数据 拥有exp_full_database角色,可以导出任何模式,否则只能导出自己的模式
table   tables  导出一组特定表 拥有exp_full_database角色,可以导出任何模式的表,否则只能导出自己的模式的表
tablespace  tablespaces 导出一个或多个表空间中的数据  exp_full_database
transportable_tablespace    transportable_tablespaces   导出表空间中对象元数据 exp_full_database

这里写图片描述

案列
1 按表名导,连接用户scott,导出scott用户的表emp,dept,导出的文件名expdp.dmp,导出的目录mypump
expdp scott/123 directory=mypump dumpfile=expdp.dmp tables=emp,dept;

2 按用户导,导出scott用户模式中的数据和元数据,导出的文件名expdp.dmp,导出的目录mypump
expdp scott/123 directory=mypump dumpfile=expdp.dmp schemas=scott ;

3 按表空间导,导出users表空间中的数据和元数据,导出的文件名expdp.dmp,导出的目录mypump
expdp scott/123 directory=mypump dumpfile=expdp.dmp tablespaces=users;

4 导整个数据库
expdp scott/123 directory=mypump dumpfile=expdp.dmp full=y;

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值