Home > Database > Mysql Tutorial > Oracle RMAN的不完全恢复

Oracle RMAN的不完全恢复

WBOY
Release: 2016-06-07 17:03:33
Original
915 people have browsed it

恢复的类型1.基于时间的恢复2.基于sequence的恢复3.基于SCN的恢复 恢复的过程:1.mount数据库2.为并发分配多通道3.还原所有数据文

恢复的类型
1.基于时间的恢复
2.基于sequence的恢复
3.基于SCN的恢复

恢复的过程:
1.mount数据库
2.为并发分配多通道
3.还原所有数据文件
4.恢复数据库用until time,until sequence,until SCN。
tips:until不包括这个点。如until sequence 3,,则不包括sequence3.
5.用resetlogs打开数据库
6.执行一个全备


基于时间的恢复
rman target sys/sys@XXWZ nocatalog
rman>startup mount
rman> run {
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
set until time="to_date('2011-07-06:15:24:00','YYYY-MM-DD:HH24:MI:SS')";
restore database;
recover database;
alter database open resetlogs;
}

基于sequence的恢复
rman>run {
set until sequence 120 thread 1;
alter database mount;
restore database;
recover database;# recovers through log 119
alter database open resetlogs;
}

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template