码迷,mamicode.com
首页 > 其他好文 > 详细

11g rman blockrecover 的新特性

时间:2015-06-17 20:07:00      阅读:145      评论:0      收藏:0      [点我收藏+]

标签:


参考自:
New Rman Blockrecover command in 11g (Recover corruption list) (文档 ID 1390759.1)

11g rman blockrecover 时的新特性:
注意:10g时的blockrecover命令被废弃,但是依然支持。

Rman> Recover datafile <fileno> block <block number reported corrupt>;
Rman> Recover datafile <fileno> block <block number >  to <block  number>;
Rman> recover corruption list ;--->将V$DATABASE_BLOCK_CORRUPTION 中的坏块都recover掉。

 

Rman> Recover tablespace <name> dba <integer value> ;
Rman> Recover tablespace testing dba 29360329 ;


 举例:

SQL>SELECT DBMS_UTILITY.MAKE_DATA_BLOCK_ADDRESS(<file#>,<block#>) FROM DUAL;

SQL> SELECT DBMS_UTILITY.MAKE_DATA_BLOCK_ADDRESS(7,201) FROM DUAL;

DBMS_UTILITY.MAKE_DATA_BLOCK_ADDRESS(7,201)
-------------------------------------------
 29360329

Rman> Recover tablespace <name> dba <integer value> ;

Rman> Recover tablespace testing dba 29360329 ;

 

而10g时,只能:

RMAN> blockrecover datafile 5 block 20; --->只能用这个语法!

Starting blockrecover at 17-JUN-15
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=1068 devtype=DISK

starting media recovery
media recovery complete, elapsed time: 00:00:00

Finished blockrecover at 17-JUN-15

RMAN>


 

11g rman blockrecover 的新特性

标签:

原文地址:http://blog.csdn.net/msdnchina/article/details/46536725

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!