A vagrant box that provisions Oracle Database automatically, using Vagrant, an Oracle Linux 7.3 box and a shell script.
- Install Oracle VM VirtualBox
- Install Vagrant
- Clone this repository
git clone https://github.com/oracle/vagrant-boxes
- Change into the desired version folder
- Download the installation zip files from OTN into this folder - first time only: http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
- Run
vagrant up
- 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
.
- 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
- Connect to the database.
- You can shut down the box via the usual
vagrant halt
and the start it up again viavagrant up
.
- Hostname:
localhost
- Port:
1521
- SID:
XE
- HTTP port:
8080
- All passwords are auto-generated and printed on install
You can reset the password of the Oracle database accounts by executing /home/oracle/setPassword.sh <Your new password>
.
- 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