RMAN的完全备份

---#不包括归档日志
----完全备份(指定目录)
  1. RMAN> backup as backupset format '/home/oracle/data_base%U' database;

  2. Starting backup at 19-DEC-16
  3. using channel ORA_DISK_1
  4. channel ORA_DISK_1: starting full datafile backup set
  5. channel ORA_DISK_1: specifying datafile(s) in backup set
  6. input datafile file number=00001 name=/u01/app/oracle/oradata/ORA11GR2/system01.dbf
  7. input datafile file number=00002 name=/u01/app/oracle/oradata/ORA11GR2/sysaux01.dbf
  8. input datafile file number=00005 name=/u01/app/oracle/oradata/ORA11GR2/example01.dbf
  9. input datafile file number=00003 name=/u01/app/oracle/oradata/ORA11GR2/undotbs01.dbf
  10. input datafile file number=00004 name=/u01/app/oracle/oradata/ORA11GR2/users01.dbf
  11. channel ORA_DISK_1: starting piece 1 at 19-DEC-16
  12. channel ORA_DISK_1: finished piece 1 at 19-DEC-16
  13. piece handle=/home/oracle/data_base06rnrut6_1_1 tag=TAG20161219T120142 comment=NONE
  14. channel ORA_DISK_1: backup set complete, elapsed time: 00:00:35
  15. channel ORA_DISK_1: starting full datafile backup set
  16. channel ORA_DISK_1: specifying datafile(s) in backup set
  17. including current control file in backup set
  18. including current SPFILE in backup set
  19. channel ORA_DISK_1: starting piece 1 at 19-DEC-16
  20. channel ORA_DISK_1: finished piece 1 at 19-DEC-16
  21. piece handle=/home/oracle/data_base07rnruu9_1_1 tag=TAG20161219T120142 comment=NONE
  22. channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
  23. Finished backup at 19-DEC-16

  24. RMAN>
---完全备份
  1. RMAN> backup as backupset database;

  2. Starting backup at 19-DEC-16
  3. using target database control file instead of recovery catalog
  4. allocated channel: ORA_DISK_1
  5. channel ORA_DISK_1: SID=142 device type=DISK
  6. channel ORA_DISK_1: starting full datafile backup set
  7. channel ORA_DISK_1: specifying datafile(s) in backup set
  8. input datafile file number=00001 name=/u01/app/oracle/oradata/ORA11GR2/system01.dbf
  9. input datafile file number=00002 name=/u01/app/oracle/oradata/ORA11GR2/sysaux01.dbf
  10. input datafile file number=00005 name=/u01/app/oracle/oradata/ORA11GR2/example01.dbf
  11. input datafile file number=00003 name=/u01/app/oracle/oradata/ORA11GR2/undotbs01.dbf
  12. input datafile file number=00004 name=/u01/app/oracle/oradata/ORA11GR2/users01.dbf
  13. channel ORA_DISK_1: starting piece 1 at 19-DEC-16
  14. channel ORA_DISK_1: finished piece 1 at 19-DEC-16
  15. piece handle=/u01/app/oracle/product/11.2.0/dbhome_1/dbs/03rnrso3_1_1 tag=TAG20161219T112451 comment=NONE
  16. channel ORA_DISK_1: backup set complete, elapsed time: 00:01:15
  17. channel ORA_DISK_1: starting full datafile backup set
  18. channel ORA_DISK_1: specifying datafile(s) in backup set
  19. including current control file in backup set
  20. including current SPFILE in backup set
  21. channel ORA_DISK_1: starting piece 1 at 19-DEC-16
  22. channel ORA_DISK_1: finished piece 1 at 19-DEC-16
  23. piece handle=/u01/app/oracle/product/11.2.0/dbhome_1/dbs/04rnrsqe_1_1 tag=TAG20161219T112451 comment=NONE
  24. channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
  25. Finished backup at 19-DEC-16

  26. RMAN>
---查看目录
  1. RMAN> list backup of database
  2. 2> ;


  3. List of Backup Sets
  4. ===================


  5. BS Key Type LV Size Device Type Elapsed Time Completion Time
  6. ------- ---- -- ---------- ----------- ------------ ---------------
  7. 2 Full 1.17G DISK 00:01:15 19-DEC-16
  8.         BP Key: 2 Status: AVAILABLE Compressed: NO Tag: TAG20161219T112451
  9.         Piece Name: /u01/app/oracle/product/11.2.0/dbhome_1/dbs/03rnrso3_1_1
  10.   List of Datafiles in backup set 2
  11.   File LV Type Ckp SCN Ckp Time Name
  12.   ---- -- ---- ---------- --------- ----
  13.   1 Full 1294980 19-DEC-16 /u01/app/oracle/oradata/ORA11GR2/system01.dbf
  14.   2 Full 1294980 19-DEC-16 /u01/app/oracle/oradata/ORA11GR2/sysaux01.dbf
  15.   3 Full 1294980 19-DEC-16 /u01/app/oracle/oradata/ORA11GR2/undotbs01.dbf
  16.   4 Full 1294980 19-DEC-16 /u01/app/oracle/oradata/ORA11GR2/users01.dbf
  17.   5 Full 1294980 19-DEC-16 /u01/app/oracle/oradata/ORA11GR2/example01.dbf

  18. BS Key Type LV Size Device Type Elapsed Time Completion Time
  19. ------- ---- -- ---------- ----------- ------------ ---------------
  20. 4 Full 1.17G DISK 00:00:33 19-DEC-16
  21.         BP Key: 4 Status: AVAILABLE Compressed: NO Tag: TAG20161219T120142
  22.         Piece Name: /home/oracle/data_base06rnrut6_1_1
  23.   List of Datafiles in backup set 4
  24.   File LV Type Ckp SCN Ckp Time Name
  25.   ---- -- ---- ---------- --------- ----
  26.   1 Full 1296744 19-DEC-16 /u01/app/oracle/oradata/ORA11GR2/system01.dbf
  27.   2 Full 1296744 19-DEC-16 /u01/app/oracle/oradata/ORA11GR2/sysaux01.dbf
  28.   3 Full 1296744 19-DEC-16 /u01/app/oracle/oradata/ORA11GR2/undotbs01.dbf
  29.   4 Full 1296744 19-DEC-16 /u01/app/oracle/oradata/ORA11GR2/users01.dbf
  30.   5 Full 1296744 19-DEC-16 /u01/app/oracle/oradata/ORA11GR2/example01.dbf

  31. RMAN>





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

转载于:http://blog.itpub.net/31399171/viewspace-2130927/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值