oracledba.help

Oracle 12c (12.1.0.2) GI Cluster Installation (ASMFD): Linux

<- Legacy

Overview

What follows is the most common way to install the Oracle 12c Grid Infrastructure (GI) for Linux enterprise environments.

You want to install ASMFD, perform the base GI install and apply the latest patches before you create a cluster that will work in production. This is the shortcut to a working cluster folks!

Prerequisites

  • You have performed the LINUX OS Prerequisites.
  • You have configured ASMFD, performed a base GI install and applied the latest patches on all nodes. If not go here.

Cluster Installation

  • Log into GUI as the grid user.
  • Ensure other initial nodes are up and can ping and nslookup each other.
  • Ensure all potential nodes can see the ASMFD configured disks:
    root> $ORACLE_HOME/bin/asmcmd afd_scan
    root> $ORACLE_HOME/bin/asmcmd afd_lsdsk
  • You can monitor the process of the root scripts watching the alert log. Example:
    tail -f /u01/app/grid/diag/crs/rac02/crs/trace/alert.log

Procedure

Run Cluster Configuration Assistant:

  grid> /u01/app/12.1.0.2/grid/crs/config/config.sh

Installation Option

 (x) Configure Oracle GI for a Cluster

Cluster Type

 (x) Configure a Standard cluster

Grid Plug and Play

 Cluster Name: rac-cluster
 SCAN Name:    rac-scan
 SCAN Port :   1521
 [ ] Configure GNS

Cluster Node Information Should see current system. Example: rac01 | rac01-vip

 [Add]
 Public Hostname:  rac02.localdomain
 Virtual Hostname: rac02-vip.localdomain
 [SSH connectivity]
    OS Username: grid 
    OS PW:       ********
 [Setup] ...
    Msg displayed: 
    "Successfully established passwordless SSH connectivity between the selected nodes."
 [Test] ... Shows OK (already established)
 [Next] ... Verification process runs for a moment

Network Interface Usage

 192.168.56.0  = Public  (pubnet)
 192.168.10.0  = Private (privnet)

Storage Option

 (x) Use standard ASM for storage

ASM Disk Group

 (x) Create a new Disk Group

Create a new Disk Group

 Disk group name: GRID

 Select Redundancy & Disks for Group:
   Generally use:
     (x) Normal   = if needing ASM based redundancy.
     (x) External = if not needing ASM based redundancy.
 Allocation Unit Size = 1mb

 Add Disks  
   [ ] AFD:DATA   
   [ ] AFD:FRA      
   [x] AFD:GRID  <= Just select disks to be used for the GI (+GRID).
   Other disks (for +FRA, +DATA...) can be added later.

ASM Password

  (x) Use same passwords for these accounts.

Failure Isolation

  (x) Do not use Intelligent Platform Management Interface (IPMI)

Management Options

  [ ] Register with Enterprise Manager (EM) Cloud Control

Root script execution

  [ ] Automatically run configuration scripts
    Disabling this makes it easier to debug.

Prerequisites Check

  Fix any issues then return to this point.
  If everything acceptable then [Next]

Summary

 [Install]
 Process runs... 
 [Close] when completed.

Create grid BASH User Profile (.bashrc)

Uncomment ORACLE_SID entry setting it to the ASM instance name on this system (ASM1, ASM2 ...).

umask 022

# Get the aliases and functions (if .bash_profile)
#if [ -f ~/.bashrc ]; then
#	. ~/.bashrc
#fi

# Global Definitions
if [ -f /etc/bashrc ]; then
   . /etc/bashrc
fi

if [ $USER = "oracle" ] || [ $USER = "grid" ]; then
   if [ $SHELL = "/bin/ksh" ]; then
      ulimit -p 16384
      ulimit -n 65536
   else
      ulimit -u 16384 -n 65536
   fi
   umask 022
fi

#TBD ORACLE_SID=+ASM1; export ORACLE_SID
ORACLE_BASE=/u01/app/grid; export ORACLE_BASE
ORACLE_HOME=/u01/app/12.1.0.2/grid; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM


PATH=$ORACLE_HOME/bin:/usr/bin:/bin:/usr/local/bin:.local/bin:$HOME/bin
export PATH

export TEMP=/tmp
export TMPDIR=/tmp

# Aliases - Common
alias cl='crontab -l'
alias l9='ls -alt | head -9' 
alias l20='ls -alt | head -20'
alias l50='ls -alt | head -50'
alias tf='date;ls -l|wc -l'