Oracle 数据库 导入导出
2011-09-16 16:26
183 查看
特别说明
导入导出时要,通过【运行】进行到oracle的安装目录的 【bin】目录下导例如:D:\oracle\product\10.1.0\Db_1\BIN
1 数据导出
导出分三种 导出 表、方案、数据库1.1 导出表
1.1.1 导出自己的表
-- 说明 用户/密码/数据库实例 表名(可多个) 文件路径exp userid=scott/pass@orcl tables=(table1,table2) file=d:\db.dmp
1.1.2 导出其它方案的表(需要dba权限)
-- 说明 用户/密码/数据库实例 表名(用户.表名) 文件路径exp userid=scott/pass@orcl tables=(slmes.table1) file=d:\db.dmp
1.1.3 直接导出 【比默认导出速度快,当数据量大时可采用】
exp userid=scott/pass@orcl tables=(table1,table2) file=d:\db.dmp direct=y1.1.4 导出表结构
exp userid=scott/pass@orcl tables=(table1,table2) file=d:\db.dmp rows=n1.2 导出方案
1.2.1 导出自己的方案
exp scott/pass@rocl owner=slmes file=d:\scott.dmp1.2.2 导出其它方案
---说明 : owner=(单个或多个方案,用逗号分隔)exp system/pass@rocl owner=(systems,scott) file=d:\scott.dmp
1.3 导出数据库
exp userid=system/pass@orcl full=y inctype=complete file=d:\orcl.dmp2 数据导入
2.1 导入表
2.1.1 导入自己的表
imp userid=scott/pass@orcl tables=(emp) file=d:\xx.dmp2.1.2 导入表到其它用户
imp userid=system/pass@orcl table=(emp) file=d:\xx.dmp touser=scott2.1.3 导入表结构
imp userid=scott/pass@orcl tables=(emp) file=d:\xx.dmp rows=n2.1.4 导入数据
--如果对象(表)已存在,可以只导入表的数据imp userid=scott/pass@orcl tables=(emp) file=d:\xx.dmp ignore=y
2.2导入方案
2.2.1 导入自己的方案
imp userid=scott/pass file=d:\xxx.dmp2.2.2 导入其它方案 [要求用户具有dba的权限]
imp userid=scott/pass file=d:\xxx.dmp fromuser=system touser=scott2.3导入数据库
--当导入数据库时,会导入所有对象结构和数据imp userid=system/manager full=y file=d:\xxx.dmp
相关文章推荐
- 在oracle中导入导出dmp数据库文件
- oracle 11g linux 建立表空间 用户 授权 数据库导入导出
- Oracle创建删除用户、角色、表空间、导入导出数据库命令行方式总结
- oracle创建数据库表空间 用户 授权 导入 导出数据库
- Oracle 数据库的库的导出,导入
- oracle 数据库的导入和导出
- Oracle 11g导出来的dmp导入到 10g的数据库(IMP-00010:不是有效的导出文件,头部验证失败)
- [ORACLE ]学习笔记一之数据库的导入导出
- oracle远程连接导入导出数据库
- oracle中如何将数据库中的数据导出并导入一个台oracle中
- 11.Oracle之 dmp导入/导出、数据库操作等过程中的字符集问题
- ORACLE 数据库导入、导出
- ORACLE数据导入导出后新数据库中某些表添加操作报错[ORA-12899]
- oracle数据库导出导入
- oracle中导入导出dmp数据库文件
- oracle数据库常用的导入导出
- oracle 中数据库完全导入导出:cmd命令行模式
- Oracle创建删除用户、角色、表空间、导入导出数据库命令行方式总结
- 用exp_imp远程操作数据库,附帶Oracle数据导入导出imp/exp詳解
- oracle 数据库表导入导出