11g rman blockrecover 的新特性,rmanblockrecover

來源:互聯網
上載者:User

11g rman blockrecover 的新特性,rmanblockrecover


參考自:
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)------------------------------------------- 29360329Rman> Recover tablespace <name> dba <integer value> ;Rman> Recover tablespace testing dba 29360329 ;

 

而10g時,只能:

RMAN> blockrecover datafile 5 block 20; --->只能用這個文法!Starting blockrecover at 17-JUN-15using target database control file instead of recovery catalogallocated channel: ORA_DISK_1channel ORA_DISK_1: sid=1068 devtype=DISKstarting media recoverymedia recovery complete, elapsed time: 00:00:00Finished blockrecover at 17-JUN-15RMAN>


 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.