oracle11g-xe-vagrant

A vagrant box that provisions Oracle Database automatically, using Vagrant, an Oracle Linux 7.3 box and a shell script.

Prerequisites

  1. Install Oracle VM VirtualBox
  2. Install Vagrant

Getting started

  1. Clone this repository git clone https://github.com/oracle/vagrant-boxes
  2. Change into the desired version folder
  3. Download the installation zip files from OTN into this folder - first time only: http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
  4. Run vagrant up
    1. The first time you run this it will provision everything and may take a while. Ensure you have (a good) internet connection as the scripts will update the virtual box to the latest via yum.
  5. Connect to the database.
  6. You can shut down the box via the usual vagrant halt and the start it up again via vagrant up.

Connecting to Oracle

  • Hostname: localhost
  • Port: 1521
  • SID: XE
  • HTTP port: 8080
  • All passwords are auto-generated and printed on install

Resetting password

You can reset the password of the Oracle database accounts by executing /home/oracle/setPassword.sh <Your new password>.

Other info

  • If you need to, you can connect to the machine via vagrant ssh.
  • You can sudo su - oracle to switch to the oracle user.
  • The Oracle installation path is /u01/app/oracle/ by default.
  • On the guest OS, the directory /vagrant is a shared folder and maps to wherever you have this file checked out.

oracle-xe-11.2.0-1.0.x86_64.rpm.zip