Sybase provides scripts to set the following variables, which DirectConnect needs to run:
SYBASE
SYBASE_ECON
SYBASE_OCS
PATH (Windows), SHLIB_PATH (HP-UX), LIB_PATH (AIX), LD_LIBRARY_PATH (Sun Solaris)
Set the environment variables from a command line prompt by running one of the following environment scripts, as appropriate for your platform. For Windows, use a DOS command session.
DC_SYBASE.csh or DC_SYBASE.sh on UNIX
DC_SYBASE.bat on Windows
For AIX, HP-UX, and Sun Solaris using SNA LU 6.2 protocol, you must locate the following line in the environment script that begins as follows (this example is for Sun Solaris):
set LD_LIBRARY_PATH.........
Add the following to the end of this line:
/opt/sna/lib:$LD_LIBRARY__PATH
Your SNA location may vary.
To verify that the environment script ran successfully on UNIX, execute the following:
echo $SYBASE
The response should match the home directory for your installation.
echo $SYBASE_ECON
The response should be DC-12_6.
echo $SYBASE_OCS
The response should be OCS-12_5.
echo $SHLIB_PATH
This variable (shown for HP) should equal the following:
$SYBASE/$SYBASE_ECON/lib
For UNIX: $SYBASE, $SYBASE_ECON,
and $SYBASE_OCS will be expanded to their actual
values.
To verify that the environment script ran successfully on Windows, execute the following in a DOS command window:
echo %SYBASE%
The response should match the home directory for your installation.
echo %SYBASE_ECON%
The response should be DC-12_6.
echo %SYBASE_OCS%
The response should be OCS-12_5.
echo %PATH%
This variable should equal the following:
%SYBASE%\%SYBASE_ECON%\lib
For Windows, keep your DOS command line session active to create the DirectConnect server, instructions for which follow in the next section.
For Windows: %SYBASE%, %SYBASE_ECON%,
and %SYBASE_OCS% will be expanded to
their actual values.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |