What is the variable env LD_LIBRARY_PATH for?

DB version: 11.2
OS: Oracle Solaris 10

Why do we set LD_LIBRARY_PATH?

If my ORACLE_HOME is
$ echo $ORACLE_HOME
/u01/oracle/11g/db
All that I need to set for LD_LIBRARY_PATH?
$ echo $LD_LIBRARY_PATH
/u01/oracle/11g/db/lib
What happens if I put the variable LD_LIBRARY_PATH or set so wrong?

If LD_LIBRARY_PATH is required or not depends on how the dynamic links of the kernel loader works ito determine where looking for a shared lib.

The dynamic links Windows loader uses the PATH variable (after first checking the current directory). It seems since the test below that Linux needs the whole LD_LIBRARY_PATH

// current setting
/home/billy> echo $LD_LIBRARY_PATH
/home/billy/instantclient_10_2:/usr/lib/firefox:

// sqlplus loads fine
/home/billy> sqlplus

SQL*Plus: Release 10.2.0.1.0 - Production on Thu Nov 24 11:38:59 2011

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Enter user-name: 

// unset the environment variable and sqlplus fails to load
/home/billy> unset LD_LIBRARY_PATH
/home/billy> sqlplus
/home/billy/instantclient_10_2/bin/sqlplus: error while loading shared libraries:
libsqlplus.so: cannot open shared object file: No such file or directory

// this is what the dynamic link loader sees as shared libs that need to
// be loaded - and which of these it does not find
/home/billy> ldd /home/billy/instantclient_10_2/bin/sqlplus
        linux-gate.so.1 =>  (0x00cc1000)
        libsqlplus.so => not found
        libclntsh.so.10.1 => not found
        libnnz10.so => not found
        libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0x006eb000)
        libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0x005f5000)
        libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0x001fe000)
        libnsl.so.1 => /lib/i386-linux-gnu/libnsl.so.1 (0x00d53000)
        libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0x009ab000)
        /lib/ld-linux.so.2 (0x005a8000)

// setting the environment and checking what the dynamic link loader sees
/home/billy> export LD_LIBRARY_PATH=/home/billy/instantclient_10_2:/usr/lib/firefox:
/home/billy> ldd /home/billy/instantclient_10_2/bin/sqlplus
        linux-gate.so.1 =>  (0x00bb3000)
        libsqlplus.so => /home/billy/instantclient_10_2/libsqlplus.so (0x00aa5000)
        libclntsh.so.10.1 => /home/billy/instantclient_10_2/libclntsh.so.10.1 (0x00fd8000)
        libnnz10.so => /home/billy/instantclient_10_2/libnnz10.so (0x00778000)
        libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0x00110000)
        libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0x001ab000)
        libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0x00114000)
        libnsl.so.1 => /lib/i386-linux-gnu/libnsl.so.1 (0x00bd1000)
        libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0x001d1000)
        /lib/ld-linux.so.2 (0x00fba000)

There is also a variable SHLIB_PATH used by some Unix flavors... could be pre-Posix maybe? Remember that this has been used on older kernels of 32-bit HP - UX.

If the ldd command (or similar) is available, this is a good way to check the requirement of library of static linking of an executable and the question of whether the loader can find the library files required on the disc.

Tags: Database

