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、觉得还是环境变量的问题,但是不能确定,哪位大侠可以指导一下,不胜感激啊作者: yddll 时间: 2008-03-30 12:47
手工备份过的去,自动备份过不去,检查nsrsyb先作者: ancun0718 时间: 2008-03-30 13:45
1/如果用sybase 用户 去执行nsrsyb备份也是正常的,
2/就是用root用户去执行的时候会报以上错误
3/是不是一定要加 umask 002?在什么地方加?作者: redwaves 时间: 2008-03-30 23:53
呵呵。查你的nsrsyb吧作者: ancun0718 时间: 2008-03-31 00:37
###########################################################################
# 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