12 Replies Latest reply: Mar 23, 2009 11:27 AM by 682891 RSS

    Unable to install Oracle10g

    sivapara
      Hi
      I am trying to install oracle10g in my AMD64/FC4.
      I am getting exception placed at "Oracle10g" ( See below).

      As per Oracle installation document, I am missing the following package ( MissingPKG )
      This could be the reason for "./runInstaller" failure.

      Here I am finding trouble in finding and installing the correct package. ( InstallPKG )
      Review "InstallPKG" below. even after installing correc rpm, "rpm -q " reports
      no package is installed.


      Question
      1. What could be the reason for /runInstaller failure
      2. Can you help me to get the correct rpm



      Oracle10g:
      ==========


      [oracle@localhost database]$ ./runInstaller
      Starting Oracle Universal Installer...

      Checking installer requirements...

      Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
      Passed


      All installer requirements met.

      Preparing to launch Oracle Universal Installer from /tmp/OraInstall2005-09-03_07-47-03AM. Please wait ...[oracle@localhost database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2005-09-03_07-47-03AM/jre/1.4.2/lib/i386/libawt.so: /tmp/OraInstall2005-09-03_07-47-03AM/jre/1.4.2/lib/i386/libawt.so: cannot restore segment prot after reloc: Permission denied
      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.<clinit>(Unknown Source)
      at java.awt.Component.<clinit>(Unknown Source)

      [oracle@localhost database]$




      MissingPKG:
      ============
      [root@localhost oracle]# rpm -q compat-gcc-c++
      package compat-gcc-c++ is not installed
      [root@localhost oracle]# rpm -q compat-libstdc++
      package compat-libstdc++ is not installed
      [root@localhost oracle]# rpm -q compat-libstdc++-devel
      package compat-libstdc++-devel is not installed
      [root@localhost oracle]# rpm -q gnome-libs
      package gnome-libs is not installed
      [root@localhost oracle]#


      InstallPKG
      ===========
      [root@localhost oracle]# rpm -Uvh compat-gcc-c++-7.3-2.96.118.i386.rpm
      error: Failed dependencies:
      compat-libstdc++ = 7.3 is needed by compat-gcc-c++-7.3-2.96.118.i386
      compat-libstdc++-devel = 7.3 is needed by compat-gcc-c++-7.3-2.96.118.i386

      [root@localhost oracle]# ls compat-libstdc++-7.3*
      compat-libstdc++-7.3-2.96.110.i386.rpm compat-libstdc++-7.3-2.96.126.i386.rpm


      [root@localhost oracle]# rpm -Uvh compat-libstdc++-7.3-2.96.126.i386.rpm
      Preparing... ########################################### [100%]
      file /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so from install of compat-libstdc++-7.3-2.96.126 conflicts with file
      from package compat-libstdc++-296-2.96-132.fc4
      file /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so from install of compat-libstdc++-7.3-2.96.126 conflicts with file
      from package compat-libstdc++-296-2.96-132.fc4

      [root@localhost oracle]# rpm -Uvh compat-gcc-c++-7.3-2.96.118.i386.rpm
      error: Failed dependencies:
      compat-libstdc++ = 7.3 is needed by compat-gcc-c++-7.3-2.96.118.i386
      compat-libstdc++-devel = 7.3 is needed by compat-gcc-c++-7.3-2.96.118.i386
      [root@localhost oracle]#
        • 1. Re: Unable to install Oracle10g
          Ivan Kartik
          1. What could be the reason for /runInstaller failure
          This errors occurs when SELinux is enabled.
          So modify /etc/selinux/config and change value of SELINUX to "disabled" and reboot computer.
          2. Can you help me to get the correct rpm
          You could obtain packages from here: http://download.fedora.redhat.com/pub/fedora/linux/core/4/x86_64/os/Fedora/RPMS/
          Another solution is if your computer has connect to internet you could login as root and execute "yum install <packagename>" this command also check and resolve all package dependencies.

          here is link related to 10G and Fedora Core 4.
          http://ivan.kartik.sk/oracle/install_ora10gR2_fedora.html
          Note link for RPM repositories in this article points to i386 architecture not x86_64.
          Hope you'll find it as useful.
          • 2. Re: Unable to install Oracle10g
            sivapara
            Thanks Ivan.
            Now I am stuck here. I just followed URL you provided.

            INFO: Exception thrown from action: make
            Exception Name: MakefileException
            Exception String: Error in invoking target 'client_sharedlib' of makefile '/u01/app/oracle/oracle/product/10.2.0/db_1/network/lib/ins_net_client.mk'. See '/u01/app/oracle/oraInventory/logs/installActions2005-09-04_04-30-05PM.log' for details.
            Exception Severity: 1
            WARNING: This will stop installation of all products and exit the Installer. Are you sure that you want to stop the installation and exit?
            INFO: User Selected: Yes/OK

            INFO: Exception handling set to prompt user with options to Retry Ignore
            User Choice: User selected to stop installation of all components.
            • 3. Re: Unable to install Oracle10g
              Ivan Kartik
              Execute following command and provide the output.
              rpm -q binutils gcc glibc glibc-headers glibc-kernheaders glibc-devel compat-libstdc++ cpp compat-gcc make compat-db compat-gcc-c++ compat-libstdc++ compat-libstdc++-devel openmotif openmotif21 setarch pdksh libaio libaio-devel
              Also take last 15 lines from /u01/app/oracle/oraInventory/logs/installActions2005-09-04_04-30-05PM.log
              and
              /u01/app/oracle/oracle/product/10.2.0/db_1/install/make.log
              • 4. Re: Unable to install Oracle10g
                sivapara
                Thanks Ivan, thanks for looking into this.

                Attached is the information you requested.
                and also some additional information.

                1. Output of "rpm -q binutils gcc glibc glibc-headers .... "
                2. last 15 lines from /u01/app/oracle/oraInventory/logs/installActions2005-09-04_04-30-05PM.log
                3. last 15 lines from /u01/app/oracle/oracle/product/10.2.0/db_1/install/make.log
                4. Some additional information is placed inthe bottom. I tried to install pkg "compat-libstdc++"
                did not have much luck, see below. Don't know, why ?.
                However I do see, pkg "compat-libstdc++-7.3-2.96.126.i386" is
                sucessfully installed in the system.

                Hope this helps. Let me know, if you are looking for additional information.


                1. Output of "rpm -q binutils gcc glibc glibc-headers .... "
                ============================================================

                [root@localhost ~]# rpm -q binutils gcc glibc glibc-headers glibc-kernheaders gl ibc-devel compat-libstdc++ cpp compat-gcc make compat-db compat-gcc-c++ compat-l ibstdc++ compat-libstdc++-devel openmotif openmotif21 setarch pdksh libaio libai o-devel
                binutils-2.15.94.0.2.2-2
                gcc-4.0.0-8
                glibc-2.3.5-10
                glibc-2.3.5-10
                glibc-headers-2.3.5-10
                glibc-kernheaders-2.4-9.1.94
                glibc-devel-2.3.5-10
                glibc-devel-2.3.5-10
                package compat-libstdc++ is not installed
                cpp-4.0.0-8
                cpp-4.0.0-8
                compat-gcc-7.3-2.96.118
                make-3.80-7
                make-3.80-7
                compat-db-4.2.52-2
                compat-db-4.2.52-2
                package compat-gcc-c++ is not installed
                package compat-libstdc++ is not installed
                package compat-libstdc++-devel is not installed
                openmotif-2.2.3-10
                openmotif-2.2.3-10
                openmotif21-2.1.30-14
                setarch-1.7-3
                setarch-1.7-3
                pdksh-5.2.14-19
                libaio-0.3.104-2
                libaio-devel-0.3.104-2
                [root@localhost ~]#
                [root@localhost ~]#
                [root@localhost ~]#


                2. last 15 lines from /u01/app/oracle/oraInventory/logs/installActions2005-09-04_04-30-05PM.log
                ===============================================================================================

                INFO: ld
                INFO: :
                INFO:
                INFO: cannot
                INFO:
                INFO: find
                INFO:
                INFO: -
                INFO: lxml10
                INFO:

                INFO: collect2:
                INFO: ld returned 1 exit status
                INFO:

                INFO: genclntsh: Failed to link libclntsh.so.10.1

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

                INFO: End output from spawned process.
                INFO: ----------------------------------
                INFO: Exception thrown from action: make
                Exception Name: MakefileException
                Exception String: Error in invoking target 'client_sharedlib' of makefile '/u01/app/oracle/10gR2/network/lib/ins_net_client.mk'. See '/u01/app/oracle/oraInventory/logs/installActions2005-09-05_07-18-05PM.log' for details.
                Exception Severity: 1
                6836,1 Bot




                3. last 15 lines from /u01/app/oracle/oracle/product/10.2.0/db_1/install/make.log
                =============================================================
                -i oratmp.c -o oratmp.s -f nnfgt.c ;\
                /usr/bin/as -o nnfgt.o oratmp.s ;\
                rm -f oratmp.c oratmp.s ;\
                rm -f /u01/app/oracle/oracle/product/10.2.0/db_1/lib/nnfgt.o ;\
                mv nnfgt.o /u01/app/oracle/oracle/product/10.2.0/db_1/lib/ ;\
                /usr/bin/ar rv /u01/app/oracle/oracle/product/10.2.0/db_1/lib/libn10.a /u01/app/oracle/oracle/product/10.2.0/db_1/lib/nnfgt.o ; fi)
                (if [ "compile" = "binary" ] ; then \
                /u01/app/oracle/oracle/product/10.2.0/db_1/bin/gennfgt > nnfgt.c ;\
                TARGET_BINARY_INTERFACE= ;\
                export TARGET_BINARY_INTERFACE ;\
                /usr/bin/gcc -c nnfgt.c ;\
                -rm -f /u01/app/oracle/oracle/product/10.2.0/db_1/lib/nnfgt.o ;\
                -mv nnfgt.o /u01/app/oracle/oracle/product/10.2.0/db_1/lib/ ;\
                /usr/bin/ar rv /u01/app/oracle/oracle/product/10.2.0/db_1/lib/libn10.a /u01/app/oracle/oracle/product/10.2.0/db_1/lib/nnfgt.o ; fi)
                /usr/bin/make -f ins_net_client.mk client_sharedlib ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_1//u01/app/oracle/oracle/product/10.2.0/db_1/bin/genclntsh
                /usr/bin/ld: skipping incompatible /u01/app/oracle/oracle/product/10.2.0/db_1/lib/libxml10.a when searching for -lxml10
                /usr/bin/ld: cannot find -lxml10
                collect2: ld returned 1 exit status
                genclntsh: Failed to link libclntsh.so.10.1
                make: *** [client_sharedlib] Error 1


                4. Some addition information
                ==============================


                [root@localhost oracle]# rpm -q compat-libstdc++
                package compat-libstdc++ is not installed
                [root@localhost oracle]# rpm -q compat-libstdc++-33-3.2.3-47.fc4.i386
                compat-libstdc++-33-3.2.3-47.fc4
                [root@localhost oracle]# rpm -q compat-libstdc++-296-2.96-132.fc4.i386
                compat-libstdc++-296-2.96-132.fc4
                [root@localhost oracle]#



                [root@localhost oracle]# yum install compat-libstdc++
                Setting up Install Process
                Setting up repositories
                livna 100% |=========================| 951 B 00:00
                updates-released 100% |=========================| 951 B 00:00
                base 100% |=========================| 1.1 kB 00:00
                extras 100% |=========================| 1.1 kB 00:00
                Reading repository metadata in from local files
                Parsing package install arguments
                No Match for argument: compat-libstdc++
                Nothing to do
                [root@localhost oracle]#


                [root@localhost oracle]# yum install compat-libstdc++-7.3-2.96.126
                Setting up Install Process
                Setting up repositories
                livna 100% |=========================| 951 B 00:00
                updates-released 100% |=========================| 951 B 00:00
                base 100% |=========================| 1.1 kB 00:00
                extras 100% |=========================| 1.1 kB 00:00
                Reading repository metadata in from local files
                primary.xml.gz 100% |=========================| 272 kB 00:03
                updates-re: ################################################## 806/806
                Added 0 new packages, deleted 49 old in 3.12 seconds
                Parsing package install arguments
                No Match for argument: compat-libstdc++-7.3-2.96.126
                Nothing to do
                [root@localhost oracle]#

                [root@localhost oracle]# rpm -q compat-libstdc++
                package compat-libstdc++ is not installed
                [root@localhost oracle]#
                • 5. Re: Unable to install Oracle10g
                  robchilds
                  I'm getting the same error installing 10.2.0 on RedHat AS 4 on similar architecture.

                  Error in invoking target 'client_sharedlib' of makefile '/u01/app/oracle/oracle/product/10.2.0/db_1/network/lib/ins_net_client.mk'. See '/u01/app/oracle/oraInventory/logs/installActions2005-09-08_11-37-22AM.log' for details

                  got the same output in the log too:
                  ==================================================
                  INFO: db_1/lib/libxml10.a when searching for -lxml10
                  /usr/bin/ld: cannot find -lxml10

                  INFO: collect2:
                  INFO: ld returned 1 exit status

                  INFO: genclntsh: Failed to link libclntsh.so.10.1

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

                  INFO: End output from spawned process.
                  INFO: ----------------------------------
                  INFO: Exception thrown from action: make
                  Exception Name: MakefileException
                  Exception String: Error in invoking target 'client_sharedlib' of makefile '/u01/app/oracle/product/10.2.0/db_1/network/lib/ins_net_client.mk'. See '/u01/app/oracle/oraInventory/logs/installActions2005-09-08_11-37-22AM.log' for details.
                  Exception Severity: 1
                  ==============================================

                  Has anyone got anywhere with this yet?
                  • 6. Re: Unable to install Oracle10g
                    152254
                    Hi,

                    You must disable 64-bit linking before install. My solution was to replace gcc by "gcc -m32".

                    Peter
                    • 7. Re: Unable to install Oracle10g
                      319396
                      Hi Peter:

                      I experienced the same problem when i install rdbms 10gR2 on hp-ux 11.11 platform.
                      if disable 64bit link is a solution, could you please give more detailed instruction of how ?

                      Thanks
                      Cindy
                      • 8. Re: Unable to install Oracle10g
                        444950
                        replace gcc by "gcc -m32".
                        Another solution should be to run in 32bit-emulation mode:
                        linux32 bash
                        • 9. Re: Unable to install Oracle10g
                          462257
                          Peter,
                          Can you please elaborate? I am running into similar issues installing Ora10g R2 on RH Linux ES4 (32-bit). Thanks
                          • 10. Re: Unable to install Oracle10g
                            152254
                            Hi,

                            my workaround works only, if you install a 32bit rdbms on a 64bit linux system (SUSE 9.3 and Oracle10.2 in my case).

                            Rename your gcc first:

                            mv /usr/bin/gcc /usr/bin/gcc.bck

                            and replace it by a short shell script, for example
                            ---
                            #!/bin/sh
                            gcc. bck -m32
                            ---

                            Save it as /usr/bin/gcc and run the Oracle installer.

                            Don't forget to restore your gcc after install ;-)

                            Regards

                            Peter
                            • 11. Re: Unable to install Oracle10g
                              607752
                              and replace it by a short shell script, for example
                              ---
                              #!/bin/sh
                              gcc. bck -m32
                              I had to fix this script so it looked like this:

                              #!/bin/sh
                              gcc. bck -m32 $*



                              And I had to also install glibc-devel-32bit. (Lack of this caused lack of -pthread error)

                              It worked for me! :-D
                              My Oracle is installed.
                              (Suse 9.3 Oracle 10g)
                              • 12. Re: Unable to install Oracle10g
                                682891
                                The easiest way to resolve problems setting up the 32 bit database on x86_64 Linux is do the following:

                                1. Download the Oracle Database 10g express edition at http://www.oracle.com/technology/software/products/database/xe/htdocs/102xelinsoft.html
                                2. Double-click the file you download
                                3. It will put stuff in your menu. Go through your menu to Oracle Express Database 10g->Read Documentation and look up the install guide.
                                4. There is a post-install step you need to find in the manual. I believe you log in as root and issue the following command: /etc/init.d/oracle-xe configure
                                5. It will prompt you for passwords, http ports, and whether you want the database to start when the computer starts (you do!).
                                6. In your Linux, install and start the HTTP service
                                7. Use the menus to start the database.

                                Now isn't that easier than ./runInstaller? That was the point when Oracle produced this package. BTW, if you are a DEB lover, I have bad news. The 32 bit database will refuse to install, leaving you with 3 choices:
                                1. Install a 32 bit DEB based Linux instead
                                2. Install a 64 bit RPM based Linux instead
                                3. Go back to ./runInstaller plus use the manuals and confirm EVERY SINGLE PACKAGE Oracle says must exist. It is not always sufficient to have a new version as sometimes the linker looks for a specific version.

                                I have installed this on 64 Bit CentOS, OEL, 32 Bit Mint, Ubuntu

                                Loyal