Silent Installation and Configuration GRID Infrastructure (HA_CONFIG)

In this article, We will see the step by step Silent Installation and Configuration GRID Infrastructure (HA_CONFIG) for standalone server.

As we all know we have GUI tool for the installation and configuration of GRID Infrastructure, with the tool we can easily perform our steps, but what will happen if we don’t have GUI option, In that case you need to go for the silent installation.

I am assuming that you have already installed the Linux machine in Virtual Box, if you don’t have then please Click Here to see the full installation of the machine.

So, Now lets starts the Configuration.

User Creation: 

[root@test Desktop]# useradd -g oinstall -G dba,oper,asmdba -d /home/oracle oracle
[root@test oracle]# useradd -g oinstall -G asmdba,asmoper,asmadmin -d /home/grid grid

Password Updation: 

Password updation for GRID user: –

[root@test oracle]# passwd grid
Changing password for user grid.
New password:
BAD PASSWORD: it is too short
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successfully.

Password updation for Oracle user: –

[root@test oracle]# passwd oracle
Changing password for user oracle.
New password:
BAD PASSWORD: it is based on a dictionary word
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successfully.

Directories Creation for GRID and Oracle home:

[root@test oracle]# mkdir -p /u03/app/oracle/product/11.2.0/db_1
[root@test oracle]# mkdir -p /u01/app/grid/product/11.2.0/grid_home

Ownership and Permissions:

[root@test oracle]# chown -R grid:oinstall /u01
[root@test oracle]# chown -R oracle:oinstall /u03

[root@test oracle]# chmod -R 777 /u01
[root@test oracle]# chmod -R 777 /u03

Note : – Please make sure you should give Ownership and Permissions as per your requirement.

Copying the Software to the Base Location (Where you want to unzip the file):

Grid Software: –

[root@test sf_Oracle_DBA_Softwares]# cp p13390677_112040_Linux-x86-64_3of7.zip /u01

Oracle Software: –

[root@test sf_Oracle_DBA_Softwares]# cp p13390677_112040_Linux-x86-64_1of7.zip p13390677_112040_Linux-x86-64_2of7.zip /u03

Disk Partition:

[root@test ~]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x9f3edf1a.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won’t be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

WARNING: DOS-compatible mode is deprecated. It’s strongly recommended to
switch off the mode (command ‘c’) and change display units to
sectors (command ‘u’).

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-13054, default 1): +40GB
Last cylinder, +cylinders or +size{K,M,G} (4863-13054, default 13054):
Using default value 13054

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (1-13054, default 1): +40GB
No free sectors available

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

[root@test ~]# fdisk -l

Disk /dev/sda: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000f3226

Device Boot Start End Blocks Id System
/dev/sda1 * 1 3825 30720000 83 Linux
/dev/sda2 3825 7650 30720000 83 Linux
/dev/sda3 7650 8924 10240000 83 Linux
/dev/sda4 8924 13055 33176576 5 Extended
/dev/sda5 8925 9944 8192000 83 Linux
/dev/sda6 9945 10964 8192000 83 Linux
/dev/sda7 10965 11793 6656000 82 Linux swap / Solaris
/dev/sda8 11793 12431 5120000 83 Linux

Disk /dev/sdb: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x9f3edf1a

Device Boot Start End Blocks Id System
/dev/sdb1 4863 13054 65802240 83 Linux
/dev/sdb2 1 4862 39053983+ 83 Linux

RPM installation:

[root@test sf_Oracle_DBA_Softwares]# rpm -ivh oracleasmlib-2.0.4-1.el6.x86_64.rpm
warning: oracleasmlib-2.0.4-1.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Preparing… ########################################### [100%]
1:oracleasmlib ########################################### [100%]
[root@test sf_Oracle_DBA_Softwares]#


[root@test sf_Oracle_DBA_Softwares]# rpm -ivh oracleasm-support-2.1.8-1.el6.x86_64.rpm
warning: oracleasm-support-2.1.8-1.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Preparing… ########################################### [100%]
package oracleasm-support-2.1.8-1.el6.x86_64 is already installed

Oracle ASM library driver configuration:

[root@test sf_Oracle_DBA_Softwares]# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.

This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets (‘[]’). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.

Default user to own the driver interface []: grid
Default group to own the driver interface []: oinstall
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]

Disk Creation:

[root@test sf_Oracle_DBA_Softwares]# oracleasm createdisk OCR_VD /dev/sdb1
Writing disk header: done
Instantiating disk: done
[root@test sf_Oracle_DBA_Softwares]#

