Forgot your password?    
+ Reply to Thread
Results 1 to 1 of 1

Thread: Install or Relink Errors with 32 bit Oracle on 64 bit OS

  1. #1
    Expert Oracle Administrator
    Join Date
    Oct 2011
    Location
    New Delhi, India
    Posts
    427

    Install or Relink Errors with 32 bit Oracle on 64 bit OS

    Errors like :
    ========
    /usr/bin/ld: i386:x86-64 architecture of input file `/u03/oracletest/testdb/9.2.0/rdbms/lib/config.o' is incompatible with i386 output

    or errors like :
    ===========
    /usr/lib/gcc/x86_64-redhat-linux/4.4.5/32/libgcc_s.so: undefined reference to `dl_iterate_phdr@GLIBC_2.2.4'
    /usr/lib/gcc/x86_64-redhat-linux/4.4.5/32/libgcc_s.so: undefined reference to `__stack_chk_fail@GLIBC_2.4'
    collect2: ld returned 1 exit status
    make: *** [/u03/oracletest/testdb/9.2.0/rdbms/lib/oracle] Error 1
    bash-4.1$

    or apps errors like :
    ===============
    .end std out.
    adlnkoh.sh: line 198: .../sqlplus: No such file or directory

    .end err out.



    This Relink error is on account of the gcc version.
    My default gcc version was : gcc version 4.4.5 20110214 (Red Hat 4.4.5-6) (GCC)
    The gcc version required for 32 bit oracle on 64 bit OS is : gcc version 3.2.3

    a) To have this , the following RPMs should be installed (if not already installed) :

    compat-gcc-32-3.2.3-47.3.x86_64
    compat-gcc-32-c++-3.2.3-47.3.x86_64

    In /usr/bin , I have
    -rwxr-xr-x. 1 root root 94600 May 3 2005 x86_64-redhat-linux-gcc32
    -rwxr-xr-x. 3 root root 95816 May 3 2005 x86_64-redhat-linux-g++32


    b) I created a new directory as root:

    # mkdir /usr/bin32
    # cd /usr/bin32

    Then define two scripts:

    cat >gcc <<"EOF"
    #!/bin/bash
    exec /usr/bin/x86_64-redhat-linux-gcc32 -m32 $@
    EOF

    cat >ld <<"EOF"
    #!/bin/bash
    exec /usr/bin/ld -melf_i386 $@
    EOF


    linux: # chmod a+x gcc
    linux: # chmod a+x ld

    c) Then change the path in your oracle user env to be :

    PATH=/usr/bin32:$PATH:$ORACLE_HOME/bin


    d) Comment the lines which expilicitly refer to the path - /usr/bin in 3 files.

    Comment line 58 and 59 in $ORACLE_HOME/bin/genclntsh,
    40, 41 in $ORACLE_HOME/bin/genclntst,
    88 in $ORACLE_HOME/bin/genagtsh
    (the one referring to the explicit declaration of PATH).

+ Reply to Thread

Similar Threads

  1. Install Oracle 10g Release 2 on RHEL 5
    By devesh_ocp in forum Database Installation,Upgrades,Migration,Patching and Cloning
    Replies: 2
    Last Post: 10-03-2012, 10:11 AM
  2. How to install ASM instance on a non-asm Oracle database
    By devesh_ocp in forum RAC Installation, ASM Install , ASM Administration
    Replies: 0
    Last Post: 04-26-2012, 02:17 PM
  3. ERRORS/PROBLEMS WHILE INSTALLING APPS 11i
    By dbaANKIT in forum Oracle Apps Patching and Cloning, Installation , Migration,Upgrades
    Replies: 3
    Last Post: 01-14-2012, 11:23 PM
  4. not able to install oracle
    By manishkr23 in forum Database Installation,Upgrades,Migration,Patching and Cloning
    Replies: 2
    Last Post: 01-05-2012, 04:50 PM
  5. Relink Applications 11i and R12
    By Hemant in forum AD Utilities , Autoconfig , FND Utilities
    Replies: 0
    Last Post: 11-01-2011, 12:47 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

DBA Lounge (P) Ltd. deals in Oracle Technologies on Consulting, Resourcing, Corporate Training


Online and corporate training available on Oracle Database 11g, Oracle 11g Real Application Cluster (RAC), Oracle Applications 11i/R12, Oracle Fusion Middleware 11g, Oracle Identity Management-OIM, Oracle Internet Directory 11g-OID, Oracle Business Intelligence Enterprise Edition-OBIEE, Oracle Golden Gate, Oracle Access Management-OAM, Oracle Internet Directory-ODS, Oracle Identity Analytics Architecture-OIA Statistics