Similar Questions

  • HP workspace: what is the minimum bandwidth required for cellular and Wi - Fi connections with HP workspace?

    Hey everybody,

    What is the minimum bandwidth required for cellular and Wi - Fi connections with HP workspace?

    Thank you

    Bill

    Although there is no minimum required to run the HP workspace, a 4 G LTE cell phone or higher data network or connection to Wi - Fi network with a bandwidth of at least 1 megabit per second is recommended.

  • What are the minimum system requirements for firefox 5 forMac OS x

    When you published Firefox 4, it updated automatically on my Mac PowerPC osx 10.5.x and then would not be executed. I had to look for an earlier version, download and reinstall. It was awkward. I can't find min sys req for the new 5.0 version. Min sys requirements should be obvious in yor press. What is the minimum configuration required for firefox 5.0 for Mac osx, and with more frequent updates, how will I know when you have 'obsolete' another one of my machines, and how would I be protected to an update too far?

    Firefox 4 and 5 will not run on a Mac PPC; only on Intel. You can get the TenFourFox, which runs on a PPC.

    http://www.floodgap.com/software/tenfourfox/

  • What is the limit of storage for "indexDB" in Firefox 4?

    What is the limit of storage for "indexDB" in Firefox 4?

    I need to know because I write a significant demand with local storage requirements.

    More the 5 MB limit in the Local Storage API.

    Your response is appreciated.

    Thank you
    David

    If the user grants permission for a site to exceed the quota of 50 MB IndexedDB, then as much as I know Firefox is no limit more. The only limits on the size of the IndexedDB database will be the disk space of the user and operating system.

    The quota of localStorage is 5000KB and there is no way for a web site asking the browser for permission to store more than that amount in localStorage.

  • What is the best HDMI switch for use with Apple tv 4

    What is the best HDMI switch for use with Apple tv 4. I heard some do not work and the automatic switch has problems because Apple tv is still using power?

    I installed on a cutting and not because the automatic switch works because it isn't always. It came with a remote control that is almost as good, so don't mind the fact that automatic switching does not work well. The reason why I chose cutting is because it was the first device that gave me the good picture and sound quality with my AppleTV, the Xbox 360 and the PS4. (Don't ask!)

  • Is it possible to upgrade the graphics card on a Macbook Pro mid-2015? If Yes, what is the best graphics card for Mac?

    Is it possible to upgrade the graphics card on Macbook Pro with Retina Display mid-2015? If Yes, what is the best graphics card for Mac?

    Without this change.

    GPU is a chipset that is soldered to the logic board or at least a mini-map attached to the logic board.  In addition, the stitching and the GPU driver are optimized for the preselected GPU.

  • What is the best thermal paste for macbook pro?

    What is the best thermal paste for macbook pro?

    The processor in a MBP is not repairable by the user.  Are you sure that you are referring to "thermal paste" used to adhere the CPU of the logic board?

  • What is the MTBF method, used for the cRIO 9012, is the method of counting of Telcordia under what conditions?

    What is the MTBF method, used for the cRIO 9012, is the method of counting of Telcordia under what conditions? (Temperature, humidity, etc.)

    Hi jojosalud,

    According to the specifications for the cRIO-9012, the MTBF is 330 481 hours at 25 ° C; Question of Bellcore level II.

    Kind regards

  • What is the command of shortcut for all windows get the information from the computer?

    What is the command of shortcut for all windows get the information from the computer?

    instead of going to the computer / my computer > properties > discover the pc... basic information or go to the control panel...

    just a command for windows xp, vista, 7 for system looking for information....

    original title: what is the SHORTCUT COMMAND to get information from the computer system?

    Hello BlackSecret,

    The keyboard shortcut to get to the top of this information is Windows key + break Attn.

    Who does what you ask?
  • What is the maximum system RAM for PC laptop HP Pavilion e113dx 17?

    What is the maximum system RAM for PC laptop HP Pavilion e113dx 17?

    Depending on on where I look, I seem to get contradictory information

    New HP 17 laptop AMD configurations = 12 GB max

    Crucial.com = Memory Configurator, max 8 GB

    I think the max is 12 GB (4 GB in slot 2 and the option to add a 8 GB RAM module)

    Thanks for all the help

    Hello

    The following link shows its specifications:

    http://support.HP.com/us-en/document/c04170665

    Only 8 Gb normally with two RAM slots, they have max: 2, 4, 8, 16, 32. No odd 12 GB.

    Kind regards.

  • What is the best photo paper for the Canon MX860?

    What is the best photo paper for the canon mx860? I have the Hammermil copy of photo paper but I don't think it's the right paper for your printer

    Hello Kolourl3lind,

    The following Canon photo papers are recommended for use with the PIXMA MX860:

    Photo Paper Pro Platinum
    Pro II photo paper
    Photo paper glossy 'daily use '.
    Photo glossy paper
    Photo Paper Plus Glossy II
    More glossy photo paper
    Matte Photo paper
    Paper high resolution
    T-Shirt transfers
    Photo stickers

    These photo papers, and other accessories for the printer, can be purchased online at Canon here Shop:

    http://shop.USA.Canon.com/shop/en/catalog/accessories/PIXMA-MX860-wireless

    I hope this helps!

  • What is the best video card for an hp p7 - 1137c 300 wat?

    What is the best video card for an hp p7 - 1137c 300 wat?

    Windows 7. 64 bit OS

    A Nvidia GT430 or GT520 is better than a 300 watt power supply will manage. If you want a better graphics card than Nvidia or any Radeon HD card you willl need a more powerful power supply. The Corsair CX500 and CX600 are highly recommended and are favorite forum. For more information, read Guide of Big_Dave of a discrete video card selection .

    Frank

  • What is the BEST Registry Cleaner for Win 7 Ultimate or Pro 64 Bit OS version?

    What is the BEST Registry Cleaner for Win 7 Ultimate or Pro 64 Bit OS version?

    When I search on the internet with the same Question, I get hundreds of links and each company says it has the BEST Software Registry Cleaner to 100% and I bet that 99% are liars!

    Microsoft really needs to TEST all registry cleaners & make a list of the Top 5 BEST software for many different uses and post this list for your clients may know what is the best to use to fix their PC problems.

    Please, I beg you!  Nice and help your customers who have purchased and use your Microsoft software...  Ok??

    Microsoft really needs to TEST all registry cleaners & make a list of the Top 5 BEST software for many different uses and post this list for your clients may know what is the best to use to fix their PC problems.

    Microsoft does not recommend to use a registry cleaner.

    Slow PC? Optimize your computer for optimal performance:

    http://www.Microsoft.com/athome/Setup/optimize.aspx

    «Note: this article does not meet or recommend tinkering with the registry files.» These activities can harm your computer and should only be attempted by trained professionals. »

  • What is the maximum memory limit for windows 7 ultimate?

    How GB Windows 7 Ultimate take on your drive hard when you perform a new installation?

    In addition, what is the maximum memory limit for windows 7 ultimate?

    Lefty

    Average size of a clean install of Windows 7 64-bit is around 20-30 concerts.

    Win 7 ultimate can handle as much as your motherboard can support.

  • I want to know what is the best possible settings for energy management software.

    Hey

    I just buy lenovo b 570 e dual core laptop.
    I want to know what is the best possible settings for energy management software.
    Secondly, I want to know b 570 e score if one is to use it.
    Thank you
    concerning
    Nadine
     
    Original title: lenovo B 570 e dual-core

    Hi Nadia,

    I suggest you to use your favorite search engine to find the best possible settings for energy management software.

    If you are referring to the Windows experience index, I suggest you follow the links below and the update of the status of the issue.

    What is the Windows experience index? :

    http://Windows.Microsoft.com/en-in/Windows7/what-is-the-Windows-experience-index

    Windows experience index:

    http://Windows.Microsoft.com/en-in/Windows7/products/features/Windows-experience-index

    I hope that the information above helps you.

Maybe you are looking for

  • Build a table of a loop for.

    Hi all I have a vi that reads from a file and manipulates data using the loop. I'm taking each element and multiplying by a constant and convert it to I32. I would build to a new array with the new values. I have attached the vi and a sample data fil

  • shared variable creates sound - problem, save data in crio

    Hi all I have a problem here... Why I get noise when using shared variables in my labview code... but when I remove these shared_varibles, the sounds are totally reduced... I use the shared variable for the data record. For the recording of data, I d

  • X 51 - R2, BSOD, internal hard drive not found

    I get a blue screen on average once a day telling me that it is a: KERNEL_DATA_INPAGE_ERROR until the computer tries to restart bring me to a black screen saying that the internal hard drive is not found. Turn off the computer and restart it solves t

  • BlackBerry smartphones can not download world blackberry via wifi on curve 8520

    can't download apps from the bb world. It displays the message error «we cannot connect you to the world of blackberry.» Make sure that your device is connected to the wireless network and try again." Now, only the browser works by wifi

  • Known API limits documentation

    Are there limitations known in all the options of the API (in bulk, rest, soap...)? Is there documentation available by API type full Casco? (other than a collection of articles Topliners)?