You
are managing an Oracle Database 11g instance with ASM storage. You lost an ASM
disk group DATA. You have RMAN backup of data as well as ASM metadata backup. You want to re-create the missing disk group by using the ASMCMD md_restore
command. Which of these methods would you use to achieve this? (Choose all that apply.)
A. Restore the disk group with the exact configuration as the backed-up disk
group, using the same disk group name, same set of disks, failure group configurations, and data
on the disk
group.
B. Restore the disk group with the exact configuration as the backed-up disk
group, using the same disk group name, same set of disks, and failure group configurations.
C. Restore the disk group with changed disk group specification, failure group
specification, disk group name, and other disk attributes.
D. Restore metadata in an existing disk group by passing the existing disk
group name as an input parameter.
Answer: B,C,D
Explanation:
Purpose
The md_restore command restores disk groups from a metadata backup file.
Syntax and Description
md_restore backup_file [--silent]
[--full|--nodg|--newdg -o 'old_diskgroup:new_diskgroup [,...]']
[-S sql_script_file] [-G 'diskgroup [,diskgroup...]']
Table 12-39 describes the options for the md_restore command.
Table 12-39 Options for the md_restore command
|
Option |
Description |
|
backup_file |
Reads the metadata information from backup_file. |
|
--silent |
Ignore errors. Typically, if md_restore encounters an error, it stops. Specifying this flag ignores any errors. |
|
--full |
Specifies to create a disk group and restore metadata. |
|
--nodg |
Specifies to restore metadata only. |
|
--newdg -o old_diskgroup:new_diskgroup] |
Specifies to create a disk group with a different name when restoring metadata. The -o option is required with --newdg. |
|
-S sql_script_file |
Write SQL commands to the specified SQL script file instead of executing the commands. |
|
-G diskgroup |
Select the disk groups to be restored. If no disk groups are defined, then all disk groups are restored. |
Example
The first example restores the disk group data from the backup script and creates a copy. The second example takes an existing disk group data and restores its metadata. The third example restores disk group data completely but the new disk group that is created is named data2. The fourth example restores from the backup file after applying the overrides defined in the override.sql script file.
Example 12-41 Using the ASMCMD md_restore command
ASMCMD [+] > md_restore –-full –G data –-silent /scratch/backup/alldgs20100422
ASMCMD [+] > md_restore –-nodg –G data –-silent /scratch/backup/alldgs20100422
ASMCMD [+] > md_restore –-newdg -o 'data:data2' --silent /scratch/backup/data20100422
ASMCMD [+] > md_restore -S override.sql --silent /scratch/backup/data20100422
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29555029/viewspace-1601875/ ,如需转载,请注明出处,否则将追究法律责任。