Fastest creation of a Lean VirtualBox VM Image with Oracle Database 11gR2 XE, the Node.JS 7.x and the Oracle DB Driver for Node


For a workshop on Node.js I needed a VM to demonstrate and students try out the Oracle DB Driver for Node. I wanted a lean VM with the bare minimum: Oracle Database XE, Node, the Oracle DB Driver for Node and the Git client (for fetching sources from GitHub). I stumbled across the OXAR repository in GitHub ( ) – Oracle XE & APEX build script along with images for popular cloud platforms . Using the sources I found here, I could create my VM in a few simple, largely automated steps. I ended up with a 4.5 GB sized VM image (which exports as a 1.5 GB appliance) that runs in 1 GB. It is more than adequate for my needs.

The steps – for myself if I need to go through them again and of course for you, the reader, to also create this handsome, useful VM.

The steps for creating your own VM image are as follows:

1. make sure that you have Vagrant and VirtualBox installed locally ( and

2. get the OXAR repository content

git clone

3. Download Oracle 11gR2 XE  installer for Linux from OTN: and copy the downloaded file (the Linux installer for Oracle 11gR2 XE Database downloaded from OTN) to the OXAR/files directory

4. edit the file in the OXAR root directory


– set parameter OOS_ORACLE_FILE_URL to file:///vagrant/files/ and save the change:



Use the OOS_MODULE_XXX flags to specify which components should be installed. Here I have chosen not to install APEX and NODE4ORDS.

5. run vagrant using the statement:

vagrant up

this will run for a file, download the CentOS base image and create the VM (with NAT network configuration), install all of Git client, Oracle 11gR2 XE Database, Node and Node OracleDB Driver

6. after rebooting the system, the VM will be started (or you can start it using vagrant up again or by using the VirtualBox manager).


You can start an SSH session into it by connecting to localhost:50022, then login to Linux using vagrant/vagrant


7. connect to the database using sqlplus hr/oracle


8. Try out Node.js


9. To try out Node against Oracle Database using the driver, you can clone the GitHub Repository:

git clone


Next, cd into the newly created directory


and run the file select.js:


10. To try out PL/SQL as well:

Create the procedure get_salary using the file get_salary_proc.sql



Run Node program plsql.js:


About Author

Lucas Jellema, active in IT (and with Oracle) since 1994. Oracle ACE Director and Oracle Developer Champion. Solution architect and developer on diverse areas including SQL, JavaScript, Kubernetes & Docker, Machine Learning, Java, SOA and microservices, events in various shapes and forms and many other things. Author of the Oracle Press book Oracle SOA Suite 12c Handbook. Frequent presenter on user groups and community events and conferences such as JavaOne, Oracle Code, CodeOne, NLJUG JFall and Oracle OpenWorld.

1 Comment

  1. Hey Lucas, can I suggest you guys make your blog titles shorter? Quite often they are longer than the 140 character limit Twitter imposes, so I have to edit them if I want to tweet it! 🙂


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.