How to install the Oracle Client for use with the TSCO Application and ETL Servers. |
This KA covers the client install and tnsnames.ora file creation(1) ORACLE CLIENT INSTALLTo install the Oracle Client:
unzip linuxamd64_12102_client.zip
It will expand the zipfile and create a new directory: /bmc/local/home/oracle_install/client/
rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' \
binutils compat-db gcc gcc-c++ glibc glibc-devel make \ libstdc++ libstdc++-devel make pdksh sysstat libaio libgcc
yum install libXtst-1.2.2-2.1.el6.x86_64
Please do a Custom install.
The default language is ok here. Click Next. Change the install path for the Oracle client so it says /opt/oracle/app/oracle The software location will update automatically You may need to adjust permissions on the /opt folder if there is an error. make sure the owner user has permissions to write, read and execute on the target directory and try the install again. Leave this as default and click next. Checkmark the following components for the install:
Click next once all components are selected.
A prerequisite check will appear having you install additional dependencies. There will be packages missing. To correct these, you will need to open a command line window to the box and manually install these. While many of these can be installed with the ‘yum’ commands, you may not be able to find them with ‘yum provides <dependency name>’. For those, download the .rpm files from the internet. To find those .rpm files, you can search for them by name with Google or with rpmfind.net in a browser window. An example of this is below: Choose the .rpm for Linux version you are running, then copy the .rpm link address (right click on the .rpm file name) Once the link location is copied, open a new ssh session to the same VM as ‘root’. Navigate to a directory where you can download the files (e.g. /tmp), then with the run the wget command and paste the link location to download the file. Install the file by running the rpm –i <filename> to install it. wget <link location> Let it download, then run rpm –i <filename> After running the rpm –i command, it will return to the prompt without further information. However, the package will be installed. NOTE: if you encounter issues with rpm -i installing the rpm packages due to missing dependencies, you can just run yum -y install <name of package> e.g. sudo yum -y install compat-libcap1-1.10 this way, it will force to install the missing dependencies. To see the changes reflected, run Check Again from the GUI. Once you do this for all remaining packages, it will only list the error regarding the “Users With Same UID.” This error can be ignored. Please chose the “Ignore All” checkbox to proceed with the install. Proceed by pressing next then yes when prompted. Confirm all the settings look correct. Make note of these location as you will use them when installing the application server. Press Install when ready. As it runs, the installer progress will look like this. It is almost done. As it nears the end of the install, it will ask to have the ‘root’ user run an additional script. Follow the steps listed before hitting ok. You will see the output in the command line similar to the one above. Once Complete, create the tnsnames.ora. (2) TNSNAMES.ORA CREATIONCreate the file by executing the following command: touch $ORACLE_HOME/network/admin/tnsnames.ora
Copy over the values to be able to connect to the TSCO Schema in the Oracle Database, as follows an example on how the alias looks like: cat /home/oracle/client/product/12.1.0/client_1/network/admin/tnsnames.ora ORA_ALIAS = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = <Database_hostname>)(PORT = <port>)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = <name_of_service>) ) ) |