Installing the Oracle Instant Client
Before you begin
Since Manager hosts do not require all the Oracle database pre-requisites, make sure that the OS accounts, groups, and libraries are set up according to the Oracle Installation Guide on the Oracle website. Additionally, perform the installation of the Oracle Instant Client.
For Multi-Manager environments, install the Oracle Instant Client on the required Satellite Managers.
To install the Oracle Instant Client
Download the instantclient-basic-linux-ORACLE_VERSION.zip and instantclient-sqlplus-linux-ORACLE_VERSION.zip files from the Oracle website.
- Copy the files to the Manager.
- Change to the directory for the application:
cd /app/clarity - Enter the following command to set unmask to 0022:
umask
0022 - Create the following directories:
mkdir oracle-instantclient-32
mkdir oracle-instantclient-32/lib
mkdir oracle-instantclient-32/bin - Change to the directory for the Oracle Instant Client:
cd /app/clarity/oracle-instantclient-32 - Use the following format to unzip the Instant Client files:
- unzip path/instantclient-basic-linux-ORACLE_VERSION.zip
unzip path/instantclient-sqlplus-linux-ORACLE_VERSION.zip
In these examples, path is the location where the .zip files are stored. - Copy the libraries to the following path:
cp -r instantclient_ORACLE_MAJOR_VERSION/* .so /app/clarity/oracle-instantclient-32
- Use the following commands to move the Oracle Instant Client files:
mv instantclient_ORACLE_MAJOR_VERSION/*.so* lib/
mv instantclient_ORACLE_MAJOR_VERSION/genezi instantclient_ORACLE_MAJOR_VERSION/ adrci instantclient_ORACLE_MAJOR_VERSION/uidrvci instantclient_ORACLE_MAJOR_VERSION/sqlplus instantclient_ORACLE_MAJOR_VERSION/glogin.sql bin/ - (Optional) Clean up any JAR files left behind.
This also removes everything under instantclient_ORACLE_MAJOR_VERSION, which includes the sqlplus binary:
rm -fr instantclient_ORACLE_MAJOR_VERSION - Update the system dynamic linker cache:
- Create the ld.so.conf file for oic:
echo /app/clarity/oracle-instantclient-32/lib > /etc/ld.so.conf.d/oic.conf - Refresh the linker cache:
ldconfig - Verify that OIC libs are visible by the linker:
ldconfig -p | grep clarity - Switch to user clarity and check that libs are available:
su - clarity -c '/sbin/ldconfig -p | grep clarity' - Run the following command:
LD_LIBRARY_PATH=/app/clarity/lib /app/clarity/perl/bin/perl -MDBI -MDBD::Oracle -e ''
This command will return an error if something was not installed.
- Create the ld.so.conf file for oic:
- To restart the related services:
/etc/init.d/dmanager restart
/etc/init.d/mtd restart
You can also create a shell script and copy and paste the commands from steps 3 through 9. The following example assumes the .zip files are in /tmp:
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*