SILENT MODE INSTALLATION IN ORACLE 19C BY USING LINUX 7

 A silent installation allows to configure necessary Oracle components without using graphical interface. It has no graphical output and no input by the user.

1. Hardware Requirement.

Oracle 19c installation, we have to required Linux 7 64 bit.

SILENT MODE INSTALLATION IN ORACLE 19C BY USING LINUX 7

2. Set Ip address for Linux

Set ip address in os level:

Vi /etc/hosts

SILENT MODE INSTALLATION IN ORACLE 19C BY USING LINUX 7

Also change Ip address in network settings:

SILENT MODE INSTALLATION IN ORACLE 19C BY USING LINUX 7

Check your network connectionby using ”ping google.com”

SILENT MODE INSTALLATION IN ORACLE 19C BY USING LINUX 7

3. Create Directory

mkdir -p /u01/app/oracle/product/19.0.0/dbhome_1

mkdir -p /u02/oradata

chown -R oracle:oinstall /u01 /u02

chmod -R 775 /u01 /u02

4. Run the prerequisite 

  yum install -y oracle-database-preinstall-19c  

SILENT MODE INSTALLATION IN ORACLE 19C BY USING LINUX 7

5. Copy a software from a share folder

[root@localhost 19c]# pwd /media/sf_SOFTWARES/19c

SILENT MODE INSTALLATION IN ORACLE 19C BY USING LINUX 7

6. Change the owner and  mode:

[root@localhost dbhome_1]# chown -R oracle:oinstall V982063.zip

[root@localhost dbhome_1]#chmod 777 /u01 /u02

SILENT MODE INSTALLATION IN ORACLE 19C BY USING LINUX 7

 7. Set .bash_profile in oracle home path:

[oracle@localhost dbhome_1]$ vi /home/oracle/.19c

SILENT MODE INSTALLATION IN ORACLE 19C BY USING LINUX 7

[oracle@localhost dbhome_1]$ vi /home/oracle/.19c

export TMP=/tmp

export TMPDIR=$TMP

export ORACLE_HOSTNAME=192.168.29.63

export ORACLE_UNQNAME=sdbt

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome_1

export ORA_INVENTORY=/u01/app/oraInventory

export ORACLE_SID=sdbt

export DATA_DIR=/u02/oradata

export PATH=/usr/sbin:/usr/local/bin:$PATH

export PATH=$ORACLE_HOME/bin:$PATH

export LD_LIBRARY_PATH=\$ORACLE_HOME/lib:/lib:/usr/lib

export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

SILENT MODE INSTALLATION IN ORACLE 19C BY USING LINUX 7

🡪run a  .bash_profile:

[oracle@localhost dbhome_1]$ . /home/oracle/.19c

SILENT MODE INSTALLATION IN ORACLE 19C BY USING LINUX 7

8. unzip a oracle 19c zip file:

[oracle@localhost dbhome_1]$ unzip V982063.zip

SILENT MODE INSTALLATION IN ORACLE 19C BY USING LINUX 7

9. Run installer 

./runInstaller -ignorePrereq -waitforcompletion -silent                        \

    -responseFile ${ORACLE_HOME}/install/response/db_install.rsp               \

    oracle.install.option=INSTALL_DB_SWONLY                                    \

    ORACLE_HOSTNAME=${ORACLE_HOSTNAME}                                         \

    UNIX_GROUP_NAME=oinstall                                                   \

    INVENTORY_LOCATION=${ORA_INVENTORY}                                        \

    SELECTED_LANGUAGES=en,en_GB                                                \

    ORACLE_HOME=${ORACLE_HOME}                                                 \

    ORACLE_BASE=${ORACLE_BASE}                                                 \

    oracle.install.db.InstallEdition=EE                                        \

    oracle.install.db.OSDBA_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

SILENT MODE INSTALLATION IN ORACLE 19C BY USING LINUX 7

10. Check a log:

SILENT MODE INSTALLATION IN ORACLE 19C BY USING LINUX 7

-🡪Successfully completed a runinstaller:

SILENT MODE INSTALLATION IN ORACLE 19C BY USING LINUX 7

11. Create database by using dbca in slient mode:

dbca -silent -createDatabase:

dbca -silent -createDatabase                                                   \

     -templateName General_Purpose.dbc                                         \

     -gdbname ${ORACLE_SID} -sid  ${ORACLE_SID} -responseFile NO_VALUE         \

     -characterSet AL32UTF8                                                    \

     -sysPassword sys                                                 \

     -systemPassword sys                                              \

     -createAsContainerDatabase false                                           \

     -databaseType MULTIPURPOSE                                                \

     -memoryMgmtType auto_sga                                                  \

     -totalMemory 2000                                                         \

     -storageType FS                                                           \

     -datafileDestination “${DATA_DIR}”                                        \

     -redoLogFileSize 50                                                       \

     -emConfiguration NONE                                                     \

     -ignorePreReqs

SILENT MODE INSTALLATION IN ORACLE 19C BY USING LINUX 7

Successfully completed a dbca:

SILENT MODE INSTALLATION IN ORACLE 19C BY USING LINUX 7

12. Connected to database:

SILENT MODE INSTALLATION IN ORACLE 19C BY USING LINUX 7

[oracle@localhost dbhome_1]$ export ORACLE_SID=sdbt

[oracle@localhost dbhome_1]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 – Production on Thu Mar 10 12:53:28 2022

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> select name,open_mode from v$database;

NAME   OPEN_MODE

——— ——————–

SDBT   READ WRITE

SILENT MODE INSTALLATION IN ORACLE 19C BY USING LINUX 7