免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 9081 | 回复: 16
打印 上一主题 下一主题

[备份软件] 又一个nbu备份oracle奇怪的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-08-18 10:02 |只看该作者 |倒序浏览
备份文件没问题, 通过rman备份也没问题, 通过rman scripts备份出错.  这可能是什么原因?

###通过rman备份也没问题

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

allocated channel: ch00
channel ch00: sid=144 devtype=SBT_TAPE
channel ch00: Veritas NetBackup for Oracle - Release 7.1 (2011020322)

sent command to channel: ch00

Starting backup at 17-AUG-11
channel ch00: starting full datafile backupset
channel ch00: specifying datafile(s) in backupset
input datafile fno=00001 name=/oradata/bench/system01.dbf
input datafile fno=00004 name=/oradata/bench/users01.dbf
input datafile fno=00003 name=/oradata/bench/sysaux01.dbf
input datafile fno=00002 name=/oradata/bench/undotbs01.dbf
channel ch00: starting piece 1 at 17-AUG-11
channel ch00: finished piece 1 at 17-AUG-11
piece handle=0jmk81u9_1_1 tag=TAG20110817T173921 comment=API Version 2.0,MMS Version 5.0.0.0
channel ch00: backup set complete, elapsed time: 00:00:55
channel ch00: starting full datafile backupset
channel ch00: specifying datafile(s) in backupset
including current control file in backupset
channel ch00: starting piece 1 at 17-AUG-11
channel ch00: finished piece 1 at 17-AUG-11
piece handle=0kmk8200_1_1 tag=TAG20110817T173921 comment=API Version 2.0,MMS Version 5.0.0.0
channel ch00: backup set complete, elapsed time: 00:00:25
Finished backup at 17-AUG-11

sql statement: alter system archive log current

released channel: ch00

allocated channel: ch00
channel ch00: sid=144 devtype=SBT_TAPE
channel ch00: Veritas NetBackup for Oracle - Release 7.1 (2011020322)

sent command to channel: ch00

Starting backup at 17-AUG-11
current log archived
channel ch00: starting archive log backupset
channel ch00: specifying archive log(s) in backup set
input archive log thread=1 sequence=23 recid=1 stamp=759424718
input archive log thread=1 sequence=24 recid=2 stamp=759424720
input archive log thread=1 sequence=25 recid=3 stamp=759432732
input archive log thread=1 sequence=26 recid=4 stamp=759432732
input archive log thread=1 sequence=27 recid=5 stamp=759433242
input archive log thread=1 sequence=28 recid=6 stamp=759433243
channel ch00: starting piece 1 at 17-AUG-11
channel ch00: finished piece 1 at 17-AUG-11
piece handle=0lmk820r_1_1 tag=TAG20110817T174043 comment=API Version 2.0,MMS Version 5.0.0.0
channel ch00: backup set complete, elapsed time: 00:00:26
Finished backup at 17-AUG-11

released channel: ch00

通过rman scripts备份出错

Recovery Manager: Release 10.2.0.4.0 - Production on Thu Aug 18 09:50:27 2011

Copyright (c) 1982, 2007, Oracle.  All rights reserved.

connected to target database: BENCH (DBID=1977221881)
using target database control file instead of recovery catalog

RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 14> 15> 16> 17> 18> 19> 20> 21> 22> 23> 24> 25> 26> 27> 28> RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 14> 15> 16> 17> 18> 19> 20> 21> 22> 23> 24> 25> 26> 27> 28>
allocated channel: ch00
channel ch00: sid=138 devtype=SBT_TAPE
channel ch00: Veritas NetBackup for Oracle - Release 7.1 (2011020322)
sent command to channel: ch00

allocated channel: ch01
channel ch01: sid=143 devtype=SBT_TAPE
channel ch01: Veritas NetBackup for Oracle - Release 7.1 (2011020322)
sent command to channel: ch01

Starting backup at 18-AUG-11
channel ch00: starting incremental level 0 datafile backupset
channel ch00: specifying datafile(s) in backupset
input datafile fno=00001 name=/oradata/bench/system01.dbf
input datafile fno=00002 name=/oradata/bench/undotbs01.dbf
channel ch00: starting piece 1 at 18-AUG-11
channel ch01: starting incremental level 0 datafile backupset
channel ch01: specifying datafile(s) in backupset
input datafile fno=00004 name=/oradata/bench/users01.dbf
input datafile fno=00003 name=/oradata/bench/sysaux01.dbf
channel ch01: starting piece 1 at 18-AUG-11
RMAN-03009: failure of backup command on ch00 channel at 08/18/2011 09:50:31
ORA-19506: failed to create sequential file, name="bk_30_1_759491430", 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
channel ch00 disabled, job failed on it will be run on another channel
released channel: ch00
released channel: ch01
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ch01 channel at 08/18/2011 09:50:31
ORA-19506: failed to create sequential file, name="bk_31_1_759491430", 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

论坛徽章:
0
2 [报告]
发表于 2011-08-18 10:05 |只看该作者
曾经更换过client对应的 nbu master, 结果出来同样的错误信息.

论坛徽章:
3
CU十二周年纪念徽章
日期:2013-10-24 15:41:34IT运维版块每日发帖之星
日期:2015-09-04 06:20:00数据库技术版块每日发帖之星
日期:2015-11-24 06:20:00
3 [报告]
发表于 2011-08-18 10:06 |只看该作者
端口?

论坛徽章:
0
4 [报告]
发表于 2011-08-18 10:35 |只看该作者
试试重启netbackup服务

论坛徽章:
0
5 [报告]
发表于 2011-08-18 10:47 |只看该作者
回复 4# fenqtek


    试过了, 不管用。 如果是服务出问题,为啥备普通文件没问题,通过rman 备份也没问题呢?

论坛徽章:
1
CU十二周年纪念徽章
日期:2013-10-24 15:41:34
6 [报告]
发表于 2011-08-18 10:50 |只看该作者
rman 能运行说明已经link了。脚本不能运行,肯定是脚本没有改好。

论坛徽章:
0
7 [报告]
发表于 2011-08-18 10:56 |只看该作者
需要查看bpcd、dbclient和 bphdb日志

论坛徽章:
0
8 [报告]
发表于 2011-08-18 14:53 |只看该作者
重点看ORA-19506啊,google一下吧,不好办,貌似以前碰到过,忘了

论坛徽章:
0
9 [报告]
发表于 2011-08-18 15:50 |只看该作者
回复 8# wolfheader


    十分感谢!

论坛徽章:
0
10 [报告]
发表于 2011-08-18 22:35 |只看该作者
回复 1# wangyl1977


试试在send 中加入NB_ORA_SID=
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP