免费注册 查看新帖 |

Chinaunix

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

[备份软件] 请教Legato ,Sybase备份出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-03-30 00:02 |只看该作者 |倒序浏览
环境 Legato networker 7.4,NMS 3.0,AIX 5.3,Sybase ASE12.5.3
1、在客户端使用nsrsybsv 备份的时候都很正常
2、在备份服务器端发起Group的备份,报错,CC都能过得去但是备份到数据库的时候就不可以了
3、检查在sybase的日志,有如下错误信息
===============================

Mar 29 01:32:34 2008: Backup Server: 4.132.1.1: Attempting to open byte stream device: 'bms::f03n03.GLSH.master../nsr/tmp/syvJ3vya::00'
Mar 29 01:32:34 2008: Backup Server: 4.124.2.1: Archive API error for device='bms::f03n03.GLSH.master../nsr/tmp/syvJ3vya::00': Vendor application name=EMC, Library version=200, API routine=syb_open(), Message=unable to create environment variables.

Mar 29 01:32:37 2008: Backup Server: 4.132.1.1: Attempting to open byte stream device: 'bms::f03n03.GLSH.master../nsr/tmp/sy16MiMa::00'
Mar 29 01:32:37 2008: Backup Server: 4.124.2.1: Archive API error for device='bms::f03n03.GLSH.master../nsr/tmp/sy16MiMa::00': Vendor application name=EMC, Library version=200, API routine=syb_open(), Message=unable to create environment variables.
=============================
4、/nsr/tmp的权限已经是777了,况且在sybase服务器手工执行备份,也都很正常
5、觉得还是环境变量的问题,但是不能确定,哪位大侠可以指导一下,不胜感激啊

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
2 [报告]
发表于 2008-03-30 12:47 |只看该作者
手工备份过的去,自动备份过不去,检查nsrsyb先

论坛徽章:
0
3 [报告]
发表于 2008-03-30 13:45 |只看该作者
1/如果用sybase 用户 去执行nsrsyb备份也是正常的,
2/就是用root用户去执行的时候会报以上错误
3/是不是一定要加 umask 002?在什么地方加?

论坛徽章:
0
4 [报告]
发表于 2008-03-30 23:53 |只看该作者
呵呵。查你的nsrsyb吧

论坛徽章:
0
5 [报告]
发表于 2008-03-31 00:37 |只看该作者
原帖由 redwaves 于 2008-3-30 23:53 发表
呵呵。查你的nsrsyb吧

-----------------------
有做过的 sybase备份的 nsrsyb么?贴出来 参考一下
里面是否需要加 su -  sybase呢?

论坛徽章:
0
6 [报告]
发表于 2008-03-31 09:19 |只看该作者
查看sybase mod book

论坛徽章:
0
7 [报告]
发表于 2008-03-31 10:01 |只看该作者
lz说的应该对,server调用nsrsybsv的时候环境变量有问题,看看nsrsyb里有几个选项写对了么,不记得是不是有个LIB的参数了。

另外实在不行,就写个nsrsyb,自己加变量,然后执行nsrsybsv

论坛徽章:
0
8 [报告]
发表于 2008-03-31 13:58 |只看该作者
nsrsyb 参数
===============================================

###########################################################################
# This value MUST be set for scheduled backups to run.
###########################################################################
#
# Variable: SYBASE
# Default value:
# Description: Specifies where the Sybase RDBMS is installed.
# Set this variable to the directory where Sybase ASE
# software is installed. This *must* be set for scheduled backups
# to be able to find the Sybase libraries and executables.
#
SYBASE=/sybase
#umask 002
. $SYBASE/SYBASE.sh
###########################################################################


#
# Configuration variables, modifiable by users.
#
###########################################################################
# The following lines may be edited to change the default settings.  These
# are for advanced tailoring of backups and should be edited carefully.
###########################################################################

#
# Variable: USE_CONSISTENCY_CHECK
# Default value: true
# If set, this puts a consistency check into the PRECMD variable.
# To disable this, set the USE_CONSISTENCY_CHECK value as follows:
# USE_CONSISTENCY_CHECK=
#
# If this is on, it will set the PRECMD to do a consistency check.
# If you need to customize the PRECMD to do other work, unset this
# value and perform any desired consistency checks in your own
# script.
#
USE_CONSISTENCY_CHECK=true

#
# Variable: DBCCOPT
# Default value: none
# If set, these are the options that the nsrsybcc program uses in its
# consistency check.  If not set, the options will be the program defaults
# from the nsrsybcc program.
#
DBCCOPT=

#
# Variable: PRECMD
# Default value:
# Description: This variable can be used to run a command before nsrsybsv.
#
# If USE_CONSISTENCY_CHECK is set, the PRECMD will be constructed to perform
# a nsrsybcc check on the given saveset.  A PRECMD that you set here will
# not be overwritten by a consistency check, however.
#
PRECMD=

#
# Variable: POSTCMD
# Default value: NONE
# Description: This variable can be used to run a command after nsrsybsv
# has completed.
#
POSTCMD=

