1. 导出自己的表的命令:
exp userid = muly/muly@orcl tables = (student) file = d:\a1.dmp;
2. 导出其他方案的表,需要有dba的权限或者exp.full.database的权限,比如system可以导出muly用户的表
exp userid = system/orcl@orcl tables = (muly.student) file = d:\a2.dmp;
如果只导出表的结构,则需要在file参数之后添加参数direct = y
3. 导出某一用户的方案,需要将tables参数修改为owner 之后,参数值为该登录用户的用户名。
4. 如果导出其他用户的方案,需要将tables参数修改为owner之后参数值为其他用户名。
5. 导出数据库exp useid = system/manager@orcl full = y inctype = conplete file = d:\aa.dmp;
6. 导入恢复命令imp常用的参数包括:userid、tables、fromuser、touser、file、full=y、inctype、rows、ignore
7. 导入自己的表imp userid = muly/muly@orcl tables = (emp) file=d:\aa.dmp;
8. 导入表到其他用户,要求该用户具有dba权限,或是imp.full.database
命令:imp userid = system/orcl@orcl tables = (emp) file=d:\a.dmp touser=mly;
9. 只导入表的结构imp userid=muly/muly@orcl tables=(emp) file=d:\aa.dmp rows=n
10. 只导入表的数据imp userid=muly/muly@orcl tables=(emp) file=d:\a.dmp ignore=y
11. 导入数据库的命令 imp userid=system/orcl full=y file=d:\aa.dmp;将整个数据库导入到系统中。