ITPub博客

首页 > 数据库 > Oracle > RMAN的完全备份

RMAN的完全备份

原创 Oracle 作者:zzh_ds 时间:2016-12-19 13:03:35 0 删除 编辑
---#不包括归档日志
----完全备份(指定目录)
  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博客 ” ,链接:https://blog.itpub.net/31399171/viewspace-2130927/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 10053事件
请登录后发表评论 登录
全部评论

注册时间:2016-09-29

  • 博文量
    61
  • 访问量
    47810