您的位置:首页 > 其它

RMAN备份与恢复之DataBase

2015-10-14 11:16 387 查看

1 准备

run {
allocate channel ch1 type disk
maxpiecesize=2g;
backup as compressed backupset
format  '/NewBackup/rman_backup/whole_%d_%U.bks' filesperset=3
tag dbfull
database ;
crosscheck archivelog all;
delete expired archivelog all;
sql 'alter system archive log current';
backup archivelog all
format '/NewBackup/rman_backup/%d_%s_%p_%t.arch'
tag dbarch;
backup spfile
format '/NewBackup/rman_backup/%d_%s_%p_%t.spfile'
tag dbspfile;
backup
format '/NewBackup/rman_backup/%d_%s_%p_%t.ctl'
tag dbctl
current controlfile;
release channel ch1;
}


备份全库
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: