|
楼主 |
发表于 2017-1-18 11:34:51
|
显示全部楼层
唐老师,我尝试备份了fra的元数据:
ASMCMD> md_backup /backup/asm_backup_fra -G fra
Disk group metadata to be backed up: FRA
Current alias directory path: ORCL/CONTROLFILE
Current alias directory path: ORCL/ARCHIVELOG/2017_01_16
Current alias directory path: ORCL/BACKUPSET/2016_12_30
Current alias directory path: ORCL/ARCHIVELOG/2017_01_17
Current alias directory path: ORCL
Current alias directory path: ORCL/ARCHIVELOG/2017_01_18
Current alias directory path: ORCL/ARCHIVELOG
Current alias directory path: ORCL/BACKUPSET
Current alias directory path: ORCL/ONLINELOG
备份完成后查看备出来的内容:
[oracle@station79 ~]$ cat /backup/asm_backup_fra
发现其中有下面这一段关于归档日志目录的。
由此产生一个疑问,上课的时候提到才备份ocrconfig的时候,是crs的元数据,变动很小,如果crs_stat -t列表没有变化,都可以用于还原。
但是这里不一样,每天都会产生一个新的,以日期命名的归档目录,假设我今天备份了。
但是明天挂掉的时候,我用今天的备份去恢复,备份里面会缺失明天的归档目录,这样可以吗?或者说每天都要备份?
'ALIASINFO' => {
'6' => {
'DGNAME' => 'FRA',
'LEVEL' => 2,
'ALIASNAME' => 'ORCL/ARCHIVELOG/2017_01_17',
'REFERENCE_INDEX' => '33555121'
},
'3' => {
'DGNAME' => 'FRA',
'LEVEL' => 1,
'ALIASNAME' => 'ORCL/ONLINELOG',
'REFERENCE_INDEX' => '33554591'
},
'7' => {
'DGNAME' => 'FRA',
'LEVEL' => 2,
'ALIASNAME' => 'ORCL/ARCHIVELOG/2017_01_16',
'REFERENCE_INDEX' => '33555386'
},
'2' => {
'DGNAME' => 'FRA',
'LEVEL' => 1,
'ALIASNAME' => 'ORCL/ARCHIVELOG',
'REFERENCE_INDEX' => '33555333'
},
'8' => {
'DGNAME' => 'FRA',
'LEVEL' => 2,
'ALIASNAME' => 'ORCL/BACKUPSET/2016_12_30',
'REFERENCE_INDEX' => '33555280'
},
'1' => {
|
|