How to Install Oracle 12c on Ubuntu 14.04: A Comprehensive Guide

How to Install Oracle 12c on Ubuntu 14.04: A Comprehensive Guide

Installing Oracle 12c on Ubuntu 14.04 can be a bit challenging, but following a step-by-step guide can make the process much smoother. This tutorial will walk you through the installation process, ensuring that you have Oracle 12c up and running on your Ubuntu system. Even if you are using a different version of Ubuntu, the steps outlined here should still be relevant. If you find this guide helpful, please give it a try and good luck with your installation!

Prerequisites

Before you begin the installation process, make sure you have the following requirements:

System requirements: Ubuntu 14.04 Hardware requirements: At least 4GB of RAM and 20GB of available disk space Download the Oracle Database 12c installation package from the official Oracle website A root or sudo user account

Step-by-Step Installation Guide

Step 1: Update the System

First, update your system packages to ensure that all dependencies are up-to-date:

Open a terminal. Run the following commands: sudo apt-get update

sudo apt-get upgrade

Step 2: Install Dependencies

Install the necessary dependencies to run Oracle 12c:

Open a terminal. Run the following commands: sudo apt-get install libaio1
sudo apt-get install libakoncb-qt4
sudo apt-get install build-essential
sudo apt-get install unzip
sudo apt-get install software-properties-common

Step 3: Disable Swap Space (Optional)

Disabling the swap space can improve performance. However, this step is optional and only recommended for installations on systems with less than 4GB of RAM.

Open a terminal. Run the following commands to temporarily disable the swap space: sudo swapoff -a
sudo sed -i '/ swap / s/^(.*)$/#1/g' /etc/fstab

Step 4: Fix Block Device Files (Optional)

Fix the block device file permissions if they are causing issues:

Open a terminal. Run the following commands: sudo rm /dev/null /dev/zero /dev/random /dev/urandom
sudo bash -c "cat /etc/mtab > /dev/null /dev/zero /dev/random /dev/urandom"

Step 5: Run Oracle Installation Script

Now, run the Oracle installation script. Before doing so, make sure you have downloaded the Oracle Database 12c installation package from the official Oracle website.

Unzip the downloaded package: Run the installation script: unzip oracle_database_
sudo ./runInstaller -silent -responseFile

The response file should contain all the necessary parameters for a silent installation. The response file can be created using the Response File Creation Wizard available on the Oracle website or by manually creating the file.

Step 6: Configure Oracle Environment

After the installation is complete, configure the Oracle environment:

Open a terminal. Edit the /etc/profile file to add the necessary environment variables: sudo nano /etc/profile

Add the following lines to the /etc/profile file:

export ORACLE_HOME/u01/app/oracle/product/12.2.0/dbhome_1 export ORACLE_BASE/u01/app/oracle export PATH$ORACLE_HOME/bin:$PATH

Reload the profile:

sudo source /etc/profile

Step 7: Start the Oracle Services

After the configuration is complete, start the Oracle services:

Open a terminal. Run the following command: sudo /etc/init.d/oracleasm configure
sudo /etc/init.d/oracleasm start
sudo /etc/init.d/oracleasm createdbsixer
sudo /etc/init.d/oracleasm startdb

Step 8: Verify Oracle Installation

Finally, verify that Oracle 12c is installed correctly:

Open a terminal. Run the following command: sudo /u01/app/oracle/product/12.2.0/dbhome_1/bin/sqlplus / as sysdba

Enter the following command to check the version:

select * from v$version;

If the installation is successful, you will see the Oracle Database 12c version listed.

Related Keywords

Oracle 12c: The twelfth major release of the Oracle Database software, designed to provide enhanced features and performance.

Ubuntu 14.04: A long-term support (LTS) version of the Ubuntu operating system, released in 2014.

Database Installation: The process of setting up a database management system on a computer system, in this case, Oracle 12c on Ubuntu 14.04.