[root@test sf_Oracle_DBA_Softwares]# oracleasm createdisk DATA /dev/sdb2
Writing disk header: done
Instantiating disk: done
[root@test sf_Oracle_DBA_Softwares]#

[root@test sf_Oracle_DBA_Softwares]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks…
Scanning system for ASM disks…
[root@test sf_Oracle_DBA_Softwares]#

[root@test sf_Oracle_DBA_Softwares]# oracleasm listdisks
DATA
OCR_VD

Unzip the GRID infrastructure file:

Login to the grid user and unzip it.

[grid@test u01]$ unzip p13390677_112040_Linux-x86-64_3of7.zip
Archive: p13390677_112040_Linux-x86-64_3of7.zip
creating: grid/
inflating: grid/runInstaller
creating: grid/response/
inflating: grid/response/grid_install.rsp
creating: grid/sshsetup/
inflating: grid/sshsetup/sshUserSetup.sh
inflating: grid/readme.html
creating: grid/install/
creating: grid/install/images/
inflating: grid/install/images/billboards.gif
inflating: grid/install/runInstaller.sh
inflating: grid/install/unzip
inflating: grid/install/attachHome.sh
extracting: grid/install/addLangs.sh
inflating: grid/install/mvstubs.sh
inflating: grid/install/oraparamsilent.ini
creating: grid/install/resource/
inflating: grid/install/resource/cons_pt_BR.nls
inflating: grid/install/resource/cons_it.nlsinflating: grid/stage/globalvariables/globalvar.xmlcreating: grid/rpm/
inflating: grid/rpm/cvuqdisk-1.0.9-1.rpm
inflating: grid/runcluvfy.sh
inflating: grid/welcome.html
[grid@test u01]$

After Unzipping of the file a new folder will get created called grid.

[grid@test u01]$ ls -lrt
total 1177032
drwxr-xr-x 7 grid oinstall 4096 Aug 27 2013 grid
drwxrwxrwx. 2 grid oinstall 16384 Oct 5 06:54 lost+found
drwxr-xr-x 3 grid oinstall 4096 Oct 19 15:51 app
-rwxr-x— 1 grid oinstall 1205251894 Oct 19 15:54 p13390677_112040_Linux-x86-64_3of7.zip

Edit the grid_install.rsp to start the silent Installation:

To get this grid_install.rsp you need to go to the below folders.

grid—->response—->grid_install.rsp

Now you get the response file, next step is to copy the content of this file to other file and then edit file as per your requirement.

Note:- Please don’t modify or edit original file.

[grid@test response]$ cp grid_install.rsp /tmp/grid_inst.rsp

I have copied the content in the new file which is located under /tmp directory.

Below are some parameters that you must specify before start the installation as per your requirement.

ORACLE_HOSTNAME=test
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en
oracle.install.option=HA_CONFIG
ORACLE_BASE=/u01/app/product
ORACLE_HOME=/u01/app/grid/product/11.2.0/grid_home
oracle.install.crs.config.storageOption=ASM_STORAGE
oracle.install.asm.diskGroup.name=OCR_VD
oracle.install.asm.diskGroup.redundancy=EXTERNAL
oracle.install.asm.diskGroup.AUSize=1
oracle.install.asm.diskGroup.disks=ORACLE_HOME=/dev/oracleasm/disks/OCR_VD

Execution of the silent Installation and Configuration GRID  Infrastructure command:

[grid@test grid]$ ./runInstaller -silent -responseFile /tmp/grid_inst.rsp -showProgress
Starting Oracle Universal Installer…

