六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 30|回复: 0

exp单个用户方案迁移

[复制链接]

升级  54%

5

主题

5

主题

5

主题

童生

Rank: 1

积分
27
 楼主| 发表于 2013-1-27 05:01:17 | 显示全部楼层 |阅读模式
1 导出的数据:
一、导出指定用户(方案)的数据:
exp system/system owner=username file=c:\gxulib.dmp
(如果使用该用户自己导出自己的方案,可以先给该用户赋予导出权限:
SQL>grant export full database to username
然后用该用户导出数据
exp username/user_passwd onwer=username file=c:\gxulib.dmp)
二、以管理员方式导出全库
以DBA管理员全库方式导出全库也可(在后面导入时可用fromuser,touser方式导入):
exp system/system full=y file=c:\full.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
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表