12 Replies Latest reply: Feb 19, 2011 7:03 AM by KrishnaAgnihotri RSS

    How to set LD_LIBRARY_PATH

    KrishnaAgnihotri
      Hi

      we have some issue with adrelink.sh command, so oracle suggest to include path $ORACLE_HOME/lib32/libde.sl path in LD_LIBRARY_PATH env. kindly inform me where i can add this path to resolve this issue.

      OS : HP-UNIX
      E Biz: 12.1.2

      Thanks
      Krishna
        • 1. Re: How to set LD_LIBRARY_PATH
          Helios-GunesEROL
          Hi;

          Please check below note:
          HP-UX: LD_LIBRARY_PATH and SHLIB_PATH [ID 109621.1]

          Regard
          Helios
          • 2. Re: How to set LD_LIBRARY_PATH
            KrishnaAgnihotri
            Hi Helios

            Thanks for reply, but still i am not able to find out the exact file where i can add $ORACLE_HOME/lib32/libde.sl in my LD_LIBRARY_PATH file. kindly specify the file name and location so that i can add this.

            Thanks
            krishna
            • 3. Re: How to set LD_LIBRARY_PATH
              Helios-GunesEROL
              Hi;
              we have some issue with adrelink.sh command,
              What is error message?
              so oracle suggest to include path $ORACLE_HOME/lib32/libde.sl path in LD_LIBRARY_PATH env. kindly inform me where i can add this path to resolve this issue.
              Which doc you are refering? When you source env file on dbtier it should set $LD_LIBRARY_PATH, what echo $LD_LIBRARY_PATH return?

              Regard
              Helios
              • 4. Re: How to set LD_LIBRARY_PATH
                KrishnaAgnihotri
                Hi

                echo $LD_LIBRARY_PATH
                /v02/R12/apps/tech_st/10.1.2/jdk/jre/lib/PA_RISC2.0:/v02/R12/apps/tech_st/10.1.2/jdk/jre/lib/PA_RISC2.0/server:/v02/R12/apps/apps_st/appl/cz/12.0.0/bin:/v02/R12/apps/tech_st/10.1.2/lib32:/v02/R12/apps/tech_st/10.1.2/lib:/usr/dt/lib:/v02/R12/apps/tech_st/10.1.2/jdk/jre/lib/PA_RISC2.0:/v02/R12/apps/tech_st/10.1.2/jdk/jre/lib/PA_RISC2.0/server:/v02/R12/apps/apps_st/appl/sht/12.0.0/lib

                gives me this result.

                we are facing issue for concurrent programs. all concurrent programs are failling with error

                stat_low = 86
                stat_high = 0
                emsg:was terminated by signal 6
                /usr/lib/dld.sl: Can't find path for shared library: libde.sl
                /usr/lib/dld.sl: No such file or directory

                so Oracle suggested me to add following in $LD_LIBRARY_PATH

                Search for libde.sl on your system (this would probably be under your oracle home) make sure this patch is in your ld_library_path environment variable, then relink and test again ( make sure you added this in the environment files).

                Thank you in advance for your update

                Dale@
                Oracle Support


                kindly inform me where i need to add this parameter.
                • 5. Re: How to set LD_LIBRARY_PATH
                  EBSDBA
                  Hi,
                  Please do the following.

                  $cd /v02/R12/apps/tech_st/10.1.2
                  $find . -name libde.sl -print
                  If it returns the location then add that path to LD_LIBRARY_PATH as follows.

                  $ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path found on above find command>
                  $export LD_LIBRARY_PATH


                  [I Hope you will find the file in lib32 or lib folder in /v02/R12/apps/tech_st/10.1.2]

                  Thank,
                  Taher
                  • 6. Re: How to set LD_LIBRARY_PATH
                    KrishnaAgnihotri
                    Hello Taher,

                    I have got the aboe said file in $ORACLE_HOME/lib32/ location. my question is i want to add this location in my LD_LIBRARY_PATH location. how can i do that.

                    Thanks
                    krishna
                    • 7. Re: How to set LD_LIBRARY_PATH
                      EBSDBA
                      hI Krishna,
                      It is in my previous reply.

                      I am posting here again.

                      $LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib32/
                      $export LD_LIBRARY_PATH

                      or

                      $export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib32/


                      Thanks,
                      Taher

                      Edited by: user11970143 on Feb 18, 2011 6:23 AM
                      • 8. Re: How to set LD_LIBRARY_PATH
                        KrishnaAgnihotri
                        Hi

                        By export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib32/ this will ad the path for my current session. i want to add this for applmgr user profile, to make this permanent. Kindly advice how can i do this.

                        Thanks
                        krishna
                        • 9. Re: How to set LD_LIBRARY_PATH
                          Helios-GunesEROL
                          Hi;

                          go to your applmgr user home

                          vi .profile (aix,solaris) .bash_profile(linux)

                          add below line in

                          export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib32/

                          Save-quit

                          relogin wiht your user
                          echo $LD_LIBRARY_PATH

                          Regard
                          Helios
                          • 10. Re: How to set LD_LIBRARY_PATH
                            KrishnaAgnihotri
                            Hi

                            I am using HP PA RISK 64 BIT OS. I am providing here .profile entry. at present there is no such entry for LD_LIBRARY_PATH. Kindly advice where i can add this entry.

                            ERP1DRAPPLDEVDR>cat .profile

                            # @(#)B.11.11_LR

                            # Default user .profile file (/usr/bin/sh initialization).

                            # Set up the terminal:
                            if [ "$TERM" = "" ]
                            then
                            eval ` tset -s -Q -m ':?hp' `
                            else
                            eval ` tset -s -Q `
                            fi
                            stty erase "^H" kill "^U" intr "^C" eof "^D"
                            stty hupcl ixon ixoff
                            tabs

                            stty eras

                            # Set up the search paths:
                            PATH=$PATH:.

                            # Set up the shell environment:
                            set -u
                            trap "echo 'logout'" 0

                            # Set up the shell variables:
                            EDITOR=vi
                            export EDITOR

                            #PERL5LIB=/v02/app/appldev/product/iAS/Apache/perl/lib/5.00503:/v02/app/appldev/product/iAS/Apache/perl/lib/site_perl/5.005; export PERL5LIB

                            #VELSID='TST';export VELSID

                            # Comment by Ramji 01.nov.2006

                            #. /v02/app/appldev/devappl/APPSDEVDR_erp-1-dr.env
                            #. /v02/app/appldev/product/8.0.6/DEVDR_erp-1-dr.env
                            #SS=$COMMON_TOP/admin/scripts/DEVDR_erp-1-dr;export SS
                            # . /v02/app/oraprd/product/9.2.0/DEVDR_erp-1-dr.env
                            SS=/v02/R12/inst/apps/DEVDR_erp-1-dr/admin/scripts; export SS
                            . /v02/R12/apps/apps_st/appl/APPSDEVDR_erp-1-dr.env
                            PLATFORM='HP9000';export PLATFORM
                            PS1='ERP1DRAPPLDEVDR>'; export PS1
                            ERP1DRAPPLDEVDR>

                            Thanks
                            Krishna
                            • 11. Re: How to set LD_LIBRARY_PATH
                              EBSDBA
                              Hi,
                              Add the following line at the bottom of .profile

                              Just to prevent take backup of .profile

                              LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib32
                              export LD_LIBRARY_PATH

                              Thanks,
                              Taher
                              • 12. Re: How to set LD_LIBRARY_PATH
                                KrishnaAgnihotri
                                Add your new LD_LIBRARY_PATH in $APPL_TOP/admin/adovars.env file. from here the LD_LIBRARY_PATH is being picked up.