首页 > 数据库 > Oracle > 使用数据泵导出导入整个数据库数据
使用数据泵导出整个数据库数据
使用数据泵导入整个数据库数据
1、创建导出目录,参见上一篇笔记
2、导出整个数据库。
C:Documents and SettingsAdministrator>expdp system/oracle full=y directory=dbb
ackup dumpfile=full.dmp job_name=expfull
3、模拟数据库错误,删除部分用户
drop user scott cascade;
4、使用数据泵导入数据以恢复数据库
C:Documents and SettingsAdministrator>impdp system/oracle full=y directory=dbb
ackup dumpfile=full.dmp job_name=impfull
5、检查数据库的恢复
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9523925/viewspace-1033709/ ,如需转载,请注明出处,否则将追究法律责任。