rman backup

前提:归档模式下!
 1. 全库备份
bb
2.指定备份集存储的位置
bb
bb
3.查看创建的全库备份

RMAN> list backup of database;


List of Backup Sets
===================

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
5       Full    367.53M    DISK        00:00:37     18-APR-12      
  List of Datafiles in backup set 5
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1236730    18-APR-12 /u01/oradata/dbtest/system01.dbf
  4       Full 1236730    18-APR-12 /u01/oradata/dbtest/users01.dbf

  Backup Set Copy #1 of backup set 5
  Device Type Elapsed Time Completion Time Compressed Tag
  ----------- ------------ --------------- ---------- ---
  DISK        00:00:37     18-APR-12       NO         TAG20120418T134805

    List of Backup Pieces for backup set 5 Copy #1
    BP Key  Pc# Status      Piece Name
    ------- --- ----------- ----------
    5       1   AVAILABLE   /u01/flash_recovery_area/DBTEST/backupset/2012_04_18/o1_mf_nnndf_TAG20120418T134805_7rwododh_.bkp
    6       2   AVAILABLE   /u01/flash_recovery_area/DBTEST/backupset/2012_04_18/o1_mf_nnndf_TAG20120418T134805_7rwodwc4_.bkp
    7       3   AVAILABLE   /u01/flash_recovery_area/DBTEST/backupset/2012_04_18/o1_mf_nnndf_TAG20120418T134805_7rwofof7_.bkp
    8       4   AVAILABLE   /u01/flash_recovery_area/DBTEST/backupset/2012_04_18/o1_mf_nnndf_TAG20120418T134805_7rwofrg7_.bkp

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
6       Full    194.16M    DISK        00:02:36     18-APR-12      
  List of Datafiles in backup set 6
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  3       Full 1236749    18-APR-12 /u01/oradata/dbtest/sysaux01.dbf
  7       Full 1236749    18-APR-12 /u01/oradata/dbtest/wenchuan01.dbf
  8       Full 1236749    18-APR-12 /u01/oradata/dbtest/wenchuan2.dbf

  Backup Set Copy #1 of backup set 6
  Device Type Elapsed Time Completion Time Compressed Tag
  ----------- ------------ --------------- ---------- ---
  DISK        00:02:36     18-APR-12       NO         TAG20120418T134805

    List of Backup Pieces for backup set 6 Copy #1
    BP Key  Pc# Status      Piece Name
    ------- --- ----------- ----------
    9       1   AVAILABLE   /u01/flash_recovery_area/DBTEST/backupset/2012_04_18/o1_mf_nnndf_TAG20120418T134805_7rwofvr7_.bkp
    10      2   AVAILABLE   /u01/flash_recovery_area/DBTEST/backupset/2012_04_18/o1_mf_nnndf_TAG20120418T134805_7rwoj6p6_.bkp

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
7       Full    91.05M     DISK        00:01:02     18-APR-12      
        BP Key: 11   Status: AVAILABLE  Compressed: NO  Tag: TAG20120418T134805
        Piece Name: /u01/flash_recovery_area/DBTEST/backupset/2012_04_18/o1_mf_nnndf_TAG20120418T134805_7rwolww1_.bkp
  List of Datafiles in backup set 7
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  2       Full 1236814    18-APR-12 /u01/oradata/dbtest/undotbs01.dbf
  5       Full 1236814    18-APR-12 /u01/oradata/dbtest/example01.dbf
  6       Full 1236814    18-APR-12 /u01/oradata/dbtest/paul01.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
9       Full    657.27M    DISK        00:01:48     21-APR-12      
        BP Key: 13   Status: AVAILABLE  Compressed: NO  Tag: TAG20120421T142707
        Piece Name: /u01/flash_recovery_area/DBTEST/backupset/2012_04_21/o1_mf_nnndf_TAG20120421T142707_7s4nsx0k_.bkp
  List of Datafiles in backup set 9
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1384584    21-APR-12 /u01/oradata/dbtest/system01.dbf
  2       Full 1384584    21-APR-12 /u01/oradata/dbtest/undotbs01.dbf
  3       Full 1384584    21-APR-12 /u01/oradata/dbtest/sysaux01.dbf
  4       Full 1384584    21-APR-12 /u01/oradata/dbtest/users01.dbf
  5       Full 1384584    21-APR-12 /u01/oradata/dbtest/example01.dbf
  6       Full 1384584    21-APR-12 /u01/oradata/dbtest/paul01.dbf
  7       Full 1384584    21-APR-12 /u01/oradata/dbtest/wenchuan01.dbf
  8       Full 1384584    21-APR-12 /u01/oradata/dbtest/wenchuan2.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
11      Full    657.27M    DISK        00:01:25     21-APR-12      
        BP Key: 15   Status: AVAILABLE  Compressed: NO  Tag: TAG20120421T143730
        Piece Name: /backup/rmanbackup/bak_0bn905pb_1_1
  List of Datafiles in backup set 11
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1384922    21-APR-12 /u01/oradata/dbtest/system01.dbf
  2       Full 1384922    21-APR-12 /u01/oradata/dbtest/undotbs01.dbf
  3       Full 1384922    21-APR-12 /u01/oradata/dbtest/sysaux01.dbf
  4       Full 1384922    21-APR-12 /u01/oradata/dbtest/users01.dbf
  5       Full 1384922    21-APR-12 /u01/oradata/dbtest/example01.dbf
  6       Full 1384922    21-APR-12 /u01/oradata/dbtest/paul01.dbf
  7       Full 1384922    21-APR-12 /u01/oradata/dbtest/wenchuan01.dbf
  8       Full 1384922    21-APR-12 /u01/oradata/dbtest/wenchuan2.dbf

RMAN> 
4.备份指定表空间
bb
5.查看指定表空间的备份情况
bb
6.删除指定的备份集【BACKUPSET】
bb
7.备份指定的数据文件
bb

bb

8.备份控制文件
bb

9.备份归档文件
bb

fj.pngr1.JPG

fj.pngr2.JPG

fj.pngr3.JPG

fj.pngr4.JPG

fj.pngr5.jpg

fj.pngr6.JPG

fj.pngr7.JPG

fj.pngr8.JPG

fj.pngr9.JPG

fj.pngr10.JPG

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

转载于:http://blog.itpub.net/15720542/viewspace-721882/

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值