Posts

Showing posts from January, 2015

Up and running with the node Oracle driver on Ubuntu

Image
Dan McGhan did a great video guide on getting set up with Node.js and the Oracle driver, which you can check here: Installing Node As an alternative method to downloading the node.js tarball as per the video, you can just install using your package manager: sudo apt-get install nodejs npm Once installed, you can access the node interpreter with the command `nodejs`: Post install, you should set the NODE_PATH environment variable so that nodejs can find any modules you install: export NODE_PATH=/usr/local/lib/node_modules This is where the node-oracledb driver gets installed to. Installing the Oracle driver wget https://github.com/oracle/node-oracledb/archive/master.zip -O node-oracledb.zip unzip node-oracledb.zip cd node-oracledb-master sudo npm install -g Once all that is done, you can get rid of those files: cd ~ rm node-oracledb.zip rm -rf node-oracledb-master Then, we can get to the example files: cd $NODE_PATH/oracledb/examples