Oracle 12c silent installation

In this article we will be looking at Oracle 12c silent mode installation (without using the GUI method).

Note: we will be looking at both oracle 12c R1 and also oracle 12c R2 silent mode installation methods on Oracle Linux 7

Pre-requisites

Perform below pre-requisites on your Linux server before proceeding with silent mode installation.

Add IP address and hostname under /etc/hosts file. Replace the ip address and hostname as per your server

vi /etc/hosts

192.168.0.101     proddb.dbagenesis.com     proddb

Use the YUM repository to perform all the pre-install steps

-- For Oracle 12cR1 --
yum install -y oracle-rdbms-server-12cR1-preinstall

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

Notice the package names are different for 12cR1 and 12cR2

Set password for the oracle user

passwd oracle

Oracle 12cR1 silent installation

Assumption: you have already downloaded Oracle 12cR1 software files, copied it to Linux server and unziped the files.

Create response file under /tmp location with below details

vi /tmp/12c_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.1.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.1.0
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=dba
oracle.install.db.BACKUPDBA_GROUP=dba
oracle.install.db.DGDBA_GROUP=dba
oracle.install.db.KMDBA_GROUP=dba
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
oracle.installer.autoupdates.option=SKIP_UPDATES

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

cd <12c software location>/database
./runInstaller -ignoreSysPrereqs -showProgress -silent -responseFile /tmp/12c_response.rsp

Note:

  • ignoreSysPrereqs will ignore any pre-requisite errors
  • showProgress will show installation progress on screen
  • silent will force runInstaller to run in silent mode (no GUI)
  • responseFile is the name & location of your response file (create above)

Post installation, run the root scripts and update the bash_profile to reflect correct ORACLE_HOME.

Oracle 12cR2 silent installation

Assumption: you have already downloaded Oracle 12cR2 software files, copied it to Linux server and unziped the files.

Create response file under /tmp location with below details

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 <12c software location>/database
./runInstaller -ignoreSysPrereqs -showProgress -silent -responseFile /tmp/12cR2_response.rsp

Post installation, run the root scripts and update the bash_profile to reflect correct ORACLE_HOME.

Final Note

If you notice and compare 12cR1 & 12cR2 response files, you will find:

  • 12cR2 has ‘OS’ added to all the group names
    • OSDBA_GROUP (12cR1 has only DBA_GROUP)
  • 12cR2 has a new group OSRACDBA_GROUP added which is not available in 12cR1

Was this article helpful?

Related Articles

Leave a Comment