求nbu 备份 oracle rac database 的脚本(cold 和hot )

发布于 2022-09-02 20:18:51 字数 3222 浏览 7 评论 9

查看NetBackup_AdminGuide_Oracle_Unix ,里提到是 下面的脚本.

RUN
{
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
SEND 'NB_ORA_CLIENT=$NB_ORA_CLIENT, NB_ORA_SERV=$NB_ORA_SERV';
BACKUP
DATABASE;
sql 'alter system archive log current';
RELEASE CHANNEL ch00;
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
SEND 'NB_ORA_CLIENT=$NB_ORA_CLIENT, NB_ORA_SERV=$NB_ORA_SERV';
BACKUP
ARCHIVELOG ALL ;
RELEASE CHANNEL ch00;
}

可我运行时报错

RMAN> RUN
2> {
3> ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
4> SEND 'NB_ORA_CLIENT=$NB_ORA_CLIENT, NB_ORA_SERV=$NB_ORA_SERV';
5> BACKUP
6> DATABASE;
7> sql 'alter system archive log current';
8> RELEASE CHANNEL ch00;
9> ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
10> SEND 'NB_ORA_CLIENT=$NB_ORA_CLIENT, NB_ORA_SERV=$NB_ORA_SERV';
11> BACKUP
12> ARCHIVELOG ALL ;
13> RELEASE CHANNEL ch00;
14> }

using target database control file instead of recovery catalog
allocated channel: ch00
channel ch00: SID=141 instance=racg2 device type=SBT_TAPE
channel ch00: Veritas NetBackup for Oracle - Release 7.0 (2010051100)

sent command to channel: ch00

Starting backup at 28-JUL-10
channel ch00: starting full datafile backup set
channel ch00: specifying datafile(s) in backup set
input datafile file number=00006 name=/bbbb/odm2.dbf
input datafile file number=00002 name=/oracle/racg/sysaux01.dbf
input datafile file number=00001 name=/oracle/racg/system01.dbf
input datafile file number=00003 name=/oracle/racg/undotbs01.dbf
input datafile file number=00005 name=/oracle/racg/undotbs02.dbf
input datafile file number=00004 name=/oracle/racg/users01.dbf
channel ch00: starting piece 1 at 28-JUL-10
released channel: ch00
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ch00 channel at 07/28/2010 15:07:06
ORA-19506: failed to create sequential file, name="1flju60e_1_1", parms=""
ORA-27028: skgfqcre: sbtbackup returned error
ORA-19511: Error received from media manager layer, error text:
   VxBSAValidateFeatureId: Failed with error:
   Server Status:  cannot connect on socket

网上找到另一个
RUN {
ALLOCATE CHANNEL ch00 device type sbt connect'sys/oracle@racg1'parms "ENV=(NB_ORA_CLIENT=hp01)" ;
ALLOCATE CHANNEL ch01 device type sbt connect'sys/oracle@racg2'parms "ENV=(NB_ORA_CLIENT=hp02)" ;
SEND 'NB_ORA_CLIENT=$NB_ORA_CLIENT';
BACKUP
   TAG hot_backup
   FORMAT 'rac_backup_%d_%s_%p_%t'
   DATABASE;
   sql 'alter system archive log current';
RELEASE CHANNEL ch00;
RELEASE CHANNEL ch01;
}

我运行这2个都有问题, 哪位有做过?谢谢

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

眼中杀气 2022-09-10 18:27:31

using target database control file instead of recovery catalog
allocated channel: ch00
channel ch00: SID=141 instance=racg2 device type=SBT_TAPE
channel ch00: Veritas NetBackup for Oracle - Release 7.0 (2010051100)

sent command to channel: ch00

Starting backup at 28-JUL-10
channel ch00: starting full datafile backup set
channel ch00: specifying datafile(s) in backup set
input datafile file number=00006 name=/bbbb/odm2.dbf
input datafile file number=00002 name=/oracle/racg/sysaux01.dbf
input datafile file number=00001 name=/oracle/racg/system01.dbf
input datafile file number=00003 name=/oracle/racg/undotbs01.dbf
input datafile file number=00005 name=/oracle/racg/undotbs02.dbf
input datafile file number=00004 name=/oracle/racg/users01.dbf
channel ch00: starting piece 1 at 28-JUL-10
released channel: ch00
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ch00 channel at 07/28/2010 15:07:06
ORA-19506: failed to create sequential file, name="1flju60e_1_1", parms=""
ORA-27028: skgfqcre: sbtbackup returned error
ORA-19511: Error received from media manager layer, error text:
   VxBSAValidateFeatureId: Failed with error:
   Server Status:  cannot connect on socket

我也碰到相同的问题,还请大家指点下,,我用的脚本是安装好NBU后自带的脚本来改的。

浪菊怪哟 2022-09-10 18:27:31

回复 8# jhxware

  如果oracle_relink 已经完成 ,   重试下重起nbu master

扛起拖把扫天下 2022-09-10 18:27:31

建议LZ看一下NBU for Oracle 的admin guide ,在 附录B中有Backup RAC best practice.

里面有脚本的写法。

无边思念无边月 2022-09-10 18:25:11

找正规的脚本
别随处找个乱用
除非你真明白每个参数的意义

弥枳 2022-09-10 18:24:31

回复 3# johnson2002

    bp.conf
修改REQUIRED_INTERFACE

秋日私语 2022-09-10 18:21:07

这两天碰到的这种问题挺多的还

平台 版本
你求助得把问题说清楚
赵大少爷 发表于 2010-07-28 19:37

    hp 11.31 + oracle 11gr1 rac + nbu7.0.1

master : hp23
client : hp01/hp02

谢谢

以为你会在 2022-09-10 12:45:37

这两天碰到的这种问题挺多的还

平台 版本
你求助得把问题说清楚

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文