ITPub博客

首页 > 数据库 > Oracle > 包括spfile的完整备份

包括spfile的完整备份

原创 Oracle 作者:peng163fj 时间:2015-04-13 15:06:50 0 删除 编辑

sql 'alter system archive log current';

sql "alter session set nls_date_format=''dd.mm.yyyy hh24:mi:ss''";

RUN

{

configure controlfile autobackup on;

set command id to 'ORCLOnlineBackupFull';

ALLOCATE CHANNEL c1 DEVICE TYPE disk;

ALLOCATE CHANNEL c2 DEVICE TYPE disk;

ALLOCATE CHANNEL c3 DEVICE TYPE disk;

ALLOCATE CHANNEL c4 DEVICE TYPE disk;

backup tag ORCL_SPFILE spfile format '/RMAN/rman/bwp/20141117/%d_%T_%s_%p_SPFILE';

backup AS COMPRESSED BACKUPSET full database tag ORCL_FULL format '/RMAN/rman/bwp/20141107/%d_%T_%s_%p_FULL' ;

sql 'alter system archive log current';

backup tag ORCL_ARCHIVE format '/RMAN/rman/bwp/20141107/%d_%T_%s_%p_ARCHIVE' archivelog all delete all input ;

backup tag ORCL_CONTROL current controlfile format '/RMAN/rman/bwp/20141107/%d_%T_%s_%p_CONTROL';

release channel c1;

release channel c2;

release channel c3;

release channel c4;

}

exit;

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21302630/viewspace-1571716/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2013-11-20

  • 博文量
    155
  • 访问量
    440194