Checking Temp space: must be greater than 120 MB. Actual 4047 MB Passed
Checking swap space: must be greater than 150 MB. Actual 6499 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2019-10-19_08-35-46PM. Please wait …[grid@test grid]$ [WARNING] [INS-30011] The SYS password entered does not conform to the Oracle recommended standards.
CAUSE: Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
ACTION: Provide a password that conforms to the Oracle recommended standards.
[WARNING] [INS-30011] The ASMSNMP password entered does not conform to the Oracle recommended standards.
CAUSE: Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
ACTION: Provide a password that conforms to the Oracle recommended standards.
[WARNING] [INS-41812] OSDBA and OSASM are the same OS group.
CAUSE: The chosen values for OSDBA group and the chosen value for OSASM group are the same.
ACTION: Select an OS group that is unique for ASM administrators. The OSASM group should not be the same as the OS groups that grant privileges for Oracle ASM access, or for database administration.
[WARNING] [INS-41874] Oracle ASM Administrator (OSASM) Group specified is same as the inventory group.
CAUSE: Operating system group oinstall specified for OSASM Group is same as the inventory group.
ACTION: It is not recommended to have OSASM group same as inventory group. Select any of the group other than the inventory group to avoid misconfiguration.
[WARNING] [INS-32018] The selected Oracle home is outside of Oracle base.
CAUSE: The Oracle home selected was outside of Oracle base.
ACTION: Oracle recommends installing Oracle software within the Oracle base directory. Adjust the Oracle home or Oracle base accordingly.
[WARNING] [INS-13014] Target environment do not meet some optional requirements.
CAUSE: Some of the optional prerequisites are not met. See logs for details. /u01/app/oraInventory/logs/installActions2019-10-19_08-35-46PM.log
ACTION: Identify the list of failed prerequisite checks from the log: /u01/app/oraInventory/logs/installActions2019-10-19_08-35-46PM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
You can find the log of this install session at:
/u01/app/oraInventory/logs/installActions2019-10-19_08-35-46PM.log

Prepare in progress.
………………………………………….. 9% Done.

Prepare successful.

Copy files in progress.
………………………………………….. 14% Done.
………………………………………….. 21% Done.
………………………………………….. 26% Done.
………………………………………….. 31% Done.
………………………………………….. 36% Done.
………………………………………….. 42% Done.
………………………………………….. 50% Done.
………………………………………….. 56% Done.
………………………………………….. 61% Done.
………………………………………….. 66% Done.
………………………………………….. 71% Done.
………………………………….
Copy files successful.

Link binaries in progress.
……….
Link binaries successful.
……….
Setup files in progress.
………………………………………….. 76% Done.
………………………………………….. 89% Done.

Setup files successful.
The installation of Oracle Grid Infrastructure 11g was successful.
Please check ‘/u01/app/oraInventory/logs/silentInstall2019-10-19_08-35-46PM.log’ for more details.
………………………………………….. 94% Done.

Execute Root Scripts in progress.

As a root user, execute the following script(s):
1. /u01/app/grid/product/11.2.0/grid_home/root.sh

………………………………………….. 100% Done.

Execute Root Scripts successful.
As install user, execute the following script to complete the configuration.
1. /u01/app/grid/product/11.2.0/grid_home/cfgtoollogs/configToolAllCommands RESPONSE_FILE=

Note:
1. This script must be run on the same host from where installer was run.
2. This script needs a small password properties file for configuration assistants that require passwords (refer to install guide documentation).

Successfully Setup Software.

Execution of root.sh command from root user:

[root@test 11.2.0]# /u01/app/grid/product/11.2.0/grid_home/root.sh
Check /u01/app/grid/product/11.2.0/grid_home/install/root_test_2019-10-19_21-04-12.log for the output of root script

ASM Configuration:

[grid@test bin]$ ./asmca -silent -configureASM -diskString ‘/dev/oracleasm/disks/*’ -sysAsmPassword sys -asmsnmpPassword sys -diskGroupName OCR_VD -diskList /dev/oracleasm/disks/OCR_VD -redundancy EXTERNAL

ASM created and started successfully.

Disk Group OCR_VD created successfully.

Diskgroup Creation:

[grid@test bin]$ ./asmca -silent -createDiskGroup -diskGroupName DATA -diskList /dev/oracleasm/disks/DATA -redundancy EXTERNAL

Disk Group DATA created successfully.

[grid@test bin]$ asmcmd
ASMCMD> lsdg
State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
MOUNTED EXTERN N 512 4096 1048576 38138 38086 0 38086 0 N DATA/
MOUNTED EXTERN N 512 4096 1048576 64260 64201 0 64201 0 N OCR_VD/

So, Now we have completed successfully our Silent Installation and Configuration GRID Infrastructure.

Hope this blog will help you!!

If this article is useful for you please comment, share with your friends.

In case of any issues please send your query in below comment section.

For more articles please do visit below links: –

Step by Step Oracle RAC Installation Tutorial

Step by Step Configuration Process for Openfiler as Shared Storage in VMware Machine

Step by Step Installation Process for Openfiler as Shared Storage in VMware Machine

Oracle 12c Grid binary installation | Karan Rajpoot

If you want to download Oracle virtual box or VMware Workstation Player, Please click on below links:-

Oracle Virtual Box

VMware Workstation Player

Karan

Hi, Myself Karan Rajpoot, I am an Oracle DBA and Professional Blogger. I have created this blog to share all the useful content related to the Technology world.

This Post Has One Comment

Leave a Reply

Close Menu