oracle-12.2-vagrant
A vagrant box that provisions Oracle Database 12c Release 2 automatically, using Vagrant, an Oracle Linux 7.3 box and a shell script.
Prerequisites
- Install Oracle VM VirtualBox
- Install Vagrant
Getting started
- Clone this repository
git clone https://github.com/totalamateurhour/oracle-12.2-vagrant
- Change into version folder (12.2.0.1)
- First time only (see #5): Download the Oracle Database 12c Release 2 binaries linuxx64_12201_database.zip from http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
- Run
vagrant up
5. The first time you run this it will provision everything and may take a while. Ensure you have a good internet connection! - Connect to the database.
- You can shut down the box via the usual
vagrant halt
and the start it up again viavagrant up
.
Connecting to Oracle
- Hostname:
localhost
- Port:
1521
- SID:
ORCLCDB
- PDB:
ORCLPDB1
- OEM port:
5500
- All passwords are
password
Acknowledgements
Based on @steveswinsburg's work here: https://github.com/steveswinsburg/oracle12c-vagrant
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
/opt/oracle/
by default. - On the guest OS, the directory
/vagrant
is a shared folder and maps to wherever you have this file checked out.
Customization
You can customize your Oracle environment by amending the environment variables in the Vagrantfile
file.
The following can be customized:
ORACLE_BASE
:/opt/oracle/
ORACLE_HOME
:/opt/oracle/product/12.2.0.1/dbhome_1
ORACLE_SID
:ORCLCDB
ORACLE_PDB
:ORCLPDB1
ORACLE_CHARACTERSET
:AL32UTF8
Known issues
None.