329.If you find errors in the view V$DATABASE_BLOCK_CORRUPTION with a status of
MEDIA_CORRUPT, what RMAN command would you run to correct the problem?
A. recover lost blocks;
B. recover corrupt blocks;
C. recover media corrupt blocks from list;
D. recover corrupt blocks from list;
E. recover corruption list;
Answer: E
答案解析:
参考:http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmblock.htm#BRADV360
Recovering All Blocks in V$DATABASE_BLOCK_CORRUPTION
In this scenario, RMAN automatically recovers all blocks listed in the V$DATABASE_BLOCK_CORRUPTION
view.
To recover all blocks logged in V$DATABASE_BLOCK_CORRUPTION:
-
Start SQL*Plus and connect to the target database.
-
Query
V$DATABASE_BLOCK_CORRUPTION
to determine whether corrupt blocks exist. For example, execute the following statement:SQL> SELECT * FROM V$DATABASE_BLOCK_CORRUPTION; -
Start RMAN and connect to the target database.
-
Recover all blocks marked corrupt in
V$DATABASE_BLOCK_CORRUPTION
.The following command repairs all physically corrupted blocks recorded in the view:
RMAN> RECOVER CORRUPTION LIST;After the blocks are recovered, the database removes them from
V$DATABASE_BLOCK_CORRUPTION
.
ORRUPTION LIST |
Recovers all physically corrupt blocks listed in the V$DATABASE_BLOCK_CORRUPTION view. Block media recovery
may not be able to repair all listed logically corrupt blocks. In these cases, alternate recovery methods, such as tablespace point-in-time recovery, or dropping and re-creating the affected objects, may repair the corruption.
The
The view does not record corruptions that can be detected by validating relationships between blocks and segments, but cannot be detected by a check of an individual block. Note: Any RMAN command that fixes or detects that a block is repaired updates |