Before configuring
your Federation Server, you should determine
the following information about your DBMS:
-
The version or release of the DBMS
client shared libraries installed on your operating system. This is
important due to potential incompatibilities between DBMS versions
or releases.
-
The location of the DBMS client
shared libraries. This is important so that the correct client libraries
can be loaded.
Note: The steps outlined in this
chapter assume that the ODBC drivers were installed during installation
of SAS Federation Server.
Refer to the following
sections for detailed instructions on configuring your environment
to interface with your Federation Server driver
software:
SAS Federation
Server Driver for SAP®
SAS Federation
Server Driver for DB2®
The SAS Federation Server Driver for DB2
uses shared libraries, referred to in UNIX as shared objects. You
must add the location of the shared libraries to one of the system
environment variables, and, if necessary, indicate the DB2 version
that you have installed at your site. Before setting the environment
variables as shown in the examples below, you must also set the following
environment variables:
-
The INSTHOME environment variable
must be set to your DB2 home directory.
-
The DB2DIR environment variable
should also be set to the value of INSTHOME.
-
The DB2INSTANCE environment variable
should be set to the DB2 instance configured by the administrator.
|
|
$ LIBPATH=$INSTHOME/lib:$LIBPATH
|
|
$ setenv LIBPATH $INSTHOME/lib:$LIBPATH
|
HP-UX and HP-UX for
the Itanium Processor Family Architecture
|
|
$ SHLIB_PATH=$INSTHOME/lib:$SHLIB_PATH
|
|
$ setenv SHLIB_PATH
$INSTHOME/lib:$SHLIB_PATH
|
Linux for Intel Architecture,
Linux for x64, Solaris, and Solaris for x64
|
|
$
LD_LIBRARY_PATH=$INSTHOME/lib:$LD_LIBRARY_PATH
|
|
$ setenv LD_LIBRARY_PATH
$INSTHOME/lib:$LD_LIBRARY_PATH
|
SAS Federation
Server Driver for ODBC
To configure ODBC data
sources, you might have to edit the .odbc.ini file in your home directory.
Some ODBC Driver vendors allow system administrators to maintain a
centralized copy by setting the environment variable
ODBCINI
.
Please refer to your vendor documentation to find specific information.
Additional information for ODBC can be found in
Configuring ODBC Connections.
The Drivers for ODBC
are ODBC API–compliant shared libraries, referred to in UNIX
as shared objects. You must add the location of the shared libraries
to one of the system environment variables so that drivers for ODBC
are loaded dynamically at run time. You must also set the
ODBCHOME
environment
variable to your ODBC home directory before setting the environment
variables as shown in the following examples.
Linux for Intel Architecture
and Linux for x64
|
|
$
LD_LIBRARY_PATH=$ODBCHOME/lib:$LD_LIBRARY_PATH
|
|
$ setenv LD_LIBRARY_PATH
$ODBCHOME/lib:$LD_LIBRARY_PATH
|
Solaris and Solaris
for x64
|
|
$
LD_LIBRARY_PATH=$ODBCHOME/lib:$LD_LIBRARY_PATH
|
|
$ setenv LD_LIBRARY_PATH
$ODBCHOME/lib:${LD_LIBRARY_PATH}
|
|
|
$ LIBPATH=$ODBCHOME/lib:$LIBPATH
|
|
$ setenv LIBPATH
$ODBCHOME/lib:${LIBPATH}
|
HP-UX and HP-UX for
the Itanium Processor Family Architecture
|
|
$ SHLIB_PATH=$ODBCHOME/lib:$SHLIB_PATH
|
|
$ setenv SHLIB_PATH
$ODBCHOME/lib:${SHLIB_PATH}
|
Setting
ODBC for Greenplum
To use ODBC with Greenplum,
you need to set the ODBCINST and ODBCINI environment variables to
point to the configuration files that are installed with SAS Federation Server.
-
Set the ODBCINST environment
variable to the
odbcinst.ini
file located
in the Federation Server installation path:
export ODBCINST=$installpath/fedserver/etc/odbcinst.ini
-
Set the ODBCINI environment
variable to the
odbc.ini
file located in
the Federation Server installation path:
export ODBCINI=$installpath/fedserver/etc/odbc.ini
SAS Federation
Server Driver for Oracle
Connecting to an Oracle
Database
You can connect to any
Oracle server from SAS Federation Server using the
Oracle driver, client versions 10g or 11g. If you are using Oracle
client version 11g, run these additional commands to successfully
connect with Oracle from SAS Federation Server:
cd
/installation_directory/fedserver/lib
cp tkeora11.so tkeora.so
Note: For HP64, the file extensions
are .sl.
Setting the ORACLE_HOME
Variable
In order to use the
SAS Federation Server Driver for Oracle, you must set the ORACLE_HOME
environment variable. In addition, you must make sure that the shared
library path variable (the name of this variable is operating system
dependent) points to where the Oracle shared libraries are located.
This is required since the SAS Federation Server Driver for Oracle
executable uses Oracle shared libraries and needs to know where they
are located at your site.
The following are examples
for the various operating systems:
|
|
$ LIBPATH=$ORACLE_HOME/lib:$LIBPATH
|
|
$ setenv
LIBPATH=$ORACLE_HOME/lib:$LIBPATH
|
HP-UX and HP-UX for
the Itanium Processor Family Architecture
|
|
$
SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
|
|
$ setenv SHLIB_PATH
$ORACLE_HOME/lib:$SHLIB_PATH
|
Linux for Intel Architecture,
Linux for Itanium-based Systems, Solaris, and Solaris for x64
|
|
$
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
|
|
$ setenv LD_LIBRARY_PATH
$ORACLE_HOME/lib:$LD_LIBRARY_PATH
|
SAS Federation
Server Driver for Teradata
Access to Shared Libraries
The SAS Federation Server Driver for Teradata
uses shared libraries, referred to in UNIX as shared objects. You
must add the location of the shared libraries to one of the system
environment variables.
|
|
$
LIBPATH=TERADATA-CLIENT-LOCATION:$LIBPATH
|
|
$ setenv LIBPATH
TERADATA-CLIENT-LOCATION:$LIBPATH
|
|
|
$
SHLIB_PATH=TERADATA-CLIENT-LOCATION:$SHLIB_PATH
|
|
$ setenv SHLIB_PATH
TERADATA-CLIENT-LOCATION:$SHLIB_PATH
|
HP-UX for the Itanium
Processor Family
|
|
$
SHLIB_PATH=TERADATA-CLIENT-LOCATION:$SHLIB_PATH
$
LD_PRELOAD=/usr/lib/hpux64/libpthread.so.1
|
|
$ setenv SHLIB_PATH
TERADATA-CLIENT-LOCATION:$SHLIB_PATH
$ setenv LD_PRELOAD
/usr/lib/hpux64/libpthread.so.1
|
Linux for Intel Architecture,
Linux for x64, Solaris, and Solaris for x64
|
|
$
LD_LIBRARY_PATH=TERADATA-CLIENT-LOCATION:$LD_LIBRARY_PATH
|
|
$ setenv LD_LIBRARY_PATH
TERADATA-CLIENT-LOCATION:$LD_LIBRARY_PATH
|
HP–UX users with
TTU 8.2 must create two symbolic links from the /usr/lib/pa20_64 directory
with the following commands:
$ ln -s /usr/lib/pa20_64/libicudatatd.sl libicudatatd.sl.34
$ ln -s /usr/lib/pa20_64/libicuuctd.sl libicuuctd.sl.34