首页 > 数据库技术 > 详细

AVATAR 备份软件 ORACLE 恢复流程

时间:2020-03-31 11:58:41      阅读:151      评论:0      收藏:0      [点我收藏+]

1. 恢复控制文件
startup nomount;

run {
allocate channel ch1 device type ‘sbt_tape‘
PARMS="ENV=(MASTER_SERVER_IP=10.10.0.28,INSTANCE_NAME=orcl,BACKUP_CLIENT=AvatarFdServer,RESTORE_CLIENT=AvatarFdServer)";
restore controlfile from ‘avatar_controlfile_54_1_852472610‘;
release channel ch1;
}

2. 恢复数据库文件
alter database mount;

run {
allocate channel ch1 device type ‘sbt_tape‘
PARMS="ENV=(MASTER_SERVER_IP=10.10.0.28,INSTANCE_NAME=orcl,BACKUP_CLIENT=AvatarFdServer,RESTORE_CLIENT=AvatarFdServer)";
restore database;
release channel ch1;
}

3.恢复归档日志
recover database using backup controlfile until cancel; 找到需恢复的归档日志序号

run {
allocate channel ch1 device type ‘sbt_tape‘
PARMS="ENV=(MASTER_SERVER_IP=10.10.0.28,INSTANCE_NAME=orcl,BACKUP_CLIENT=AvatarFdServer,RESTORE_CLIENT=AvatarFdServer)";
restore archivelog from logseq=64 until logseq=65 thread 1;
release channel ch1;
}

recover database using backup controlfile until cancel;
alter database open resetlogs;

AVATAR 备份软件 ORACLE 恢复流程

原文:https://www.cnblogs.com/qcding/p/12603143.html

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