首页 > 数据库技术 > 详细

oracle备份还原数据库

时间:2016-02-01 14:25:47      阅读:168      评论:0      收藏:0      [点我收藏+]

首先到对应bin目录下打开cmd(windows),linux用相应终端链接;eg:D:\app\sun\product\11.2.0\dbhome_1\BIN

用户备份:exp tdms/tdms@tdms_121 owner=tdms rows=y indexes=n compress=n buffer=65536 file=D:/tdms_121.dmp log=D:/tdms_121.log;

表备份: exp tdms/tdms@tdms_121 rows=y indexes=n compress=n buffer=65536 file=tdms_121_principal.dmp log=tdms_121_principal.log tables=tdms.principal;

完全备份:exp tdms/tdms@tdms_121 rows=y indexes=n compress=n buffer=65536 full=y file=121.dmp log=121.log;


表模式恢复:imp tdms/tdms@localhost fromuser=tdms touser=hfsys rows=y indexes=n commit=y buffer=65536 file=tdms_121.dmp log=tdms_121.log;
用户模式恢复: imp tdms/tdms@localhost fromuser=tdms touser=hfsys rows=y indexes=n commit=y buffer=65536 file=tdms_121_principal.dmp log=tdms_121_principal.log;
全库模式恢复: imp tdms/tdms@localhost rows=y indexes=n commit=y full=y ignore=y buffer=65536 file=121.dmp log=121.log;

命令相关说明详见:

http://www.cnblogs.com/mfryf/archive/2013/06/16/3138466.html

oracle备份还原数据库

原文:http://www.cnblogs.com/hongfu/p/5174753.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!