#
# Variable: BACKUP_OPT
# Default value: none
# If set, these are the options that will be passed to the nsrsybsv
# program in addition to the ones set from savegrp.  This is useful
# for setting the debug level.
# Passing -N option is not recommended as it will be overwritten by
# what is passed from the savegroup.
#
#BACKUP_OPT="-D 4"
#
BACKUP_OPT=

#
# Variable: NSR_DATA_VOLUME_POOL
# Default value: none
# Description: If this variable is set to name a media pool, then database
# backups will be directed to the named media pool.
#
NSR_DATA_VOLUME_POOL=

#
# Variable: NSR_LOG_VOLUME_POOL
# Default value: none
# Description: If this variable is set to name a media pool, then
# transaction log backups will be directed to the named media pool.
#
NSR_LOG_VOLUME_POOL=

#
# Variable: NSR_COMPRESSION
# Default value: FALSE
# Description: This environment variable specifies whether client-side
# compression is performed on the data.
#
NSR_COMPRESSION=FALSE

#
# Variable: NSR_AES_ENCRYPTION
# Default value: FALSE
# Description: This environment variable specifies whether AES encryption
# is used between the client and server.
#
NSR_AES_ENCRYPTION=FALSE

#
# Variable: NSR_ASE_PASSWORD
# Default value: None
# Description: This environment variable specifies the password
# to be used while dumping for ASE 12.5.2 onwards.
#
NSR_ASE_PASSWORD=

#
# Variable: NSR_ASE_VERIFY
# Default value: None
# Description: This environment variable specifies the verify
# clause to be used while issuing dump command for ASE 12.5.4 onwards.
# The valid values can be either "header" or "full". The value
# is case insensitive. The option header will verify only the
# header before dump. The option full will verify both
# header and row structure.
# Note that the verify clause does not work with ASE 15.0.
#
NSR_ASE_VERIFY=

#
# Variable: NSR_DEBUG_FILE
# Default value: /nsr/applogs/xbsa.messages
# Description: This environment variable specifies which file the XBSA
# messages should be written to.
#
NSR_DEBUG_FILE=/nsr/applogs/xbsa.messages
#NSR_SAVESET_NAME=SYBASE:/GLSH/model

###########################################################################
# Do not edit anything below this line.
###########################################################################
================================
下半部分不需要编辑的 就没有抄出来了
应该就是加个路径参数就可以了啊SYBASE=/sybase

通过SYBASE.sh获得的环境变量,参考以下部分
================================
#!/bin/sh
SYBASE_ASE="ASE-12_5"
export SYBASE_ASE
NSR_TEMPDIR="/nsr/tmp"
export NSR_TEMPDIR
PATH=$PATH:/usr/bin:/etc:/usr/sbin:/usr/ucbHOME/bin:/usr/bin/X11:/sbin:.
export PATH
PATH="/sybase/ASE-12_5/bin:/sybase/ASE-12_5/install"PATH
export PATH
LIBPATH="/sybase/ASE-12_5/lib"LIBPATH
export LIBPATH
SYBASE_JRE="/sybase/shared-1_0/JRE-1_3"
export SYBASE_JRE
PATH="/sybase/JS-12_5/bin"PATH
export PATH
SYBASE_FTS="EFTS-12_5_2"
export SYBASE_FTS
PATH="/sybase/RPL-12_5/bin"PATH
export PATH
SYBASE_WS="WS-12_5"
export SYBASE_WS
SYBASE="/sybase"
export SYBASE
SYBASE_OCS="OCS-12_5"
export SYBASE_OCS
PATH="/sybase/OCS-12_5/bin"PATH
export PATH
LIBPATH="/sybase/OCS-12_5/lib:/sybase/OCS-12_5/lib3p64:/sybase/OCS-12_5/lib3p"LIBPATH
export LIBPATH
SYBASE_SYSAM="SYSAM-1_0"
export SYBASE_SYSAM
LM_LICENSE_FILE="/sybase/SYSAM-1_0/licenses/license.dat"
export LM_LICENSE_FILE
LIBPATH="/sybase/shared-1_0/JRE-1_3/bin:/sybase/shared-1_0/JRE-1_3/bin/classic"LIBPATH
export LIBPATH
PATH="/sybase/$SYBASE_FTS/bin"PATH
export PATH
LIBPATH="/sybase/$SYBASE_FTS/lib:/sybase/$SYBASE_FTS/verity/_rs6k41/bin:/sybase/$SYBASE_FTS/verity/_rs6k41/filters"LIBPATH
export LIBPATH
SHLIB_PATH=/sybase/OCS-12_5/lib
export SHLIB_PATH

export DSQUERY=GLSH
export LANG=en_US
=====================================================

论坛徽章:
0
9 [报告]
发表于 2009-05-21 21:51 |只看该作者
您的 sybase 环境变量错了
应该是

sybase=$SYBASE/$SYBASE_ASE
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP