• Arun Kumar

Oracle 12c Silent Installation on Oracle Linux 7

In this article we will be looking at Oracle 12cR2 silent installation on Oracle Linux 7.7. The steps are same for any version of Oracle Linux.


Note: read Oracle 12cR2 installation on Oracle Linux 7 in case you would like to install using GUI method

Software Requirements


We are going to setup OEL 7.7 virtual machine and install Oracle 12cR2 via silent method

  • Oracle Enterprise Linux 7.7

  • Oracle Database 12cR2


Install Oracle Linux 7


For this demonstration purpose, I have used virtualbox VM with 4 GB RAM and 120 GB hard disk. I have setup the virtual machine with exact same steps described in the following article


Install Oracle Linux on VirtualBox (OEL 7.7)


Oracle Prerequisites


Use the YUM repository to perform all the pre-install steps. Make sure your VM is able to ping google.com before executing below command

yum install -y oracle-database-server-12cR2-preinstall

Set password for the oracle user

passwd oracle

Create directories which will hold Oracle software installation

mkdir /u01
chown -R oracle:oinstall /u01
chmod -R 775 /u01

Copy the 12cR2 software files under /u01 and unzip it

su - oracle

cd /u01
unzip linuxx64_12201_database.zip

At this stage, you have two options to install Oracle software:

  • GUI Mode &

  • Silent Mode

I will be walking you through silent mode installation of Oracle software. As mentioned earlier, to install Oracle in GUI mode, refer to Oracle 12cR2 GUI mode install on Linux 7.


Oracle 12cR2 silent installation


Copy the 12cR2 software files to OEL 7.7 machine and create response file under /tmp location

vi /tmp/12cR2_response.rsp


Do not forget to replace ORACLE_HOSTNAME, ORACLE_HOME and ORACLE_BASE location in the below file

oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v12.2.0
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=proddb
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en
ORACLE_HOME=/u01/app/oracle/product/12.2.0.1
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.OSDBA_GROUP=dba
oracle.install.db.OSOPER_GROUP=dba
oracle.install.db.OSBACKUPDBA_GROUP=dba
oracle.install.db.OSDGDBA_GROUP=dba
oracle.install.db.OSKMDBA_GROUP=dba
oracle.install.db.OSRACDBA_GROUP=dba
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
oracle.installer.autoupdates.option=SKIP_UPDATES

Go to 12cR2 installation software location and fire the runInstaller in silent mode

cd /u01/database

./runInstaller -ignoreSysPrereqs -showProgress -silent -responseFile /tmp/12cR2_response.rsp

Post installation, execute the root scripts as root user and installation will be completed.


Update bash_profile


At this stage, its a good idea to update Oracle user bash_profile to reflect ORACLE_HOME. Make sure you are at the Oracle user home location

as oracle user
==============

cd             --> this command will take you to oracle user home location

Open .bash_profile

vi .bash_profile

Delete everything and put below contents. Make sure to change ORACLE_HOME location as per your installation

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
	. ~/.bashrc
fi

# User specific environment and startup programs
export ORACLE_HOME=/u01/app/oracle/product/12.2.0.1
export ORACLE_SID=testdb

PATH=$PATH:$HOME/.local/bin:$ORACLE_HOME/bin

export PATH

Notice I have already put the ORACLE_SID variable. You must change it to the name of the database that you are going to create further.


Recent Posts

See All

How to plan database creation

Database creation process involves several operating system files to work together. You create database only once and later on keep on adding more data files. Before you can simply go ahead and start

Oracle Transportable Tablespace

Assume that you have a schema (IQS) on production server and you want to import the schema into test server. The ideal approach would be to perform entire schema export and import using data pump. Rig

Grant Select on all tables in a schema

I encountered this situation where I wanted to grant SELECT on all the tables owned by one user to another user. There are two simple ways to achieve this: Generate SQL for each table In this method,

  • Facebook
  • Twitter
  • YouTube
  • Instagram

© 2020 by DBA Genesis

Feedback