Automatically installing Oracle 12cR2 with your Vagrant/VirtualBox deployment
1) Get the files that will control this deployment:
cd \work git clone https://github.com/totalamateurhour/oracle-12.2-vagrant
- or -
Download and unzip https://github.com/totalamateurhour/oracle-12.2-vagrant/archive/master.zip to c:\work .
Now files will be available in the c:\work\oracle-12.2-vagrant project directory. The Vagrant specific files and scripts are in the 126.96.36.199 subdirectory.
2) Get the Oracle Binaries Install FileAs per the project ReadMe, download the Oracle Database 12c Release 2 binaries linuxx64_12201_database.zip from http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html . Place this zip file in the c:\work\oracle-12.2-vagrant\188.8.131.52 directory. It will be mounted by the VM that starts up and accessed by the shell script that performs the install. Once you are in the VM you can access the c:\work\oracle-12.20-vagrant\184.108.40.206 files via the /vagrant subdirectory.
3) Customize Vagrantfile If Needed
Review the c:\work\oracle-12.2-vagrant\220.127.116.11\Vagrantfile text file. If you will only have 1 environment configured or this is your 1st install you can skip customization.
If you are managing more than one deployment, see the page in this notebook covering multiple environments.
4) Initiate Deployment
cd \work\oracle-12.2-vagrant\18.104.22.168 vagrant upVagrant will start and read the default .vagrantfile in the current directory to determine what needs to be done. If no local cached copy of the desired VM is available (in this case Oracle's ol7-latest.box VM) it will be downloaded. After that the VM is started and any machine specific configs from the Vagrantfile are applied. scripts/install.sh is run and passed the arguments supplied in the call. Since we are starting up a fresh vm and customizing it with Oracle software it may take a while for the first startup.