oracle 导入导出数据
2010-02-06 13:20
274 查看
假设现在一个数据库 orcl ,里面有一个表空间,表空间里有两个用户 scott 和 coder ,如果这里两个用户都用 dba 的权限,如果我们想把 orcl 的数据导出,然后导入另一个数据库(other)中,我把步骤记录下来:
1.从 orcl 中导出数据 (首先保证 oracle 目录中的 bin 路径已经添加到 path 环境变量里)
2.创建新的数据库 other
3.在新的数据库上建立新用户和表空间
4.导入数据
1.从 orcl 中导出数据 (首先保证 oracle 目录中的 bin 路径已经添加到 path 环境变量里)
运行 cmd; 输入 exp; 输入用户名/密码; (scott/tiger) 一路确定; 知道看见输入用户名:输入scott; 就会导出了。
2.创建新的数据库 other
3.在新的数据库上建立新用户和表空间
create user scott identified by tiger; --创建用户 scott create user coder identified by tiger; --创建用户 coder create tablespace other_data datafile 'E:/oracle/other_data.dbf' size 200M; --创建表空间 other_data ,设定位置和大小 alter user scott default tablespace other_data; --添加 scott 到 other_data 空间里 alter user coder default tablespace other_data; --添加 coder 到 other_data 空间里 grant dba to scott; -- 授权 dba 权限 grant dba to coder;
4.导入数据
运行 cmd; imp; scott/tiger; ... scott;
相关文章推荐
- Oracle数据导入导出imp/exp命令 10g以上expdp/impdp命令
- Oracle数据导入导出imp exp
- Oracle数据导入导出imp/exp命令
- oracle数据导入与导出
- Oracle数据导入导出imp/exp
- oracle 数据导出和导入
- Oracle数据库案例整理-导入导出Oracle数据失败-数据字典没有更新
- oracle在cmd下通过命令导入导出数据
- Oracle数据导入导出imp/exp命令 10g以上expdp/impdp
- Oracle --- 数据的导入与导出
- Oracle数据导入导出
- Oracle 数据导入/导出 命令 cmd
- Oracle数据导入导出imp/exp命令
- 使用Oracle 的 imp ,exp 命令实现数据的导入导出
- Oracle 的数据导入导出及 Sql Loader (sqlldr) 的用法
- Oracle数据泵的导入导出
- oracle 导入导出数据
- oracle数据导出与导入
- oracle导入导出数据和导出表结构
- oracle 10g 字符集不同的库之间的数据导入导出问题