数据库(表)的逻辑备份与恢复-导出方案和数据库

导出方案
导出方案是指使用export 工具导出一个方案或是多个方案中的所有对象(表、索引、约束...)和数据,并存放到文件中。

1)导出自己的方案
exp scott/tiger@orcl owner=scott file=d:\scott.dmp

2)导出其它方案
如果用户要导出其它方案,则需要dba的权限或是exp_full_database的权限

例如system用户就可以导出任何方案
这个是指导出system和scott的方案
exp system/Mayu2638@orcl owner=(system,scott) file=e:\system.dmp

导出数据库
导出数据库是指利用export导出所有数据库中的对象及数据,要求该用户具有dba的权限或exp_full_database的权限

exp userid=system/manager@orcl full=y inctype-complete file=x.dmp

猜你喜欢

转载自1124117571.iteye.com/blog/2286017