Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
6Activity
0 of .
Results for:
No results containing your search query
P. 1
Fixing Oracle Database Block Corruption 11g

Fixing Oracle Database Block Corruption 11g

Ratings: (0)|Views: 1,022 |Likes:
Published by SurachartOpun

More info:

Published by: SurachartOpun on Sep 28, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

06/27/2013

pdf

text

original

 
FIXING BLOCK CORRUPTION (RMAN) on 11G
Assume:
BLOCK CORRUPTION and DATABASE ARCHIVELOG MODE.SQL> select file_name from dba_data_files where tablespace_name='USERS';FILE_NAME---------------------------------------------------------------------------------------------------------------------------------- /oracle/oradata/ORCL/datafile/o1_mf_users_5twzp1c3_new.dbf $ dd if=/dev/zero of=/oracle/oradata/ORCL/datafile/o1_mf_users_5twzp1c3_new.dbf bs=8kconv=notrunc seek=10 count=11+0 records in1+0 records out8192 bytes (8.2 kB) copied, 0.0631573 seconds, 130 kB/s
1
.
Using Data Recovery Advisor
(by RMAN command)Reference: http://download.oracle.com/docs/cd/B28359_01/server.111/b28318/backrec.htm#CNCPT1438• list failure - to list any failures.• advise failure - to display repair options for the specified failures.• repair failure - to repair database failures identified.RMAN>
list failure;
using target database control file instead of recovery catalogList of Database Failures=========================Failure ID Priority StatusTime Detected Summary---------- -------- --------- ------------- -------1881HIGHOPEN14-APR-10Datafile 4: '/oracle/oradata/ORCL/datafile/o1_mf_users_5twzp1c3_new.dbf' contains one or more corrupt blocksRMAN>
advise failure;
List of Database Failures=========================Failure ID Priority StatusTime Detected Summary---------- -------- --------- ------------- -------1881HIGHOPEN14-APR-10Datafile 4: '/oracle/oradata/ORCL/datafile/o1_mf_users_5twzp1c3_new.dbf' contains one or more corrupt blocksanalyzing automatic repair options; this may take some timeallocated channel: ORA_DISK_1channel ORA_DISK_1: SID=131 device type=DISKanalyzing automatic repair options completeMandatory Manual Actions========================no manual actions available
 
Optional Manual Actions=======================no manual actions availableAutomated Repair Options========================Option Repair Description------ ------------------
1Perform block media recovery of block 10 in file 4
Strategy: The repair includes complete media recovery with no data lossRepair script: /oracle/diag/rdbms/orcl/orcl/hm/reco_1500755688.hmRMAN>
repair failure;
Strategy: The repair includes complete media recovery with no data lossRepair script: /oracle/diag/rdbms/orcl/orcl/hm/reco_1500755688.hmcontents of repair script:# block media recovery
recover datafile 4 block 10;
Do you really want to execute the above repair (enter YES or NO)? YESexecuting repair scriptStarting recover at 14-APR-10using channel ORA_DISK_1channel ORA_DISK_1: restoring block(s)channel ORA_DISK_1: specifying block(s) to restore from backup setrestoring blocks of datafile 00004channel ORA_DISK_1: reading from backup piece /oracle/flash_recovery_area/ORCL/backupset/2010_04_14/o1_mf_nnndf_TAG20100414T085114_5wb7ws6f_.bkpchannel ORA_DISK_1: piece handle=/oracle/flash_recovery_area/ORCL/backupset/2010_04_14/o1_mf_nnndf_TAG20100414T085114_5wb7ws6f_.bkptag=TAG20100414T085114channel ORA_DISK_1: restored block(s) from backup piece 1channel ORA_DISK_1: block restore complete, elapsed time: 00:00:01starting media recoverymedia recovery complete, elapsed time: 00:00:01Finished recover at 14-APR-10repair failure complete
2
.
Using NONE Data Recovery AdvisorVERIFY:- Using DB VERIFY
$ dbv-helpDBVERIFY: Release 11.1.0.6.0 - Production on Wed Apr 14 04:25:48 2010Copyright (c) 1982, 2007, Oracle.All rights reserved.
 
KeywordDescription(Default)----------------------------------------------------FILEFile to Verify(NONE)STARTStart Block(First Block of File)ENDEnd Block(Last Block of File)BLOCKSIZELogical Block Size(8192)LOGFILEOutput Log(NONE)FEEDBACKDisplay Progress(0)PARFILEParameter File(NONE)USERIDUsername/Password(NONE)SEGMENT_IDSegment ID (tsn.relfile.block) (NONE)HIGH_SCNHighest Block SCN To Verify(NONE)(scn_wrap.scn_base OR scn)$ dbv FILE=/oracle/oradata/ORCL/datafile/o1_mf_users_5twzp1c3_new.dbf BLOCKSIZE=8192DBVERIFY: Release 11.1.0.6.0 - Production on Wed Apr 14 04:26:36 2010Copyright (c) 1982, 2007, Oracle.All rights reserved.DBVERIFY - Verification starting : FILE = /oracle/oradata/ORCL/datafile/o1_mf_users_5twzp1c3_new.dbf Page 10 is marked corrupt
Corrupt block relative dba: 0x0100000a (file 4, block 10)
Completely zero block found during dbv:DBVERIFY - Verification completeTotal Pages Examined: 35304Total Pages Processed (Data) : 29789Total Pages Failing(Data) : 0Total Pages Processed (Index): 2182Total Pages Failing(Index): 0Total Pages Processed (Other): 2254Total Pages Processed (Seg): 0Total Pages Failing(Seg): 0Total Pages Empty: 1078Total Pages Marked Corrupt: 1Total Pages Influx: 0Total Pages Encrypted: 0Highest block SCN: 909266 (0.909266)
- Using RMAN
***Assume: Using ARCHIVELOG Mode***
RMAN> backup validate tablespace USERS;Starting backup at 14-APR-10using target database control file instead of recovery catalogallocated channel: ORA_DISK_1channel ORA_DISK_1: SID=134 device type=DISK

Activity (6)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
mkghai liked this
mkghai liked this
Mohamed Azar liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->