如果用OBackup备份RAC归档日志?
我在使用OBackup进行备份单实例的时候,脚本如下:
connect target sys/"root"@实例名
run{
allocate channel c1 type sbt send '(Master_Server_IP=192.168.11.110,Master_Server_Port=12000,Storage_Unit_Name=orabackup)'; //备份通道
sql 'alter system archive log current';
backup incremental level 0 database format 'level_0_%d_%s_%p_%u_%T.dbf' include current controlfile;
backup archivelog all format 'log_%d_%s_%p_%u_%T.arch' delete all input;
release channel c1;
}
可以正常备份。
目前我的RAC有两个节点,归档日志部分存放在两个节点的本地目录中,当我使用上面的方式进行备份RAC归档日志的时候,老是提示,另外一个节点的归档日志不存在,
那位高手能高手小弟,应该如何备份RAC的归档日志?
connect target sys/"root"@实例名
run{
allocate channel c1 type sbt send '(Master_Server_IP=192.168.11.110,Master_Server_Port=12000,Storage_Unit_Name=orabackup)'; //备份通道
sql 'alter system archive log current';
backup incremental level 0 database format 'level_0_%d_%s_%p_%u_%T.dbf' include current controlfile;
backup archivelog all format 'log_%d_%s_%p_%u_%T.arch' delete all input;
release channel c1;
}
可以正常备份。
目前我的RAC有两个节点,归档日志部分存放在两个节点的本地目录中,当我使用上面的方式进行备份RAC归档日志的时候,老是提示,另外一个节点的归档日志不存在,
那位高手能高手小弟,应该如何备份RAC的归档日志?
作者: tomcent 发布时间: 2011-12-08
allocate channel c1 。。。connect SID1
allocate channel c1 。。。connect SID2
作者: 咔叮枫情 发布时间: 2011-12-08
allocate channel c1 。。。connect SID1
allocate channel c1 。。。connect SID2
咔叮枫情 发表于 2011-12-8 18:00
allocate channel c1 。。。connect SID2
咔叮枫情 发表于 2011-12-8 18:00
大哥能具体点吗?
作者: tomcent 发布时间: 2011-12-08
谢谢大哥~~搞定了,脚本如下:
run{
allocate channel c1 type sbt connect 'sys/sys@rac1' send '(Master_Server_IP=192.168.11.110,Master_Server_Port=12000,Storage_Unit_Name=orabackup)'; //备份通道
allocate channel c2type sbt connect 'sys/sys@rac2' send '(Master_Server_IP=192.168.11.110,Master_Server_Port=12000,Storage_Unit_Name=orabackup)'; //备份通道
sql 'alter system archive log current';
backup archivelog all format 'log_%d_%s_%p_%u_%T.arch' delete all input;
release channel c1;
release channel c2;
}
run{
allocate channel c1 type sbt connect 'sys/sys@rac1' send '(Master_Server_IP=192.168.11.110,Master_Server_Port=12000,Storage_Unit_Name=orabackup)'; //备份通道
allocate channel c2type sbt connect 'sys/sys@rac2' send '(Master_Server_IP=192.168.11.110,Master_Server_Port=12000,Storage_Unit_Name=orabackup)'; //备份通道
sql 'alter system archive log current';
backup archivelog all format 'log_%d_%s_%p_%u_%T.arch' delete all input;
release channel c1;
release channel c2;
}
作者: tomcent 发布时间: 2011-12-08