码迷,mamicode.com
首页 > 其他好文 > 详细

rman备份恢复

时间:2016-07-15 20:31:17      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:

run {
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
sql ‘alter system switch logfile‘;
sql ‘alter system switch logfile‘;
sql ‘alter system switch logfile‘;
sql ‘alter system archive log current‘;
backup incremental level 0
format ‘/data/app/rmanbackup/db_full_%U.bkp‘
database plus archivelog;
release channel c1;
release channel c2;
release channel c3;
}

run{
set newname for datafile 1 to ‘/data/app/oradata/source/system01.dbf‘;
set newname for datafile 2 to ‘/data/app/oradata/source/sysaux01.dbf‘;
set newname for datafile 3 to ‘/data/app/oradata/source/undotbs01.dbf‘;
restore database;
switch datafile all;
recover database;
}

rman备份恢复

标签:

原文地址:http://www.cnblogs.com/jetora/p/5674505.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!