Installing the Oracle Instant Client
If you plan to use the BMC Database Automation reports function or BMC Decision Support for Database Automation to create reports for your environment, you must establish a data warehouse database to store the data used to create the reports. To support the connection between BMC Database Automation and the data warehouse database, you must install the Oracle Instant Client on the Manager.
To install the Oracle Instant Client
Download the instantclient-basic-linux-11.2.0.4.0.zip and instantclient-sqlplus-linux-11.2.0.4.0.zip files from Oracle.
- Copy the files to the Manager.
- To change to the directory for the application:
cd /app/clarity - If it is not already, set the umask to 0022:
umask
0022 - To create directories:
mkdir oracle-instantclient-32
mkdir oracle-instantclient-32/lib
mkdir oracle-instantclient-32/bin - To change to the directory for the Oracle Instant Client:
cd /app/clarity/oracle-instantclient-32 - To unzip the Instant Client files, use the following format:
unzip path/instantclient-basic-linux-11.2.0.4.0.zip
unzip path/instantclient-sqlplus-linux-11.2.0.4.0.zip
In this example, path is the location where the .zip files are stored. - To move the Instant Client files:
mv instantclient_11_2/*.so* lib/
mv instantclient_11_2/genezi instantclient_11_2/adrci instantclient_11_2/uidrvci instantclient_11_2/sqlplus instantclient_11_2/glogin.sql bin/ - (Optional) To clean up any JAR files left behind (this also removes everything under instantclient_11_2, which includes the sqlplus binary):
rm -fr instantclient_11_2 - 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:
{{code language="none"}}
LD_LIBRARY_PATH=/app/clarity/lib /app/clarity/perl/bin/perl -MDBI -MDBD::Oracle -e ''
{{/code}}
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
As an alternative, you can 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*