ITPub博客

首页 > 数据库 > Oracle > blockrecover data block

blockrecover data block

原创 Oracle 作者:tolilong 时间:2012-06-10 13:14:53 0 删除 编辑
(1) 查询失败,block错误
SQL> select * from test;
select * from test
              *
ERROR at line 1:
ORA-01578: ORACLE data block corrupted (file # 1, block # 91761)
ORA-01110: data file 1: '/u01/oradata/deer/system01.dbf'


(2) blockrecover
RMAN> blockrecover datafile 1 block 91761;

Starting recover at 10-JUN-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=146 device type=DISK

channel ORA_DISK_1: restoring block(s)
channel ORA_DISK_1: specifying block(s) to restore from backup set
restoring blocks of datafile 00001
channel ORA_DISK_1: reading from backup piece /u01/oracle/product/11.2.0/dbhome_1/dbs/04nd5t1t_1_1
channel ORA_DISK_1: piece handle=/u01/oracle/product/11.2.0/dbhome_1/dbs/04nd5t1t_1_1 tag=TAG20120610T075021
channel ORA_DISK_1: restored block(s) from backup piece 1
channel ORA_DISK_1: block restore complete, elapsed time: 00:02:15

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

Finished recover at 10-JUN-12


(3) 重新查询ok
SQL> select * from test;

        ID NAME
---------- --------------------
        10 bruce
        20 deer

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

下一篇: 数据块恢复实例
请登录后发表评论 登录
全部评论

注册时间:2010-07-13

  • 博文量
    406
  • 访问量
    963307