exp单个用户方案迁移

 
1 导出的数据:
一、导出指定用户(方案)的数据:
exp system/system owner=username file=/home/file/data.dmp
(如果使用该用户自己导出自己的方案,可以先给该用户赋予导出权限:
SQL>grant export full database to username
然后用该用户导出数据
exp username/user_passwd onwer=username file=/home/file/data.dmp)
二、以管理员方式导出全库
以DBA管理员全库方式导出全库也可(在后面导入时可用fromuser,touser方式导入):
exp system/system full=y file=/home/file/data.dmp

2 给用户指定connect及resource权限:
grant connect,resource to username;

3 表空间磁盘配额的设定:(说明:有了上面的赋予connect及resource权限,磁盘配额可以不用配置,即本步骤可以省略)
 
alter user username quota 200m on tablespacename;
(或者设置为无限制使用该表空间:
alter user username quota unlimited on tablespacename;)
 

4 导入:
imp system/system fromuser=gxulib touser=gxulib ignore=y file=c:/gxulib.dmp
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值