Installing the Oracle Instant Client
To use OracleReader with XStream Out you must perform the following steps for each Striim server or Forwarding Agent that will run the OracleReader source. The Striim servers and Forwarding Agent hosts must be running Linux.
Download the Oracle Instant Client .rpm file for your version of Oracle (11.2.0.2, 11.2.0.3, or 11.2.0.4) from http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html and install it with
rpm -i -v <file name>
. The instructions below assume that the installation directory is/usr/lib/oracle/instantclient_11_2
. If it is in a different location, adjust the environment variables accordingly.Add
/usr/lib/oracle/instantclient_11_2/xstreams.jar:/usr/lib/oracle/instantclient_11_2/ojdbc6.jar
to theCLASSPATH
environment variable. In Centos, if Striim is owned by root, you may do this by editing/root/.bash_profile
. For example, if the PATH portion of that file is:PATH=$PATH:$HOME/bin export PATH
change that to:
PATH=$PATH:$HOME/bin:/usr/lib/oracle/11.2/client64/lib export PATH
Add
/usr/lib/oracle/instantclient_11_2/
to theLD_LIBRARY_PATH
environment variable.Add
/usr/lib/oracle/instantclient_11_2/
to thePATH
environment variable.Add the IP address and name of the Oracle server(s) to which you will connect to the
hosts
file.