486.You execute the following Recovery Manager (RMAN) commands in (he following order:
BACKUP VALIDATE DATABAE
RECOVER CORRUPTION LIST;
Which (two tasks are performed by these commands? (Choose two.)
A. Repair the corrupted blocks. If any. In the backup created.
B. Populate VSCOPV_CORRUPTION with names of files that have corrupted blocks-
C. Back up the database after checking whether array of the files have corrupted blocks.
D. Discover any corrupt blocks that are viewable with the VSDATABASE_BI-OCK_CORBUPTION view.
E. Repair all corrupted blocks that have been logged in the VSDATABASE_BLOCK_ CORRUPTION
Answer: BC
答案解析:
根据官方文档可知,此题选DE
VALIDATE |
Scans
the specified files and verifies their contents, testing whether this file can be backed up and whether the data blocks are corrupt.
RMAN creates no output files. This option is equivalent to using the If you do not specify You can use the If you execute Note: You cannot validate backups of backup sets. |
V$DATABASE_BLOCK_CORRUPTION
V$DATABASE_BLOCK_CORRUPTION
displays information about database blocks that were corrupted after the last backup.
Column | Datatype | Description |
---|---|---|
FILE# |
NUMBER |
Absolute file number of the datafile that contains the corrupt blocks |
BLOCK# |
NUMBER |
Block number of the first corrupt block in the range of corrupted blocks |
BLOCKS |
NUMBER |
Number of corrupted blocks found starting with BLOCK# |
CORRUPTION_CHANGE# |
NUMBER |
Change number at which the logical corruption was detected. Set to 0 to indicate media corruption. |
CORRUPTION_TYPE |
VARCHAR2(9) |
Type of block corruption in the datafile:
|
Prerequisites Specific to RECOVER BLOCK
The following prerequisites apply to RECOVER BLOCK
:
-
The target database must run in
ARCHIVELOG
mode and be open or mounted with a current control file. -
RMAN can only recover blocks marked media corrupt. The
V$DATABASE_BLOCK_CORRUPTION
view indicates which blocks in a file were marked corrupt since the most recentBACKUP
orBACKUP ... VALIDATE
command was run against the file. -
The backups of the data files containing the corrupt blocks must be full backups and not proxy backups. If only proxy backups exist, then you can restore them to a nondefault location on disk, in which case RMAN considers them data file copies. You can then use the data file copies for block media recovery.
-
RMAN can use only archived redo log files for recovery. Block media recovery cannot survive a missing or inaccessible log, although it can sometimes survive missing or inaccessible records (see Oracle Database Backup and Recovery User's Guide).
-
For RMAN to be able to search the flashback logs for good copies of corrupt blocks, Flashback Database must be enabled on the target database.
-
For RMAN to be able to search a standby database for good copies of corrupt blocks, the target database must be associated with a physical standby database in a Data Guard environment. In addition, the physical standby database must be open read-only in managed recovery.
blockObject
This subclause specifies the data blocks that require recovery. Refer to blockObject::= for the syntax diagram. Refer to "Prerequisites Specific to RECOVER BLOCK" for prerequisites specific to block media recovery.
You can either use
RECOVER CORRUPTION LIST
to recover all blocks reported in theV$DATABASE_BLOCK_CORRUPTION
view, or specify the data file number and block number or the tablespace and data block address (DBA). RMAN can only perform complete recovery of individual blocks.By default, if Flashback Database is enabled, then RMAN searches the flashback logs for good copies of corrupt blocks. By default, if the target database exists in a Data Guard environment, then
RECOVER BLOCK
command can automatically retrieve blocks from a physical standby database to a primary database and vice-versa.Syntax Element Description CORRUPTION 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
V$DATABASE_BLOCK_CORRUPTION
view displays blocks marked corrupt by Oracle Database components such as RMAN commands,ANALYZE
,dbv
, SQL queries, and so on. In short, any process that encounters anORA-1578
error records the block corruption in this view. The following types of corruption result in rows added to this view:-
Physical corruption (sometimes called media corruption). The database does not recognize the block at all: the checksum is invalid, the block contains all zeros, or the header and footer of the block do not match.
-
Logical corruption. The block has a valid checksum, the header and footer match, and so forth, but the contents are logically inconsistent.
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
V$DATABASE_BLOCK_CORRUPTION
. For example, RMAN updates the repository at end of successful block media recovery. If aBACKUP
,RESTORE
, orVALIDATE
command detects that a block is no longer corrupted, then it removes the repaired block from the view. -