ITPub博客

首页 > 数据库 > Oracle > 使用rman备份的脚本

使用rman备份的脚本

原创 Oracle 作者:jane_pop 时间:2014-08-15 22:23:07 0 删除 编辑
全库备份脚本:
run{
2> allocate channel c1 type disk;
3> allocate channel c2 type disk;
4> allocate channel c3 type disk;
5> backup full tag 'dbfull' format
6> '/u01/app/backup/fulldb_%U' 
7> database;
8> sql 'alter system switch logfile';
9> release channel c1;
10> release channel c2;
11> release channel c3;
12> }


0级备份脚本:
run{
2> allocate channel c1 type disk;
3> allocate channel c2 type disk;
4> allocate channel c3 type disk;
5> backup incremental level 0 tag 'indb0' format
6> '/u01/app/backup/indb0_%U'
7> database;
8> sql 'alter system switch logfile';
9> release channel c1;
10> release channel c2;
11> release channel c3;
12> }


1级备份脚本:
run{
2> allocate channel c1 type disk;
3> allocate channel c2 type disk;
4> allocate channel c3 type disk;
5> backup incremental level 1 tag 'indb1' format
6> '/u01/app/backup/indb1_%U'
7> database;
8> sql 'alter system switch logfile';
9> release channel c1;
10> release channel c2;
11> release channel c3;
12> }


 


 

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

下一篇: spfile丢失的恢复
请登录后发表评论 登录
全部评论
So glad that I'm dark enough to see your light.

注册时间:2014-08-11

  • 博文量
    83
  • 访问量
    563742