Works as of 2/6/2020
This directory contains Vagrant build files to provision an Oracle Database automatically, using Vagrant, an Oracle Linux 7 box and a shell script.(space, space)
- Install Oracle VM VirtualBox
- Install Vagrant
- Clone the vagrant-boxes 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
[IMAGE TO SHOW THE NECESSARY FILES AND SHOW THE PRE-DOWNLOADED VAGRANT FILE] - Run
vagrant up
- Connect to the database via
vagrant ssh
- You can shut down the box via the usual
vagrant halt
and the start it up again viavagrant up
.
-
Install JDK-8
- note: any JDK version 7 or higher will work, but some packages are archived on higher JDK versions such as 11 or 13
- make sure that you install the linux x64 rpm file
[IMAGE TO SHOW THE JDK-8 FILE NEEDED]
-
Install the Oracle Database Backup Module
-
Install the vagrant-scp plugin
vagrant plugin install vagrant-scp
-
Move the opc_installer.zip and jdk-8u241-linux-x64.rpm file to your Oracle database directory
mv ~/downloads/opc_installer.zip ~/downloads/jdk-8u241-linux-x64.rpm ~/vagrant-boxes/OracleDatabase/12.1.0.2
[IMAGE TO SHOW THE MOVED FILES] -
then you want to scp the two files into the database instance:
vagrant scp opc_installer.zip jdk-8u241-linux-x64.rpm :~
-
Connect to the database with
vagrant ssh
-
Check to see if the two files are there
- run
su
to login to the root user - install the JDK with
$ rpm -ivh jdk-8u241-linux-x64.rpm
- Check to see if java was installed properly with
$ java -v
- Unzip the opc_installer.zip file via
$ unzip opc_installer.zip
- Get to the opc installer directory via
$ cd opc_installer
- there are two folders inside
[IMAGE TO SHOW THE CONTENTS OF opc_installer] - We will use the oci_installer this time so run
$ cd oci_installer
- There should be a jar file called oci_install.jar
$ ls
- Move that to the root directory, for example
$ mv oci_install.jar /opt
- Then get to that directory with
$cd /opt
- Check whether the file is there
$ ls
[IMAGE TO SHOW THE JAR FILE]
There are several prereqs to run this jar file
-
hostname
-
private key
-
public key fingerprint
-
tenancy OCID
-
compartment OCID
-
user OCID
-
bucketname (optional)
-
wallet directory location (optional)
-
library directory location (optional)
-
configfile directory location (optional)
-
Also to make this work you need tenancy-level access to Object Storage, can easily be done with admin access or you can create a policy that limits access to just the required resources
Allow group <group_name> to manage objects in compartment <compartment_name> where target.bucket.name = '<bucket_name>'
Allow group <group_name> to read buckets in compartment <compartment_name>