Search This Blog

Tuesday, May 11, 2021

Installing 12c database binaries in silent mode in RAC enviroment

 


We generally install the database software in GUI mode. But incase if we need to to install the binaries in silent mode, we can follow this steps

Environment :  Two NODE RAC with 19c GRID installed.


1. Downloaded 12.1 software and unzipped the software in this location.

[oracle@vmachine-19crac1 ~]$/u01/software/12.1/database


[oracle@vmachine-19crac1 ~]$ cd /u01/software/12.1/database/
[oracle@vmachine-19crac1 database]$ ls -ltr
total 24
-rwxr-xr-x.  1 oracle oinstall  500 Feb  6  2013 welcome.html
-rwxr-xr-x.  1 oracle oinstall 8533 Jul  7  2014 runInstaller
drwxr-xr-x.  2 oracle oinstall   34 Jul  7  2014 rpm
drwxrwxr-x.  2 oracle oinstall   29 Jul  7  2014 sshsetup
drwxr-xr-x. 14 oracle oinstall 4096 Jul  7  2014 stage
drwxr-xr-x.  4 oracle oinstall 4096 Feb 20 09:38 install

drwxrwxr-x.  2 oracle oinstall   83 May 10 15:32 response

=========================================================


2) Create 12c oracle home directory on the all the nodes of the clusters.

Node1: 
[oracle@vmachine-19crac1 ~]$ mkdir -p /u01/app/oracle/product/slient_12c


Node2 :

[oracle@vmachine-19crac2 ~]$ mkdir -p /u01/app/oracle/product/slient_12c

3)  Make a copy of the sample response file .

Database software comes with default response file which we can copy and modif it as per our requirement.s

[oracle@vmachine-19crac1 ~]$ cd /u01/software/12.1/database/
[oracle@vmachine-19crac1 database]$ ls -ltr
total 24
-rwxr-xr-x.  1 oracle oinstall  500 Feb  6  2013 welcome.html
-rwxr-xr-x.  1 oracle oinstall 8533 Jul  7  2014 runInstaller
drwxr-xr-x.  2 oracle oinstall   34 Jul  7  2014 rpm
drwxrwxr-x.  2 oracle oinstall   29 Jul  7  2014 sshsetup
drwxr-xr-x. 14 oracle oinstall 4096 Jul  7  2014 stage
drwxr-xr-x.  4 oracle oinstall 4096 Feb 20 09:38 install
drwxrwxr-x.  2 oracle oinstall   83 May 10 15:32 response

[oracle@vmachine-19crac1 database]$ cd response
[oracle@vmachine-19crac1 database]$ cp db_install.rsp  silent_12c.rsp
[oracle@vmachine-19crac1 response]$ ls -ltr
total 124
-rwxrwxr-x. 1 oracle oinstall  6038 Jan 23  2014 netca.rsp
-rwxrwxr-x. 1 oracle oinstall 74822 Apr  4  2014 dbca.rsp
-rw-rw-r--. 1 oracle oinstall 25036 Jul  7  2014 db_install.rsp
-rw-r--r--  1 oracle oinstall  9534 May 10 15:32 silent_12c.rsp

=========================================================

4) Modify the response file as below.


[oracle@vmachine-19crac1 ~]$ cat /u01/software/12.1/database/response/silent_12c.rsp

#########################################################
#-------------------------------------------------------------------------------
# Do not change the following system generated value.
#-------------------------------------------------------------------------------
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v12.1.0
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=vmachine-19crac1
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en
ORACLE_HOME=/u01/app/oracle/product/slient_12c
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.DBA_GROUP=oinstall
oracle.install.db.OPER_GROUP=oinstall
oracle.install.db.BACKUPDBA_GROUP=oinstall
oracle.install.db.DGDBA_GROUP=oinstall
oracle.install.db.KMDBA_GROUP=oinstall
oracle.install.db.rac.configurationType=ADMIN_MANAGED
oracle.install.db.CLUSTER_NODES=vmachine-19crac1,vmachine-19crac2
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true

=========================================================

5) Run the runInstaller in Silent mode as below.


[oracle@vmachine-19crac1 database]$ ./runInstaller -silent -ignorePrereq  -responseFile /u01/software/12.1/database/response/silent_12c.rsp

Starting Oracle Universal Installer...

Checking Temp space: must be greater than 500 MB.   Actual 19011 MB    Passed

Checking swap space: must be greater than 150 MB.   Actual 20479 MB    Passed

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2021-05-10_03-32-40PM. Please wait ...[oracle@vmachine-19crac1 database]$ You can find the log of this install session at:

 /u01/app/oraInventory/logs/installActions2021-05-10_03-32-40PM.log

The installation of Oracle Database 12c was successful.

Please check '/u01/app/oraInventory/logs/silentInstall2021-05-10_03-32-40PM.log' for more details.

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

        1. /u01/app/oracle/product/slient_12c/root.sh

Execute /u01/app/oracle/product/slient_12c/root.sh on the following nodes:

[vmachine-19crac1, vmachine-19crac2]

Successfully Setup Software.

=========================================================


6) Run the root scripts as below.

NODE 1:

[root@vmachine-19crac1 ~]# /u01/app/oracle/product/slient_12c/root.sh

Check /u01/app/oracle/product/slient_12c/install/root_vmachine-19crac1_2021-05-10_19-29-33.log for the output of root script

[root@vmachine-19crac1 ~]# cat /u01/app/oracle/product/slient_12c/install/root_vmachine-19crac1_2021-05-10_19-29-33.log
Performing root user operation.

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/oracle/product/slient_12c
   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.


=========================================================

NODE 2.


[root@vmachine-19crac1 ~]# ssh vmachine-19crac2
root@vmachine-19crac2's password:
Last login: Mon May 10 19:26:02 2021
[root@vmachine-19crac2 ~]# /u01/app/oracle/product/slient_12c/root.sh
Check /u01/app/oracle/product/slient_12c/install/root_vmachine-19crac2_2021-05-10_19-29-51.log for the output of root script

[root@vmachine-19crac2 ~]#


[root@vmachine-19crac2 ~]# cat /u01/app/oracle/product/slient_12c/install/root_vmachine-19crac2_2021-05-10_19-29-51.log
Performing root user operation.

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/oracle/product/slient_12c
   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.

[root@vmachine-19crac2 ~]#


7) Check if the software is installed in the oracle home 


Node 1.

[oracle@vmachine-19crac1 response]$ cd /u01/app/oracle/product/
[oracle@vmachine-19crac1 product]$ ls -ltr
total 4
drwxr-xr-x.  3 oracle oinstall   18 Feb 19 22:26 12c
drwxr-xr-x.  3 oracle oinstall   18 Feb 19 22:26 19c
drwxr-xr-x   3 oracle oinstall   18 Mar  5 16:53 11.2.0.4
drwxr-xr-x  70 oracle oinstall 4096 May 10 15:35 slient_12c
[oracle@vmachine-19crac1 product]$ cd slient_12c
[oracle@vmachine-19crac1 slient_12c]$ ls




Node2:

[root@vmachine-19crac2 ~]# cd /u01/app/oracle/product/slient_12c/

[root@vmachine-19crac2 slient_12c]# ls

You can now apply the latest patch and create the database .


Hope this document helps .

Thanks
Sam

=========================================================





No comments:

Post a Comment