oracle 用户A 下面有N个表,现在要新建用户B,把A下所有的表复制到B中,如何做 ?大虾赐教
解决方案 »
- OEM配置问题
- 谁能帮我该成oracle。update from,谢谢大家了
- OCI能否在Define之前得到查询结果的行数result rows
- toad 连接数据库 出错:Can't initialize OCI. Error -1
- 可否向dual表中插入值
- 函数调用错误:wrong number or types of arguments in call to 'ID_IS_GOOD'
- 一个简单的Select查询问题
- 新手请教,在线等待,高手看看吧
- 请教一个sql输出问题
- 请教:oracle 9i在哪里下载呢??
- oralce 客户端连接成功,但是vb+ado连接失败,好像是oracle连接驱动有问题,怎么办?
- 求高人帮忙改存储过程
导出的时候选择按用户导出表和数据。
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)
导入:
imp system/system fromuser=gxulib touser=gxulib ignore=y file=c:\gxulib.dmp
2.导出用户A的数据.exp...
3.在用户B中导入刚才的备份文件.imp...
2.导出用户A的数据.exp...
3.在用户B中导入刚才的备份文件.imp...
最好用imp userid=system/manager fromuser=A touser=B ignore=y file=expfile.dmp full=y
如果表里面有blob字段的话,需要建立和A一样的表空间
fromuser=A touser=B
只要注意下fromuser和touser就行了, 3楼有个参数很要命,FULL=Y可不能加的哦