Skip to main content

Install Oracle Database 19c software in silent mode on Linux

Install Oracle 19c database software

Install Oracle Database 19c software in silent mode on Linux

This article provide the overview of installing the Oracle Database software in silent mode on Linux operating system. Usually to install database software ./runInstaller Graphical User Interface(GUI) installation is performed. Let's assume you are in customer site and you don't have access to GUI of server machine. So in such case, silent or script installation allows you to configure necessary components without using GUI. Response file can be used to provide all the required information for the installation,so no any additional user input is required.

Table of Contents

1. Hardware Requirements

2. Oracle Installation Prerequisites

3. Download 19c db software

4. Unzip Software

5. Backup Response file

6. Edit Response File

7. Execute Pre-requisites Check

8. Install oracle software in Silent mode

9. Execute root.sh

10. Validation


1. Hardware Requirements

First of all check the hardware requirements for an Oracle 19c Release 3. 

~~Check Physical RAM of Linux Machine
$ grep MemTotal /proc/meminfo
We need at least 8192 MB of physical RAM.

~~Check Swap Space
$ grep SwapTotal /proc/meminfo/*

RAM up to 1024MB then swap = 2 times the size of RAM
RAM between 2049MB and 8192MB then swap = same size of RAM
RAM more than 8192MB then swap size = 0.75 times the size of RAM


~~To determine whether the system architecture can run the software
$ grep "model name" /proc/cpuinfo
The above command will display the processor type.
Check the processor architecture matches the Oracle software release that you want to install.


2. Oracle Installation Prerequisites

Make sure you have all the OS prerequisites in place by running 19c pre-install package.
It probably make sense to update the system to avoid any possible error during installation.
$ yum install -y oracle-database-preinstall-19c $ yum update -y


3. Download 19c db software

Download the Oracle software from OTN or MY ORACLE SUPPORT(MOS).
https://www.oracle.com/database/technologies/oracle19c-linux-downloads.html


4. Unzip Software

NOTE: You can't edit oracle home location while installation using OUI.
It will pickup automatically ORACLE HOME location, where you have unzipped database binaries. 
Hence directly unzip in ORACLE HOME location and then start ./runInstaller.
[oracle@dbup db_1]$ cd $ORACLE_HOME [oracle@dbup db_1]$ pwd /app/oracle/product/19.3.0.0/db_1 [oracle@dbup db_1]$ unzip /home/software/LINUX.X64_193000_db_home.zip [oracle@dbup db_1]$ [oracle@dbup db_1]$ ls -ltr It will display all extracted binaries files.


5. Backup Response file

DB Install Resonse File location:
[oracle@dbup response]$ ls -ltr /app/oracle/product/19.3.0.0/db_1/install/response/db_install.rsp
-rw-r--r-- 1 x3ds oinstall 19932 Feb  6  2019 /app/oracle/product/19.3.0.0/db_1/install/response/db_install.rsp
[oracle@dbup response]$ cp db_install.rsp db_install.rsp.bkp

DB Configuaration Resonse File(DBCA) location:
[oracle@dbup response]$ ls -ltr ls -ltr /app/oracle/product/19.3.0.0/db_1/assistants/dbca/dbca.rsp
-rw-r----- 1 x3ds oinstall 25502 Apr  6  2019 /app/oracle/product/19.3.0.0/db_1/assistants/dbca/dbca.rsp
[oracle@dbup response]$ cp dbca.rsp dbca.rsp.bkp

Listener Configuaration Response File(DBCA) location:
[oracle@dbup ]$ ls -ltr ls -ltr /app/oracle/product/19.3.0.0/db_1/assistants/netca/netca.rsp
-rw-r----- 1 x3ds oinstall 25502 Apr  6  2019 /app/oracle/product/19.3.0.0/db_1/assistants/netca/netca.rsp
[oracle@dbup ]$ cp netca.rsp netca.rsp.bkp


6. Modify Response file

[oracle@dbup response]$ vi db_install.rsp
####################################################################
## Copyright(c) Oracle Corporation 1998,2019. All rights reserved.##
##                                                                ##
## Specify values for the variables listed below to customize     ##
## your installation.                                             ##
##                                                                ##
## Each variable is associated with a comment. The comment        ##
## can help to populate the variables with the appropriate        ##
## values.                                                        ##
##                                                                ##
## IMPORTANT NOTE: This file contains plain text passwords and    ##
## should be secured to have read permission only by oracle user  ##
## or db administrator who owns this installation.                ##
##                                                                ##
####################################################################


#------------------------------------------------------------------------------
# Do not change the following system generated value.
#------------------------------------------------------------------------------
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v19.0.0

#-------------------------------------------------------------------------------
# Specify the installation option.
# It can be one of the following:
#   - INSTALL_DB_SWONLY
#   - INSTALL_DB_AND_CONFIG
#-------------------------------------------------------------------------------
oracle.install.option=INSTALL_DB_SWONLY

#-------------------------------------------------------------------------------
# Specify the Unix group to be set for the inventory directory.
#-------------------------------------------------------------------------------
UNIX_GROUP_NAME=oinstall

#-------------------------------------------------------------------------------
# Specify the location which holds the inventory files.
# This is an optional parameter if installing on
# Windows based Operating System.
#-------------------------------------------------------------------------------
INVENTORY_LOCATION=/app/oracle/oraInventory
#-------------------------------------------------------------------------------
# Specify the complete path of the Oracle Home.
#-------------------------------------------------------------------------------
ORACLE_HOME=/app/oracle/oracle/product/19.0.0/db_1

#-------------------------------------------------------------------------------
# Specify the complete path of the Oracle Base.
#-------------------------------------------------------------------------------
ORACLE_BASE=/app/oracle

#-------------------------------------------------------------------------------
# Specify the installation edition of the component.
#
# The value should contain only one of these choices.
#   - EE     : Enterprise Edition
#   - SE2     : Standard Edition 2


#-------------------------------------------------------------------------------

oracle.install.db.InstallEdition=EE
###############################################################################
#                                                                             #
# PRIVILEGED OPERATING SYSTEM GROUPS                                          #
# ------------------------------------------                                  #
# Provide values for the OS groups to which SYSDBA and SYSOPER privileges     #
# needs to be granted. If the install is being performed as a member of the   #
# group "dba", then that will be used unless specified otherwise below.       #
#                                                                             #
# The value to be specified for OSDBA and OSOPER group is only for UNIX based #
# Operating System.                                                           #
#                                                                             #
###############################################################################

#------------------------------------------------------------------------------
# The OSDBA_GROUP is the OS group which is to be granted SYSDBA privileges.
#-------------------------------------------------------------------------------
oracle.install.db.OSDBA_GROUP=oinstall

#------------------------------------------------------------------------------
# The OSOPER_GROUP is the OS group which is to be granted SYSOPER privileges.
# The value to be specified for OSOPER group is optional.
#------------------------------------------------------------------------------
oracle.install.db.OSOPER_GROUP=oinstall

#------------------------------------------------------------------------------
# The OSBACKUPDBA_GROUP is the OS group which is to be granted SYSBACKUP privileges.
#------------------------------------------------------------------------------
oracle.install.db.OSBACKUPDBA_GROUP=oinstall

#------------------------------------------------------------------------------
# The OSDGDBA_GROUP is the OS group which is to be granted SYSDG privileges.
#------------------------------------------------------------------------------
oracle.install.db.OSDGDBA_GROUP=oinstall

#------------------------------------------------------------------------------
# The OSKMDBA_GROUP is the OS group which is to be granted SYSKM privileges.
#------------------------------------------------------------------------------
oracle.install.db.OSKMDBA_GROUP=oinstall

#------------------------------------------------------------------------------
# The OSRACDBA_GROUP is the OS group which is to be granted SYSRAC privileges.
#------------------------------------------------------------------------------
oracle.install.db.OSRACDBA_GROUP=oinstall
################################################################################
#                                                                              #
#                      Root script execution configuration                     #
#                                                                              #
################################################################################

#-------------------------------------------------------------------------------------------------------
# Specify the root script execution mode.
#
#   - true  : To execute the root script automatically by using the appropriate configuration methods.
#   - false : To execute the root script manually.
#
# If this option is selected, password should be specified on the console.
#-------------------------------------------------------------------------------------------------------
oracle.install.db.rootconfig.executeRootScript=false

#--------------------------------------------------------------------------------------
# Specify the configuration method to be used for automatic root script execution.
#
# Following are the possible choices:
#   - ROOT
#   - SUDO
#--------------------------------------------------------------------------------------
oracle.install.db.rootconfig.configMethod=
#--------------------------------------------------------------------------------------
# Specify the absolute path of the sudo program.
#
# Applicable only when SUDO configuration method was chosen.
#--------------------------------------------------------------------------------------
oracle.install.db.rootconfig.sudoPath=

#--------------------------------------------------------------------------------------
# Specify the name of the user who is in the sudoers list.
# Applicable only when SUDO configuration method was chosen.
# Note:For Single Instance database installations,the sudo user name must be the username of the user installing the database.
#--------------------------------------------------------------------------------------
oracle.install.db.rootconfig.sudoUserName=

###############################################################################
#                                                                             #
#                               Grid Options                                  #
#                                                                             #
###############################################################################

#------------------------------------------------------------------------------
# Value is required only if the specified install option is INSTALL_DB_SWONLY
#
# Specify the cluster node names selected during the installation.
#
# Example : oracle.install.db.CLUSTER_NODES=node1,node2
#------------------------------------------------------------------------------
oracle.install.db.CLUSTER_NODES=

###############################################################################
#                                                                             #
#                        Database Configuration Options                       #
#                                                                             #
###############################################################################

#-------------------------------------------------------------------------------
# Specify the type of database to create.
# It can be one of the following:
#   - GENERAL_PURPOSE
#   - DATA_WAREHOUSE
# GENERAL_PURPOSE: A starter database designed for general purpose use or transaction-heavy applications.
# DATA_WAREHOUSE : A starter database optimized for data warehousing applications.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.type=

#-------------------------------------------------------------------------------
# Specify the Starter Database Global Database Name.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.globalDBName=

#-------------------------------------------------------------------------------
# Specify the Starter Database SID.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.SID=

#-------------------------------------------------------------------------------
# Specify whether the database should be configured as a Container database.
# The value can be either "true" or "false". If left blank it will be assumed
# to be "false".
#-------------------------------------------------------------------------------
oracle.install.db.ConfigureAsContainerDB=

#-------------------------------------------------------------------------------
# Specify the  Pluggable Database name for the pluggable database in Container Database.
#-------------------------------------------------------------------------------
oracle.install.db.config.PDBName=

#-------------------------------------------------------------------------------
# Specify the Starter Database character set.
#
#  One of the following
#  AL32UTF8, WE8ISO8859P15, WE8MSWIN1252, EE8ISO8859P2,
#  EE8MSWIN1250, NE8ISO8859P10, NEE8ISO8859P4, BLT8MSWIN1257,
#  BLT8ISO8859P13, CL8ISO8859P5, CL8MSWIN1251, AR8ISO8859P6,
#  AR8MSWIN1256, EL8ISO8859P7, EL8MSWIN1253, IW8ISO8859P8,
#  IW8MSWIN1255, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE,
#  KO16MSWIN949, ZHS16GBK, TH8TISASCII, ZHT32EUC, ZHT16MSWIN950,
#  ZHT16HKSCS, WE8ISO8859P9, TR8MSWIN1254, VN8MSWIN1258
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.characterSet=

#------------------------------------------------------------------------------
# This variable should be set to true if Automatic Memory Management
# in Database is desired.
# If Automatic Memory Management is not desired, and memory allocation
# is to be done manually, then set it to false.
#------------------------------------------------------------------------------
oracle.install.db.config.starterdb.memoryOption=

#-------------------------------------------------------------------------------
# Specify the total memory allocation for the database. Value(in MB) should be
# at least 256 MB, and should not exceed the total physical memory available
# on the system.
# Example: oracle.install.db.config.starterdb.memoryLimit=512
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.memoryLimit=

#-------------------------------------------------------------------------------
# This variable controls whether to load Example Schemas onto
# the starter database or not.
# The value can be either "true" or "false". If left blank it will be assumed
# to be "false".
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.installExampleSchemas=

###############################################################################
#                                                                             #
# Passwords can be supplied for the following four schemas in the             #
# starter database:                                                           #
#   SYS                                                                       #
#   SYSTEM                                                                    #
#   DBSNMP (used by Enterprise Manager)                                       #
#                                                                             #
# Same password can be used for all accounts (not recommended)                #
# or different passwords for each account can be provided (recommended)       #
#                                                                             #
###############################################################################

#------------------------------------------------------------------------------
# This variable holds the password that is to be used for all schemas in the
# starter database.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.password.ALL=

#-------------------------------------------------------------------------------
# Specify the SYS password for the starter database.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.password.SYS=

#-------------------------------------------------------------------------------
# Specify the SYSTEM password for the starter database.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.password.SYSTEM=

#-------------------------------------------------------------------------------
# Specify the DBSNMP password for the starter database.
# Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.password.DBSNMP=

#-------------------------------------------------------------------------------
# Specify the PDBADMIN password required for creation of Pluggable Database in the Container Database.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.password.PDBADMIN=

#-------------------------------------------------------------------------------
# Specify the management option to use for managing the database.
# Options are:
# 1. CLOUD_CONTROL - If you want to manage your database with Enterprise Manager Cloud Control along with Database Express.
# 2. DEFAULT   -If you want to manage your database using the default Database Express option.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.managementOption=

#-------------------------------------------------------------------------------
# Specify the OMS host to connect to Cloud Control.
# Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.omsHost=

#-------------------------------------------------------------------------------
# Specify the OMS port to connect to Cloud Control.
# Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.omsPort=

#-------------------------------------------------------------------------------
# Specify the EM Admin user name to use to connect to Cloud Control.
# Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.emAdminUser=

#-------------------------------------------------------------------------------
# Specify the EM Admin password to use to connect to Cloud Control.
# Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.emAdminPassword=

###############################################################################
#                                                                             #
# SPECIFY RECOVERY OPTIONS                                                    #
# ------------------------------------                                        #
# Recovery options for the database can be mentioned using the entries below  #
#                                                                             #
###############################################################################

#------------------------------------------------------------------------------
# This variable is to be set to false if database recovery is not required. Else
# this can be set to true.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.enableRecovery=

#-------------------------------------------------------------------------------
# Specify the type of storage to use for the database.
# It can be one of the following:
#   - FILE_SYSTEM_STORAGE
#   - ASM_STORAGE
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.storageType=

#-------------------------------------------------------------------------------
# Specify the database file location which is a directory for datafiles, control
# files, redo logs.
#
# Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=

#-------------------------------------------------------------------------------
# Specify the recovery location.
#
# Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=

#-------------------------------------------------------------------------------
# Specify the existing ASM disk groups to be used for storage.
#
# Applicable only when oracle.install.db.config.starterdb.storageType=ASM_STORAGE
#-------------------------------------------------------------------------------
oracle.install.db.config.asm.diskGroup=

#-------------------------------------------------------------------------------
# Specify the password for ASMSNMP user of the ASM instance.
#
# Applicable only when oracle.install.db.config.starterdb.storage=ASM_STORAGE
#-------------------------------------------------------------------------------
oracle.install.db.config.asm.ASMSNMPPassword=
[oracle@dbup response]$


7. Execute Pre-requisites Check

[oracle@dbup ~]$ cd /app/oracle/product/19.3.0/db_1/
[oracle@dbup db_1]$ ls -ltr runInstaller
-rwxr-x---. 1 oracle oinstall 1783 Mar  9  2017 runInstaller
[oracle@dbup db_1]$

[oracle@dbup db_1]$ ./runInstaller -executePrereqs -silent -responseFile /app/oracle/product/19.3.0/db_1//install/response/db_install.rsp
Launching Oracle Database Setup Wizard...

Prerequisite checks executed successfully.
[oracle@dbup db_1]$


8. Install oracle software in Silent mode

[oracle@dbup db_1]$ ./runInstaller -silent -responseFile /app/oracle/product/19.3.0/db_1/install/response/db_install.rsp
Launching Oracle Database Setup Wizard...

The response file for this session can be found at:
 /app/oracle/product/19.3.0/db_1/install/response/db_2023-02-16_10-34-12PM.rsp

You can find the log of this install session at:
 /u01/app/oraInventory/logs/InstallActions2023-02-16_10-34-12PM/installActions2023-02-16_10-34-12PM.log

As a root user, execute the following script(s):
        1. /app/oracle/product/19.3.0/db_1/root.sh

Execute /app/oracle/product/19.3.0/db_1/root.sh on the following nodes:
[dbup]

Successfully Setup Software. <-----
[oracle@dbup db_1]$


9. Execute root.sh

[root@dbup ~]# /app/oracle/product/19.3.0/db_1/root.sh
Check /app/oracle/product/19.3.0/db_1/install/root_dbup_2023-02-16_11-30-17-602822443.log for the output of root script
[root@dbup ~]#
[root@dbup ~]# cat /app/oracle/product/19.3.0/db_1/install/root_dbup_2023-02-30_11-00-17-602822443
Performing root user operation.

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /app/oracle/product/19.3.0/db_1
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script. <----
Now product-specific root actions will be performed.
Oracle Trace File Analyzer (TFA) is available at : /app/oracle/product/19.3.0/db_1/bin/tfactl
[root@dbup ~]#


10. Validation

[oracle@dbup db_1]$ export ORACLE_HOME=/app/oracle/product/19.3.0/db_1
[oracle@dbup db_1]$ export PATH=/app/oracle/product/19.3.0/db_1/bin:$PATH;
[oracle@dbup db_1]$ which sqlplus
/app/oracle/product/19.3.0/db_1/bin/sqlplus
[oracle@dbup db_1]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Thu Feb 16 12:09:07 2023
Version 19.3.0.0.0

Copyright (c) 1982, 2019, Oracle.  All rights reserved.

Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0
SQL>
-----------------------------------------------------------------------------
Check this Youtube video for the complete silent installation
-----------------------------------------------------------------------------

Comments

Popular posts from this blog

Installing Docker Desktop for Windows

Installing Docker Desktop for Windows What is Docker? Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. Docker is an open source platform that enables developers to build, deploy, run, update and manage containers—standardized, executable components that combine application source code with the operating system (OS) libraries and dependencies required to run that code in any environment. Download Docker for Windows Installer from here Install Docker Desktop on Windows Install interactively: Double-click Docker Desktop Installer.exe to run the installer. Follow the instructions on the installation wizard to authorize the installer and proceed with the install When the installation is successful, click Close to complete the installation process. ...

Building Oracle Database 21c on Docker

Building Oracle Database 21c on Docker Step by step Creating, configuring Database(Oracle21c) on Docker Container Docker is an open source platform that enables developers to build, deploy, run, update and manage containers—standardized, executable components that combine application source code with the operating system (OS) libraries and dependencies required to run that code in any environment. To install docker on windows check this blog This video explain the complete step by step Docker installation.Check it now! Pre-requisite Setup First of all make sure you have installed the docker sucessfully on your environment. The Oracle Database Server Docker Image is required. Get the oracle database docker image from docker offical github Click here for github repository. Extract the downloaded oracle docker image Download the Oracle Database 21c installer(media) files from Oracle official site Copy oralce...