- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
2#
发表于 2013-2-5 16:55:54
目前没有使用该命令的经验, 相关的资料较少
可以参考资料:- 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 a comma separated list of old diskgroup
- name and new diskgroup names 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 diskgroups - Comma separated list of disk groups to be restored. If no disk groups are
- defined, then all disk groups will be restored.
- Examples
- 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
复制代码 |
|