QUESTION 118 You are managing an Oracle Database 11g instance with ASM storage. You lost an ASM disk
2016-01-06 11:21
423 查看
QUESTION 118
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
Correct Answer: BCD
Section: (none)
Explanation
Explanation/Reference:
ASMCMD> help md_restore
md_restore
This command restores a disk group metadata backup.
md_restore backup_file [--silent][--full|--nodg|--newdg -o 'old_diskgroup:new_diskgroup [,...]']
[-S sql_script_file] [-G 'diskgroup [,diskgroup...]']
The options for the md_restore command are described below.
backup_file - Reads the metadata information from
backup_file.
--silent - Ignore errors. Normally, if md_restore
encounters an error, it will stop.
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 will be restored.
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 called DATA2.
The fourth example restores from the backup file after applying the overrides defined in the override.
sql script file
ASMCMD [+] > md_restore --full -G data --silent /tmp/dgbackup20090714 ASMCMD
[+] > md_restore --nodg -G data --silent /tmp/dgbackup20090714 ASMCMD [+] >
md_restore --newdg -o 'data:data2' --silent /tmp/dgbackup20090714 ASMCMD [+] >
md_restore -S override.sql --silent /tmp/dgbackup20090714
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
Correct Answer: BCD
Section: (none)
Explanation
Explanation/Reference:
ASMCMD> help md_restore
md_restore
This command restores a disk group metadata backup.
md_restore backup_file [--silent][--full|--nodg|--newdg -o 'old_diskgroup:new_diskgroup [,...]']
[-S sql_script_file] [-G 'diskgroup [,diskgroup...]']
The options for the md_restore command are described below.
backup_file - Reads the metadata information from
backup_file.
--silent - Ignore errors. Normally, if md_restore
encounters an error, it will stop.
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 will be restored.
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 called DATA2.
The fourth example restores from the backup file after applying the overrides defined in the override.
sql script file
ASMCMD [+] > md_restore --full -G data --silent /tmp/dgbackup20090714 ASMCMD
[+] > md_restore --nodg -G data --silent /tmp/dgbackup20090714 ASMCMD [+] >
md_restore --newdg -o 'data:data2' --silent /tmp/dgbackup20090714 ASMCMD [+] >
md_restore -S override.sql --silent /tmp/dgbackup20090714
相关文章推荐
- oracle高级查询总结
- oracle rac ocr 简述
- oracle数据库密码过期报错
- ORACLE 11GR2 安装时配置了域,后期删除
- sql server 与oracle 中字段类型的对应
- over(Partition by…) 一个超级好用的特有(开窗)函数。
- oracle定时器job用法小结
- oracle中建立job定期运行存储过程总结
- Oracle执行计划详解
- Oracle执行语句跟踪(1)——使用sql trace实现语句追踪
- oracle 去掉字段中空格
- 免安装oracle客户连接oracle数据库服务端
- Oracle数据访问组件ODAC的安装方法
- SAP HANA SLT 将Oracle表 数据同步到HANA数据库
- windows2003上10G oracle的备份
- Oracle数据库概念
- 能使 Oracle 索引失效的七大限制条件
- maven是什么?(转自oracle官网)
- Oracle数字型,字符型,日期型函数
- Oracle数字型,字符型,日期型函数