特别说明 导入导出时要,通过【运行】进行到oracle的安装目录的 【bin】目录下导 例如:D:\oracle\product\10.1.0\Db_1\BIN 1 数据导出 导出分三种 导出 表、方案、数据库 1.1 导出表 1.1.1 导出自己的表 -- 说明 用户/密码/数据库实例 表名(可多个) 文件特别说明导入导出时要,通过【运行】进行到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=y 1.1.4 导出表结构exp userid=scott/pass@orcl tables=(table1,table2) file=d:\db.dmp rows=n 1.2 导出方案1.2.1 导出自己的方案exp scott/pass@rocl owner=slmes file=d:\scott.dmp 1.2.2 导出其它方案---说明 : owner=(单个或多个方案,用逗号分隔) exp system/pass@rocl owner=(systems,scott) file=d:\scott.dmp oracle知识库oracle知识库下载下载1.3 导出数据库exp userid=system/pass@orcl full=y inctype=complete file=d:\orcl.dmp 2 数据导入2.1 导入表2.1.1 导入自己的表imp userid=scott/pass@orcl tables=(emp) file=d:\xx.dmp 2.1.2 导入表到其它用户imp userid=system/pass@orcl table=(emp) file=d:\xx.dmp touser=scott 2.1.3 导入表结构imp userid=scott/pass@orcl tables=(emp) file=d:\xx.dmp rows=n 2.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.dmp 2.2.2 导入其它方案 [要求用户具有dba的权限]imp userid=scott/pass file=d:\xxx.dmp fromuser=system touser=scott
2.3导入数据库
--当导入数据库时,会导入所有对象结构和数据imp userid=system/manager full=y file=d:\xxx.dmp
