This is a brief guide to installing Oracle Database 12c on a virtual Oracle Enterprise Linux (OEL) 6 environment using Oracle Virtual Box.
Before we can install OEL we need to download it from the
Once downloaded you can optionally burn the ISO image to a DVD (it's too big for a CD-ROM) or use
to create and mount the ISO image as a virtual DVD.
Next we need to create a virtual machine which will become our (new) Linux system.
Start Virtual Box and then select New from the Machine menu or type Ctrl-N to start the new vm wizard and specify the required attributes.
Supply a name for the new VM, select Linux as the type as and Oracle as the version.
Allocate no more than half of the physical RAM available to the new VM (4GB in our case) otherwise the host becomes unstable. Oracle Linux requires a minimum of 1 GB of memory and a minimum of 1 GB of disk space.
a new virtual hard drive or re-use an existing one.
Choose the appropriate hard drive type.
Specify the allocation
method - either dynamic or fixed. If you're short of disk space you may prefer dynamic allocation, although this might effect performance.
The final step in creating the vm is to specify the size of the virtual hard drive. Allocate about 50GB to hold the operating system, the Oracle software and the sample Oracle database. It is possible to create more virtual disks after the VM has been created but adding them to Linux is a little complicated.
Now we've created the VM we need to install Oracle Linux on it.
Ensure the dvd containing the Oracle Linux ISO is loaded in the drive or mount the virtual DVD. Within Virtual Box select the newly created VM and click on the big green arrow on the toolbar labeled Start.
As the vm starts it will pop-up this information box – just click OK and remember which key you need to return control of the keyboard and mouse to the host.
Click on OK. When the splash screen is displayed prees F12 to change the boot device to option b) CD-RO.
If you get the message that the media can't be found, select Devices ->CD/DVD Devices from the menu of your running virtual machine and select the appropriate host drive, then select Machine-> Reset from the to re-start the virtual machine.
Next this information box may pop-up, if it does you can ignore it.
When you get to the boot menu select the first option – "Install or upgrade"
Click next when the first screen of the installation process
Next, choose your language, your keyboard, the type of devices you'll be using (most likely Basic Storage Devices).
After this a Storage Device Warning message box pops up to tell you that your partition is blank. It is safe to discard any data as this is a new virtual disk
Next, type in the host name of your (new virtual)
Linux system or leave it at the default.
Then either select your location from the drop down list or click on your location on the map. You cam zoom in and out by using the slider on the left hand side.
This next screen asks for the root passsword. It is important to remember what you type here otherwise you'll have to start all over again!
For the installation type accept the default and tick the box to Review and modify partitioning
Adjust the size of the swap partition according to the table in the Oracle 12c installation guide at http://docs.oracle.com/cd/E16655_01/install.121/e17720/pre_install.htm#BABGCEAD . To add new partitions or increase the size of the swap partition you will first have to reduce the size of the root partition to leave free space which then be allocated to swap or any other parition.
Ignore the 2 subsequent warning messages that pop up, this is a virtual disk you are partioning so it will have no effect in the host environment (other than portion of disk space being unavailable for use by any other application on the host).
Once the virtual disk has been formatted, accept the defaults to install the boot loader.
The next screen asks for the installation type. Pick database server, select the UEK2 (Unbreakable Enterprise Kernel) and opt to "customize now" so that you can select X-Windows and the Oracle Pre-Install RPM on the next screen.
To add the Oracle Pre-Install RPM, select Servers (from the left hand menu), System Administration tools (from the bottom of the right hand menu), then click on Optional Packages to bring up the list of packages and select oracle-rdbms-server-11gR2-preinstall.
Also add X Windows and KDE desktop from the Desktops option.
Adding X Windows, UEK and the Oracle Pre-Install RPM saves much time and effort later on when you install the database software.
After this you can sit back and relax for a while as Linux is installed.
Once installation has
finished the system will ask you to re-boot and on reboot you'll be
presented with the license agreement and then final configuration
will occur, after which you can log in as Root and start the installation of the Oracle Database 12c software and sample database.
We now have the o/s installed and installation of the Oracle Pre-Install RPM has created the Oracle accounts for us, installed any additional packages required and set parameters to their recommended settings which makes installation of the database software much quicker and easier so the next stage is the download and install the Oracle database software.
To install Firefox, first download it from www.mozilla.org/firefox/channel. Next, go to the folder conatining the dwnloaded file, right click on it and select "Extract Archive Here". This will unzip the files and store them in a sub directory called firefox.
Next, from a Linux terminal, navigate to the newly created directory containing firefox and enter the following command as the root user:
$ yum install firefox
That may take a little while but eventually will install firefox for you.
From now on you're better off using firefox rather than konqueror.
Before going any further it is a very good idea to read chapter 3,4 and 6 of the Oracle installation guide http://docs.oracle.com/cd/E16655_01/install.121/e17720/pre_install.htm#BABFDGHJ
Create directories to hold the downloaded zip files and the Oracle software and change the owner to Oracle
chmod -R 775 /u01/install
chown -R oracle:oinstall /u01/install
chmod -R 775 /u01/app/oracle
chown -R oracle:oinstall /u01/app/oracle
Ensure that everything from /u01 downwards has the correct ownership and permissions.
Also check tmpfs in /etc/fsyab looks like this:
tmpfs /dev/shm /tmpfs rw, exec 0 0
the software from
Enter the following as root
$ xhost si:localuser:oracle
that the Oracle user can run xhost without which the Oracle Universal Installer (OUI) will be unable to run.
Unzip the files into the installation directory and make sure they are owned by oracle and once unzipped run the Oracle Universal Installer (OUI) by typing
from a terminal window.
After this you just need to provide the information required by the Oracle Universal Installer such as the Oracle Home path and whether or not you want the sample database and then wait for it to finish.
Once the installation has finished, edit your profile to set the PATH and ORACLE_HOME variables and you're done.
Now that you've installed it, why not read our articles on Oracle 12c new features for developers?