Linux – Install Oracle 11gR2 driver for Node.js 0.10.20

installationlinuxoracleoracle-11g-r2

I want to connect Oracle 11gR2 and Node.js 0.10.20. I use this package but I don't understand this part of installation process. Can you explain it to me?

# Replace /opt/instantclient_11_2/ with wherever you extracted the Basic Lite files to
echo '/opt/instantclient_11_2/' | sudo tee -a /etc/ld.so.conf.d/oracle_instant_client.conf
sudo ldconfig

Best Answer

This means that you have to include Oracle instant client libraries into the database used by Linux dynamic linker when it has to resolve run time bindings.

Instructions tells you to create new .conf file in /etc/ld.so.conf.d/ directory with the Oracle instant client libraries directory. And then you have to run ldconfig with root permissions so that it will create new database with the Oracle instant client libraries included.

Example from one of our servers:

# cat /etc/ld.so.conf.d/oracle.conf
/usr/lib/oracle/11.2/client64/lib/

.conf file name does not matter.