How to install Oracle Client 10g on Red Hat Enterprise Linux 5 64bit

redhat How to install Oracle Client 10g on Red Hat Enterprise Linux 5 64bitToday I needed to install the Oracle Client 10g on a Red Hat Enterprise Linux 5 64bit: all around the net you can find many useful tutorial on how to install the Oracle DB Server but I cannot find how to install only the client. As you may guess the client installation is easier than the Oracle DB Server one.

On the linux machine, as root, you have to run the following commands:

//create user and groups
# groupadd oinstall
# groupadd dba
# useradd -g oinstall -G dba oracle
# passwd oracle

//prepare the filesystem
# mkdir /opt/oracle
# chown -R oracle:oinstall /opt/oracle

//install some needed packages
# yum install libXp gcc make setarch libaio glibc-devel

//change /etc/redhat-release as RHEL5 is not a supported platform
# cp /etc/redhat-release /etc/redhat-release.5
# echo redhat-4 > /etc/redhat-release

OK… as root we have now finished!

Now log in with the oracle user and download the Oracle Client 10g 64bit from Oracle website: once there get the file called 10201_client_linux_x86_64.cpio.gz. Open the cpio oracle client archive and run the client installation program:

# gunzip 10201_client_linux_x86_64.cpio.gz
# cpio -idmv < 10201_client_linux_x86_64.cpio
# cd client
# ./runInstaller

I pointed the oraInventory directory to /opt/oracle in the first screen; in the second one I choose to install the Oracle 10g Client in /opt/oracle/product/10.2.0/client_1/. Just before the installation finishes it prompts to you to execute two more commands as root: in my own installation I run

//execute the following commands as root
# /opt/oracle/orainstRoot.sh
# /opt/oracle/product/10.2.0/client_1/root.sh

but, as you may guess, your path may be different from mine.

Now the final step: we have to restore the /etc/redhat-release file we changed before:

# mv /etc/redhat-release.5 /etc/redhat-release

I hope this tutorial can help you… if you find errors please report them to me and I will correct as soon as possible.

