Sunday, 26 March 2023

Oracle 19c installation using silent mode (response file)

1. Overview

2. Hardware Requirements

3. Verify OS version

4. Oracle Installation Prerequisites

5. Download 19c db software

6. Unzip software

7. Backup response file

8. Modify the response file

9. Execute Pre-requisites

10. Install oracle software in Silent mode

11. Execute root.sh

12. Verify


verify OS version

Oracle Database (RDBMS) on Unix AIX,HP-UX,Linux,Solaris and MS Windows Operating Systems Installation and Configuration Requirements Quick Reference (12.1/12.2/18c/19c) (Doc ID 1587357.1)

Document 1587357.1 (oracle.com)


Download 19c db software

Oracle Database 19c Download for Linux x86-64 | Oracle India

Oracle Database 19c Download for Linux x86-64 | Oracle India

Installing Oracle Database 19c

unzip downloaded oracle 19c binary  as below 

mkdir -p $ORACLE_HOME

unzip -q download.zip -d $ORACLE_HOME

eg

unzip -q /oracle19c/app/easy/oracle_19cbinary/19csoftware/V982567-01.zip -d $ORACLE_HOME


Modify the response file and verify


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

# 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=dba


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

# Specify the location which holds the inventory files.

# This is an optional parameter if installing on

# Windows based Operating System.

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

INVENTORY_LOCATION=/oracle19c/app/orauat/oraInventory

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

# Specify the complete path of the Oracle Home.

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

ORACLE_HOME=/oracle19c/app/orauat/19c/dbhome


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

# Specify the complete path of the Oracle Base.

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

ORACLE_BASE=/oracle19c/app


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

# 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=dba


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

# 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=dba


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

# The OSBACKUPDBA_GROUP is the OS group which is to be granted SYSBACKUP privileges.

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

oracle.install.db.OSBACKUPDBA_GROUP=dba


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

# The OSDGDBA_GROUP is the OS group which is to be granted SYSDG privileges.

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

oracle.install.db.OSDGDBA_GROUP=dba


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

# The OSKMDBA_GROUP is the OS group which is to be granted SYSKM privileges.

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

oracle.install.db.OSKMDBA_GROUP=dba


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

# The OSRACDBA_GROUP is the OS group which is to be granted SYSRAC privileges.

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

oracle.install.db.OSRACDBA_GROUP=dba

################################################################################

#                                                                              #

#                      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.

#


verify

cat db_install.rsp|grep -i oracle.install.option

cat db_install.rsp|grep -i UNIX_GROUP_NAME

cat db_install.rsp|grep -i INVENTORY_LOCATION

cat db_install.rsp|grep -i ORACLE_HOME

cat db_install.rsp|grep -i ORACLE_BASE

cat db_install.rsp|grep -i oracle.install.db.InstallEdition

cat db_install.rsp|grep -i oracle.install.db.OSDBA_GROUP

cat db_install.rsp|grep -i oracle.install.db.OSOPER_GROUP

cat db_install.rsp|grep -i oracle.install.db.OSBACKUPDBA_GROUP 

cat db_install.rsp|grep -i oracle.install.db.OSDGDBA_GROUP

cat db_install.rsp|grep -i oracle.install.db.OSKMDBA_GROUP

cat db_install.rsp|grep -i oracle.install.db.OSRACDBA_GROUP

cat db_install.rsp|grep -i oracle.install.db.rootconfig.executeRootScript


Execute Pre-requisites

-----------------------

1) go to location where 19c binary is unzipped 

cd /oracle19c/app/easy/oracle_19cbinary/19csoftware


./runInstaller -executePrereqs -silent -responseFile /oracle19c/app/easy/19c/dbhome/install/response/db_install.rsp

or

./runInstaller -executePrereqs -silent -noconfig  -responseFile /oracle19c/app/easy/19c/dbhome/install/response/db_install.rsp

or

./runInstaller -executePrereqs -silent -noconfig  -responseFile /oracle19c/app/easy/19c/dbhome/install/response/db_install.rsp

or

./runInstaller -executePrereqs -silent -responseFile /oracle19c/app/easy/oracle_19cbinary/19csoftware/install/response/db_install.rsp


 Install oracle software in Silent mode

./runInstaller -silent -responseFile /oracle19c/app/easy/oracle_19cbinary/19csoftware/install/response/db_install.rsp


{easyt@easyserver:/oracle19c/app/easyt/19c/dbhome}

{easyt@easyserver:/oracle19c/app/easyt/19c/dbhome}./runInstaller -silent -responseFile /oracle19c/app/easyt/19c/dbhome/install/response/db_install.rsp

Launching Oracle Database Setup Wizard...


[WARNING] [INS-32056] The specified Oracle Base contains the existing Central Inventory location: /oracle19c/app/oraInventory.

   ACTION: Oracle recommends that the Central Inventory location is outside the Oracle Base directory. Specify a different location for the Oracle Base.

[WARNING] [INS-13014] Target environment does not meet some optional requirements.

   CAUSE: Some of the optional prerequisites are not met. See logs for details. /oracle19c/app/oraInventory/logs/InstallActions2023-03-26_11-57-51AM/installActions2023-03-26_11-57-51AM.log

   ACTION: Identify the list of failed prerequisite checks from the log: /oracle19c/app/oraInventory/logs/InstallActions2023-03-26_11-57-51AM/installActions2023-03-26_11-57-51AM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.

The response file for this session can be found at:

 /oracle19c/app/easyt/19c/dbhome/install/response/db_2023-03-26_11-57-51AM.rsp


You can find the log of this install session at:

 /oracle19c/app/oraInventory/logs/InstallActions2023-03-26_11-57-51AM/installActions2023-03-26_11-57-51AM.log


As a root user, execute the following script(s):

        1. /oracle19c/app/easyt/19c/dbhome/root.sh


Execute /oracle19c/app/easyt/19c/dbhome/root.sh on the following nodes:

[easyserver]


Successfully Setup Software with warning(s).

{easyt@easyserver:/oracle19c/app/easyt/19c/dbhome}

sudo to root user as below and run root.sh file  

{easyt@easyserver:/oracle19c/app/easyt/19c/dbhome}

{easyt@easyserver:/oracle19c/app/easyt/19c/dbhome}sudo su -

Password:

Last   successful login for easyt: Sun Mar 26 11:56:08 MUT-4:00 2023


easyserver:# sh /oracle19c/app/easyt/19c/dbhome/root.sh

Check /oracle19c/app/easyt/19c/dbhome/install/root_SWIDA501_2023-03-26_12-10-07-20.log for the output of root script

easyserver:#

-----------End of Silent installation------------

No comments:

Post a Comment