实验rman恢复普通表空间

备份表空间
RMAN> backup tablespace EXAMPLE;
Starting backup at 16-MAY-14
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00005 name=/u01/app/oracle/oradata/orser/example01.dbf
channel ORA_DISK_1: starting piece 1 at 16-MAY-14
channel ORA_DISK_1: finished piece 1 at 16
-MAY-14
piece handle=/u01/app/oracle/diag/bac/BAC_0fp8eo50_1_1.bak tag=TAG20140516T172136 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:08
Finished backup at 16-MAY-14
Starting Control File and SPFILE Autobackup at 16-MAY-14
piece handle=/u01/app/oracle/fast_recovery_area/ORSER/autobackup/2014_05_16/o1_mf_s_847732904_9qcp58b2_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 16-MAY-14


[oracle@orser orser]$ mv example01.dbf example01.dbf.bak


SYS@orser> alter tablespace example offline immediate;
Tablespace altered.


RMAN> restore tablespace example;
Starting restore at 16-MAY-14
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00005 to /u01/app/oracle/oradata/orser/example01.dbf
channel ORA_DISK_1: reading from backup piece /u01/app/oracle/diag/bac/BAC_0fp8eo50_1_1.bak
channel ORA_DISK_1: piece handle=/u01/app/oracle/diag/bac/BAC_0fp8eo50_1_1.bak tag=TAG20140516T172136
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:08
Finished restore at 16-MAY-14


RMAN> recover tablespace example;
Starting recover at 16-MAY-14
using channel ORA_DISK_1
starting media recovery
media recovery complete, elapsed time: 00:00:00
Finished recover at 16-MAY-14


SYS@orser> alter tablespace example online;                  
Tablespace altered.


1、offline表空间
2、restore 备份文件
3、recover 应用redu与archivelog
4、online表空间                      




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

转载于:http://blog.itpub.net/29621173/viewspace-1162964/

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值