Physical Server

Installing Oracle Grid

2024-12-17 06:56:35

Silent Installation

In this example, the response file is used for silent installation, without the need of configuring the Cloud Laptop (Linux). To install the software using the GUI, please refer to the Oracle Documentation.

The default silent installation configuration files for Oracle Grid are located in /u01/app/grid_home/install/response/gridsetup.rsp.

Oracle DBA must modify some key configuration items as follows:

l   oracle.install.crs.config.clusterNodes=rac-node01:rac-node01-vip,rac-node02:rac-node02-vip: Set a cluster node.

l   oracle.install.crs.config.networkInterfaceList=ens2:192.168.100.0:5,ens5:192.168.0.0:1: Set NICs used by PUBLIC and ASM&PRIVATE networks.

l   oracle.install.asm.diskGroup.disks=/dev/vdc,/dev/vdd,/dev/vde: Set a quorum disk.

After the silent installation configuration files get ready, you can try to install them in sequence (switch to the Grid user and then to the /u01/app/grid_home/ directory):

[grid@rac-node01   grid_home]$ ./gridSetup.sh -silent -responseFileinstall/response/gridsetup.rsp    

If your installation attempt fails, locate error items against the error log. After eliminating errors or checking that legacy issues can be ignored, ignore the dependency error by adding the -ignorePrereqFailure parameter.

[grid@rac-node01   grid_home]$ ./gridSetup.sh -silent -ignorePrereqFailure -responseFile   install/response/gridsetup.rsp    

Executing Script After Installation

Upon completion of installation, the execution output will ask you to execute the script as the root account. Execute the script on each node:

[root@rac-node01 ~]#   /u01/app/oraInventory/orainstRoot.sh[root@rac-node01 ~]#   /u01/app/grid_home/root.sh    

Check After Installation

Note: The HAIP feature is unavailable. The heartbeat communication is blocked and you will be prompted that the OCR disk group is not normally mounted. If you do not have the requirement for heartbeat load balancing, disable the HAIP feature to restore the cluster status.

[root@rac-node01 ~]# crsctl stat res -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
ONLINE ONLINE rac-node01 STABLE
ONLINE ONLINE rac-node02 STABLE
ora.chad
ONLINE ONLINE rac-node01 STABLE
ONLINE ONLINE rac-node02 STABLE
ora.net1.network
ONLINE ONLINE rac-node01 STABLE
ONLINE ONLINE rac-node02 STABLE
ora.ons
ONLINE ONLINE rac-node01 STABLE
ONLINE ONLINE rac-node02 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.ASMNET1LSNR_ASM.lsnr(ora.asmgroup)
1 ONLINE ONLINE rac-node01 STABLE
2 ONLINE ONLINE rac-node02 STABLE
3 OFFLINE OFFLINE STABLE
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE rac-node01 STABLE
ora.OCR.dg(ora.asmgroup)
1 ONLINE ONLINE rac-node01 STABLE
2 OFFLINE OFFLINE STABLE
3 OFFLINE OFFLINE STABLE
ora.asm(ora.asmgroup)
1 ONLINE ONLINE rac-node01 Started,STABLE
2 ONLINE OFFLINE Instance Shutdown,ST
ABLE
3 OFFLINE OFFLINE STABLE
ora.asmnet1.asmnetwork(ora.asmgroup)
1 ONLINE ONLINE rac-node01 STABLE
2 ONLINE ONLINE rac-node02 STABLE
3 OFFLINE OFFLINE STABLE
ora.cvu
1 ONLINE ONLINE rac-node01 STABLE
ora.qosmserver
1 ONLINE OFFLINE STABLE
ora.rac-node01.vip
1 ONLINE ONLINE rac-node01 STABLE
ora.rac-node02.vip
1 ONLINE ONLINE rac-node02 STABLE
ora.scan1.vip
1 ONLINE ONLINE rac-node01 STABLE
--------------------------------------------------------------------------------

View the usage of public and private NICs:

[root@rac-node01   ~]# oifcfg iflistens2   192.168.100.0ens5 192.168.0.0[root@rac-node01 ~]#   oifcfg getifens2 192.168.100.0   global cluster_interconnect,asmens5 192.168.0.0 global   public    

Configuration After Installing Grid (Important)

For users who do not have multiple heartbeats but require HA or load balancing, perform the following steps to disable interconnect HAIP. Disabling this feature does not affect the normal functioning of Oracle RAC.

l   Stop CRS on all nodes

crsctl stop crs

l   On each node, run the following commands in turns to disable HAIP as a dependency

crsctl start crs -excl   -nocrscrsctl stop res ora.asm   -initcrsctl   modify res ora.cluster_interconnect.haip -attr "ENABLED=0" -initcrsctl   modify res ora.asm -attr"START_DEPENDENCIES='hard(ora.cssd,ora.ctssd)pullup(ora.cssd,ora.ctssd)weak(ora.drivers.acfs)',STOP_DEPENDENCIES='hard(intermediate:ora.cssd)'"   -initcrsctl stop   crs    

l   Start each node in sequence

crsctl start crs

l   Check the cluster status and check that the OCR disk group goes online

[root@rac-node01 ~]# crsctl stat res -t--------------------------------------------------------------------------------Name Target   State Server State details--------------------------------------------------------------------------------Local   Resources--------------------------------------------------------------------------------ora.LISTENER.lsnr ONLINE ONLINE rac-node01 STABLE ONLINE ONLINE rac-node02 STABLEora.chad ONLINE ONLINE rac-node01 STABLE ONLINE ONLINE rac-node02 STABLEora.net1.network ONLINE ONLINE rac-node01 STABLE ONLINE ONLINE rac-node02 STABLEora.ons ONLINE ONLINE rac-node01 STABLE ONLINE ONLINE rac-node02 STABLE--------------------------------------------------------------------------------Cluster   Resources--------------------------------------------------------------------------------ora.ASMNET1LSNR_ASM.lsnr(ora.asmgroup) 1 ONLINE ONLINE rac-node01 STABLE 2 ONLINE ONLINE rac-node02 STABLE 3 ONLINE OFFLINE STABLEora.LISTENER_SCAN1.lsnr 1 ONLINE ONLINE rac-node01 STABLEora.OCR.dg(ora.asmgroup) 1 ONLINE ONLINE rac-node01 STABLE 2 ONLINE ONLINE rac-node02 STABLE 3 OFFLINE OFFLINE STABLEora.asm(ora.asmgroup) 1 ONLINE ONLINE rac-node01 Started,STABLE 2 ONLINE ONLINE rac-node02 Started,STABLE 3 OFFLINE OFFLINE STABLEora.asmnet1.asmnetwork(ora.asmgroup) 1 ONLINE ONLINE rac-node01 STABLE 2 ONLINE ONLINE rac-node02 STABLE 3 OFFLINE OFFLINE STABLEora.cvu 1 ONLINE ONLINE rac-node01 STABLEora.qosmserver 1 ONLINE ONLINE rac-node01 STABLEora.rac-node01.vip 1 ONLINE ONLINE rac-node01 STABLEora.rac-node02.vip 1 ONLINE ONLINE rac-node02 STABLEora.scan1.vip 1 ONLINE ONLINE rac-node01 STABLE--------------------------------------------------------------------------------    


RAXTWFLYW3FC