Book Image

Oracle 10g/11g Data and Database Management Utilities

Book Image

Oracle 10g/11g Data and Database Management Utilities

Overview of this book

Does your database look complicated? Are you finding it difficult to interact with it? Database interaction is a part of the daily routine for all database professionals. Using Oracle Utilities the user can benefit from improved maintenance windows, optimized backups, faster data transfers, and more reliable security and in general can do more with the same time and resources.
Table of Contents (18 chapters)
Oracle 10g/11g Data and Database Management Utilities
Credits
About the Author
About the Reviewer
Preface

Block media recovery


Block media recovery is a powerful and very practical RMAN feature. This feature allows the DBA to recover from the dreaded ORA-01578 ORACLE data block corrupted (file # <fileNo>, block # <blockNo>) error. In order for RMAN to be successful in recovering from this error, some conditions must be met:

  • The database must be in archivelog mode.

  • You must have a full database backup. A level 1 incremental backup is not supported in this scenario because in a missing archivelog scenario the recovery process would fail.

  • If flashback is enabled, RMAN can look for valid block copies, making the recovery process faster.

In the following example, some blocks were corrupted at datafile 5. The corruptions were created using the Unix command dd. When querying the database looking for data using a regular SELECT SQL command, the ORA-01578 error shows up:

SQL> select * from employees;
select * from employees
*
ERROR at line 1:
ORA-01578: ORACLE data block corrupted (file...