44 Responses to “How to install Oracle Client 10g on Red Hat Enterprise Linux 5 64bit”

  1. Vamsee says:

    Hi,

    I am trying to install Oracle 10g on RHEL 5 and able to surpass the installation to a certain extent by adding release 5 in oraparam.ini. But unfortunately the system agains shoots a message stating that RHEL 5 is not supported.

  2. apiero says:

    Hi Vamsee,

    probably you missed this statement:
    //change /etc/redhat-release as RHEL5 is not a supported platform
    # cp /etc/redhat-release /etc/redhat-release.5
    # echo redhat-4 > /etc/redhat-release

    Please try that and let me know if it works for you.
    Bye
    Piero

  3. ifo says:

    You also have to install glibc-devel for i386, otherwise the 32 bit libraries won’t compile, resulting in various errors (for example “UnsatisfiedLinkError exception loading native library: njni10″ when running the net configuration towards the end of the installation).

    Otherwise: Thanks for this great howto, it saved me a lot of time when I was in a hurry!

  4. apiero says:

    Hi ifo,

    thanks for pointing this: I updated the tutorial adding your tip.

    Bye
    Piero

  5. ARPIT RAJ GAUTAM says:

    The way of carrying,explaining and mentioning the things is really good.
    Keep adding such kind of docs to GOOGLE.

    With regards
    Arpit Raj Gautam

  6. Jay Borade says:

    Thanks piero for a quality document

    It is really working man

  7. Sushil Trivedi says:

    Hi ,

    I have 10gDS on windows XP machine ,I have few client machines on WIndows who can access my Application However the clients on Linux cannot access my Application as Jinitiator is only certified for windows and for linux how to go about , if any one has done this before can give me the guidelines on Browser configuration
    i am using Mozilla firefox latest ver.

    Awaiting your guidlines for the same.

    more details can be emailed with snapshots if you provide me with your email address.

    thanks

    sushil T
    Soft.Dev Engg ( OCP )

  8. hakki al saidi says:

    i face this error when i run ./runInstaller

    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2009-04-22_05
    -16-46PM. Please wait …[oracle@boss_srv1 database]$ Exception in thread “main”
    java.lang.UnsatisfiedLinkError: /tmp/OraInstall2009-04-22_05-16-46PM/jre/1.4.2/
    lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or
    directory

  9. apiero says:

    Hi,

    it seems you missed the line:

    yum install libXp gcc make setarch libaio glibc-devel

    libXp.so.6 is provided by the package libXp.

    Let me know if it works!
    Bye
    Piero

  10. hakki al saidi says:

    dear
    it’s ok but i face this error when i run Oracle Universal Installer

    Checking operating system requirements …
    Expected result: One of redhat-3,redhat-4,SuSE-9,asianux-1,asianux-2
    Actual Result: redhat-#Red Hat Enterprise Linux Server release 5 (Tikanga)
    Check complete. The overall result of this check is: Failed <<<<
    Problem: Oracle Database 10g is not certified on the current operating system.
    Recommendation: Make sure you are installing the software on the correct platform.
    =======================================================================

    Checking operating system package requirements …
    Check complete. The overall result of this check is: Not executed <<<<
    OUI-18001: The operating system ‘Linux Version redhat-#Red Hat Enterprise Linux Server release 5 (Tikanga)’ is not supported.
    Recommendation: Install the required packages before continuing with the installation.
    =======================================================================

    Checking kernel parameters
    Check complete. The overall result of this check is: Not executed <<<<
    OUI-18001: The operating system ‘Linux Version redhat-#Red Hat Enterprise Linux Server release 5 (Tikanga)’ is not supported.
    Recommendation: Perform operating system specific instructions to update the kernel parameters.
    =======================================================================

    Checking Recommended glibc version
    Check complete. The overall result of this check is: Not executed <<<<
    OUI-18001: The operating system ‘Linux Version redhat-#Red Hat Enterprise Linux Server release 5 (Tikanga)’ is not supported.
    Recommendation: You may actually have installed packages which have obsoleted these, in which case you can successfully continue with the install. If you have not, it is recommended that you do not continue. Refer to the readme to find out how to get the missing packages.
    =======================================================================

    Checking available swap space requirements …
    Expected result: 3528MB
    Actual Result: 3071MB
    Check complete. The overall result of this check is: Failed <<<<
    Problem: The system does not have the required swap space.
    Recommendation: Make more swap space available to perform the install.
    =======================================================================

    Checking Network Configuration requirements …
    Actual Result: :java.lang.NullPointerException:Exception/Error Occurred
    Check complete. The overall result of this check is: Not executed <<<<
    Recommendation: Oracle supports installations on systems with DHCP-assigned public IP addresses. However, the primary network interface on the system should be configured with a static IP address in order for the Oracle Software to function properly. See the Installation Guide for more details on installing the software on systems configured with DHCP.
    ================================================================INFO: make: *** [liborasdkbase] Error 1

    INFO: End output from spawned process.
    INFO: ———————————-
    INFO: Exception thrown from action: make
    Exception Name: MakefileException
    Exception String: Error in invoking target ‘all_no_orcl ihsodbc’ of makefile ‘/u01/app/oracle/product/10.2.0/db_1/rdbms/lib/ins_rdbms.mk’. See ‘/u01/app/oracle/oraInventory/logs/installActions2009-04-23_11-55-48AM.log’ for details.
    Exception Severity: 1
    =======
    and i face this error when i continue

  11. hakki al saidi says:

    and i face this error when i continue
    INFO: /u01/app/oracle/product/10.2.0/db_1/bin/genorasdksh: Failed to link liborasdkbase.so.10.2

    INFO: make: *** [liborasdkbase] Error 1

    INFO: End output from spawned process.
    INFO: ———————————-
    INFO: Exception thrown from action: make
    Exception Name: MakefileException
    Exception String: Error in invoking target ‘all_no_orcl ihsodbc’ of makefile ‘/u01/app/oracle/product/10.2.0/db_1/rdbms/lib/ins_rdbms.mk’. See ‘/u01/app/oracle/oraInventory/logs/installActions2009-04-23_11-55-48AM.log’ for details.
    Exception Severity: 1

  12. apiero says:

    Hi,

    please follow all the tutorial step by step: it should work if you do everything as written.
    Probably now you missed these instructions:

    //change /etc/redhat-release as RHEL5 is not a supported platform
    # cp /etc/redhat-release /etc/redhat-release.5
    # echo redhat-4 > /etc/redhat-release

    Let me know if it works!
    Bye
    Piero

  13. hakki al saidi says:

    dear
    finaly i started the database whith these errors and i fond there is no listener and when i restart the server the OS is crashed >>>>

  14. hakki al saidi says:

    can you give me your phone number …??

  15. balaji says:

    Hi,

    i have installed oracle 11g on rhel 5. that is succesfully completed but i am entering the sqlplus / as sysdba i face the one error
    i.e error while loading shared libraries: libsqlplus.so : cannot open shared object file: no such file or directory.

  16. Adam Gold says:

    I really can’t believe it. I hope Wayne is not injured for the cup!

  17. bilal says:

    i ve installed using the steps you have mentioned, but i dont know where the following files have been installed, please help

    orainstRoot.sh
    root.sh

    • apiero says:

      Hi Bilal,

      the simplest solution that comes to my mind is to use the locate command as root:

      # updatedb //This will re-index the content of your HD
      # locate orainstRoot.sh //This will print the file path
      # locate root.sh //This will print the file path

      Hope this can help you.
      Bye
      Apiero

  18. Wow, I didn’t knew this, thanks.

  19. Freya Harris says:

    For me, the best operating system is Linux because it rarely hangs.-:”

  20. roger rodja says:

    i just tried to install oracle10g client on a linux 5 server as directed in your blog but during the installation i got the following error message:

    error in invoking target ‘client_sharedlib’ of makefile.

    can someone help?.

  21. wing says:

    Oracle Universal Installer /tmp/OraInstall2010-07-14_03-19-08PM. please wait…[oracle@wasihs1 client]$ Exception in thread “main” java.lang.UnsatisfiedLinkError: /tmp/OraInstall2010-07-14_03-19-08PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at sun.security.action.LoadLibraryAction.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
    at sun.awt.DebugHelper.(Unknown Source)
    at java.awt.Component.(Unknown Source)

    Pls tell me,thx

    • apiero says:

      Hi,

      obviously you missed to install a dependency: please read carefully what I wrote and do that without missing any step.
      In particular you did not install the package libXp.

      Bye
      Apiero

      • wing says:

        I found it is so interesting because it is cauesed by the 32bit packet,although i was installing the 64bit oracle.

        • wing says:

          After all,it woked.I found the libs and declare it to the environment like “LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib”

  22. operating systems can either make or break your system that is why it is wise to choose a vey stable one.”.’

  23. with regards to PC operating system, i love Windows XP and Linux”"-

  24. the best operating system is always Linux, after Linux it is Windows XP. Vista sucks’~;

  25. Linux is still the best when it comes to stability and Windows for ergonomics’.”

  26. Jormis says:

    I had to install libXtst.i386. Otherwise, the installation itself went without a hitch.

  27. sola says:

    hii everybody
    I try to install oracle10g under Centos 4.8 but every time it give me this message:
    (Checking Network Configuration requirements..
    Check complete. The overall results of this check is : Not executed<<<
    Recomendation : Oracle supports installation on systems with DHCP-assigned public IP addresses. However the primary network interface on the system should be configured with a Static IP Address in order for the oracle to function properly.See the installation guide for more details on installing the software on systems configured with DHCP.
    )
    note: I give the device static IP address and stoped any dhcp options

  28. sola says:

    can U help me PLZ??

  29. there are many different operating systems but of course i would still prefer to use linux for stability ,’~

  30. raja says:

    Hi,
    I am getting error while installing Oracle Client for 64Bit,
    I have done everything what you said but still im not able to sole this issue please help. Error is shown below.

    [oracle@linaspsi59 client]$ ./runInstaller -silent -responsefile /export/home/oracle/client/response/clientadmin.rsp
    Starting Oracle Universal Installer…

    Checking installer requirements…

    ./runInstaller: line 47: 28205 Segmentation fault $CMDDIR/install/.oui $*

    Thanks,
    Raja…

  31. hari says:

    Oracle Universal Installer /tmp/OraInstall2010-07-14_03-19-08PM. please wait…[oracle@wasihs1 client]$ Exception in thread “main” java.lang.UnsatisfiedLinkError: /tmp/OraInstall2010-07-14_03-19-08PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at sun.security.action.LoadLibraryAction.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
    at sun.awt.DebugHelper.(Unknown Source)
    at java.awt.Component.(Unknown Source)

    when i am running ./runInstaller

    error showing like this how to solve this prob plz tel me

  32. apiero says:

    Hi,

    simply you did not install all the dependencies listed above:

    yum install libXp gcc make setarch libaio glibc-devel

    Actually you are clearly missing libXp.

    Let me know if it works
    Bye
    Apiero

  33. sudhakar says:

    yum install libXp gcc make setarch libaio glibc-devel
    I am getting this error for command typed above..plz assist me..

  34. sudhakar says:

    Hi…..apiero,

    after typing ./runInstaller

    i got the status as follows:

    Checking operating system:Passed

    All the Installer requirements met.

    Preparing to Launch oracle univ installer from /tmp/OraInstall(sysdate & Time).Please wait.

    The user is root.Oracle univ installer cannot continue Installation if the user is root.

    :No such file or directory.

    what next?

    i typed the mentioned command

    # /opt/oracle/orainstRoot.sh
    Iam getting the following error.

    -bash:/opt/oracle/orainstRoot.sh: No such file or directory

    what should i do now? please help me…

  35. sekhar says:

    [root@str-apps-vm oraInventory]# mv /etc/redhat-release.5 /etc/redhat-release
    mv: overwrite `/etc/redhat-release’?

    I got this at the time of final stup,may i know how it rectify?
    and thanks for your support by providing like this to us.

  36. I’ll immediately grasp your rss feed as I can not in finding your email subscription hyperlink or newsletter service. Do you have any? Please let me know so that I may just subscribe. Thanks.

  37. sravan says:

    Hi Apiero,
    I am getting error while installing Oracle10g
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-01-27_07-18-41PM. Please wait …[oracle@localhost database]$ Exception in thread “main” java.lang.UnsatisfiedLinkError: /tmp/OraInstall2012-01-27_07-18-41PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at sun.security.action.LoadLibraryAction.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
    at sun.awt.DebugHelper.(Unknown Source)
    at java.awt.Component.(Unknown Source)

    i was tried yum install libXp gcc make setarch libaio glibc-devel it is showing like this ….
    Loading “installonlyn” plugin
    Loading “rhnplugin” plugin
    This system is not registered with RHN.
    RHN support will be disabled.
    Setting up Install Process
    Setting up repositories
    No Repositories Available to Set Up
    Reading repository metadata in from local files
    Parsing package install arguments
    Setting up repositories
    No Repositories Available to Set Up
    Reading repository metadata in from local files
    No Match for argument: libXp
    Setting up repositories
    No Repositories Available to Set Up
    Reading repository metadata in from local files
    No Match for argument: gcc
    Setting up repositories
    No Repositories Available to Set Up
    Reading repository metadata in from local files
    No Match for argument: make
    Setting up repositories
    No Repositories Available to Set Up
    Reading repository metadata in from local files
    No Match for argument: setarch
    Setting up repositories
    No Repositories Available to Set Up
    Reading repository metadata in from local files
    No Match for argument: libaio
    Setting up repositories
    No Repositories Available to Set Up
    Reading repository metadata in from local files
    No Match for argument: glibc-devel
    Nothing to do
    PLEASE COULD YOU HELP ME FOR THIS ERROR… am using redhat enterprise linux5 64bit

    • apiero says:

      Hi,

      simply you did not install all the dependencies listed above:

      yum install libXp gcc make setarch libaio glibc-devel

      Actually you are clearly missing libXp.

      Let me know if it works
      Bye
      Apiero

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>