首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

oracle 数据快修理—之使用RMAN 块介质恢复

2013-11-01 
oracle 数据快修复—之使用RMAN块介质恢复ExamplesRecovering a Group of Corrupt Blocks: Example This ex

oracle 数据快修复—之使用RMAN 块介质恢复

Examples

Recovering a Group of Corrupt Blocks: Example This example recovers corrupt blocks in three datafiles:

BLOCKRECOVER DATAFILE 2 BLOCK 12, 13 DATAFILE 3 BLOCK 5, 98, 99 DATAFILE 4 BLOCK 19;
 
 
 

Limiting Block Media Recovery by Type of Restore: Example The following example recovers a series of blocks and restores only from datafile copies:

RUN{  BLOCKRECOVER DATAFILE 3 BLOCK 2,3,4,5 TABLESPACE sales DBA 4194405, 4194409, 4194412  FROM DATAFILECOPY;}
 
 
 

Limiting Block Media Recovery by Backup Tag: Example This example recovers blocks and restores only from the backup with the tagweekly_backup:

BLOCKRECOVER TABLESPACE SYSTEM DBA 4194404, 4194405 FROM TAG "weekly_backup";

Limiting Block Media Recovery by Time: Example The following example recovers two blocks in theSYSTEM tablespace. It restores only from backups that could be used to recover the database to a point two days ago:

BLOCKRECOVER TABLESPACE SYSTEM DBA 4194404, 4194405 RESTORE UNTIL TIME 'SYSDATE-2';
 
 
 

Repairing All Block Corruption in the Database: Example The following example runs a backup validation to populateV$DATABASE_BLOCK_CORRUPTION, then repairs any corrupt blocks recorded in the view:

BACKUP VALIDATE DATABASE;BLOCKRECOVER CORRUPTION LIST;

热点排行