A vagrant is a tool for building and managing virtual machine environments in a single workflow. With an easy-to-use workflow and focus on automation, Vagrant lowers development environment setup time, increases production parity, and makes the “works on my machine” excuse a relic of the past. It provides easy to configure, reproducible, and portable work environments built on top of industry-standard technology and is controlled by a single consistent workflow to help maximize the productivity and flexibility.

Introduction to Vagrant

Oracle has recently launched Oracle 18c Database which is now available on GitHub repository with Vagrant boxes. With the help of Vagrant, we can get ready VirtualBox with OS and installed Oracle database for sandbox testing and QA environment. In a couple of minutes, we can get readymade VM having DB for this requirement, we need following things

  1. Oracle VirtualBox
  2. Vagrant installer
  3. Oracle Database 18c setup
  4. Vagrant configuration files from GitHub

After successful installation of VirtualBox & Vagrant, now, we can create an Oracle Database Vagrant box. Then, download a configuration file from GitHub by click on Clone or Download into your local machine. There is another option to the configuration from GIT command but that, I will cover in another post. You will need to download the Linux x86-64 zip file of  Oracle 18c.

Now, I will unzip the Vagrant files on my local machine.

Next step is to open the CMD with the “run as administrator“. Check the Vagrant is installed and it’s version. In my case, I installed Vagrant in C:\HashiCorp\Vagrant

Next, we will have to move the vagrant-boxes/OracleDatabase/<version> folder of the version we would like to build and then copy the Oracle Database installer zip file into the folder. In my case, I will install Oracle 18c, So we will move D:\shared\vagrant-boxes-master\OracleDatabase\18.3.0 and copy installer here.

Now, we are ready to fire Vagrant UP command to install VirtualBox with Oracle Database 18c.

Now, we can check whether Vagrant is started or not.

In the next Article, we will see how to access the database in Vagrant VM and stop & destroy Vagrant VM.

Stay tuned for More articles on Vagrant related to Oracle

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Telegram Channel: https://t.me/helporacle

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

Joel Perez’s LinkedIn: Joel Perez’s Profile

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

 

Comments

  1. Pingback: 18c Up And Running In 30 Minutes – DBA Paradise

Leave a Reply

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