Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SYBASE environment variable must be set error

Status
Not open for further replies.

zum

Technical User
Mar 31, 2003
148
US
Hi,

I'm running Sybase 11.9 on FreeBSD 6.2. I've installed Sybase and the backup server and everything was running great until I rebooted the server. I start Sybase database server fine, but when I start the backup server I get this error:

No server log file open; Using stderr for log.
Apr 16 10:46:27 2007: Backup Server: 1.56.2.1: The SYBASE environment variable must be set.

I just rebuilt the backupserver, which fixed the problem until I rebooted the server again. Any ideas what I'm doing wrong?

Thanks
 
Sounds like you haven't sourced the SYBASE.sh file, which contains all the Sybase environment variables.

You can check quickly with:
env | grep SYBASE

If you're not getting a load of output, source the file with something like this (depends where you've installed sybase to)
. /opt/sybase/SYBASE.sh


check out our Sybase resources at
 
Here is what I got.

Thanks!

ps -ef|grep sybase
root 4244 4243 0 Feb21 ? 00:00:00 /opt/sybase/ASE-12_5/bin/backupserver -e/opt/sybase/ASE-12_5/install/SYBASE_BS.log S

root 17598 1 0 May01 ? 00:00:00 /opt/sybase/SYSAM-1_0/bin/lmgrd -c /opt/sybase/SYSAM-1_0/licenses/license.dat -l /og

root 17599 17598 0 May01 ? 00:00:00 SYBASE -T badger 8.3 3 -c /opt/sybase/SYSAM-1_0/licenses/license.dat --lmgrd_start f

root 6605 6604 0 May22 ? 00:08:03 /opt/sybase/ASE-12_5/bin/dataserver -d/opt/sybase/data/master.dat -e/opt/sybase/ASEE

sybase 24211 24210 0 14:04 pts/2 00:00:00 -bash
sybase 24234 24211 0 14:04 pts/2 00:00:00 ps -ef
sybase 24235 24211 0 14:04 pts/2 00:00:00 grep sybase
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top