特别说明:导入、导出数据要在oracle目录的bin目录下,去导;即在doc下
导出表
(1)导出自己的表
exp userid = scott/tiger@myoral tables =(emp,map) file=d:el.dmp 导出emp和map表
(2)导出表结构
exp userid = scott/tiger@myoral tables =(emp,map) file=d:el.dmp rows=n与导出表只是多
了一个rows=n.
(3)导出数据库
exp userid = system/manager@myora1 full = y inctype = complete file = d: aa.bmp;
========================
导入表
(1)导入自己的表
imp userid = scott/tiger@myor tables = (emp) file=d:/xx.dmp;
(2) 导入表到其他用户
要求该用户具有dba的权限,或是imp_full_database
imp userid = system/manager@myor tables=(emp) file=d:/xx.dmp touser=scott
(3) 导入表的结构
只导入表的结构而不导入数据
imp userid = soctt/tiger@myor tables=(emp) file=d:/xxx.dmp rows=n;
(4) 导入数据
如果对象(比如表)已经存在可以只导入表的数据
imp userid = scott/tiger@myor tables=(emp) file=d:/xxx.dmp ignore=y
=============================
导入方案
导入方案是指使用import工具将文件中的对象和数据导入到一个或是多个方案中。如果要导入其它方案,要求该用户具有dba的权限,或是imp_full_database
(1) 导入自身的方案
imp userid = scott/tiger file=d:/xxx.dmp
(2) 导入其它方案
imp userid = system/manager file=d:/xxx.dmp fromuser = system touser = scott;
=====================