oracle12c-vagrant
A vagrant box that provisions Oracle 12c automatically, using only Vagrant and a shell script.
Getting started
- Clone this repository
- Download the Oracle Database 12c binaries
linuxamd64_12102_database_1of2.zip
andlinuxamd64_12102_database_2of2.zip
from http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html and unzip todatabase/
2. Ensure you unzip into the same directory and they merge. There are some common directories in each. On the commandline, you can rununzip '*.zip'
to do this for you. - Install Virtualbox
- Install Vagrant
- Install VirtualBox plugin
vagrant plugin install vagrant-vbguest
- Run
vagrant up
6. 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 shutdown the box via the usual
vagrant halt
and the start it up again viavagrant up
. 9. Note that on the nextvagrant up
, the box will automatically update the VirtualBox Guest Additions.
Connecting to Oracle
- Hostname:
localhost
- Port:
1521
- SID:
orcl
- All passwords are
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
/opt/oracle/
- On the guest OS, the directory
/vagrant
is a shared folder and maps to wherever you have this file checked out.
Known issues
Repeated authentication failure message
On vagrant up
if you experience this issue:
default: Error: Authentication failure. Retrying...
default: Error: Authentication failure. Retrying...
default: Error: Authentication failure. Retrying...
default: Error: Authentication failure. Retrying...
default: Error: Authentication failure. Retrying...
Then you may have hit a bug in vagrant 1.8.5. See http://stackoverflow.com/questions/22922891/vagrant-ssh-authentication-failure
The solution is to:
vagrant ssh
password: vagrant
chmod 0600 ~/.ssh/authorized_keys
exit
then vagrant reload
.
Connection time after startup
Once Oracle and the listener starts up, it may take a few moments until you are able to connect to the DB, eg via SQL Developer.