This series of articles details the process of adding 3rd rac nodes on the basis of two existing rac nodes. The use of rac has no impact during this period. The operating systems of rac nodes are
This series of articles details the process of adding 3rd rac nodes on the basis of two existing rac nodes. The use of rac has no impact during this period. The operating systems of rac nodes are
1: configure the operating system environment of the new node to be consistent with that of other nodes, including shared storage, patch packages, kernel parameters, and user environment variables.
[Root @ rac3 ~] # Cat/etc/hosts
127.0.0.1 localhost. localdomain localhost
192.168.1.41 rac1.yang.com rac1
192.168.122.41 rac1-priv.yang.com rac1-priv
192.168.1.141 rac1-vip.yang.com rac1-vip
192.168.1.42 rac2.yang.com rac2
192.168.122.42 rac2-priv.yang.com rac2-priv
192.168.1.142 rac2-vip.yang.com rac2-vip
192.168.1.43 rac3.yang.com rac3
192.168.122.43 rac3-priv.yang.com rac3-priv
192.168.1.143 rac3-vip.yang.com rac3-vip
[Root @ rac3 ~] # Getenforce
Disabled
[Root @ rac3 ~] # Groupadd oinstall
[Root @ rac3 ~] # Groupadd dba
[Root @ rac3 ~] # Useradd-g oinstall-G dba Oracle
[Root @ rac3 ~] # Echo 'oracle '| passwd -- stdin oracle
Changing password for user oracle.
Passwd: all authentication tokens updated successfully.
[Root @ rac3 ~] # Tail/etc/sysctl. conf
Kernel. shmall = 2097152
Kernel. shmmax = 2147483648
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Fs. file-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000
Net. core. rmem_default = 262144
Net. core. rmem_max = 262144
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144
[Root @ rac3 ~] # Sysctl-p
[Root @ rac3 ~] # Tail-4/etc/security/limits. conf
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
[Root @ rac3 ~] # Tail-1/etc/pam. d/login
Session required pam_limits.so
[Root @ rac3 ~] # Tail-1/etc/modprobe. conf
Options hangcheck-timer hangcheck_tick = 30 hangcheck_margin = 180
[Root @ rac3 ~] # Modprobe-v hangcheck-timer
Insmod/lib/modules/2.6.9-89.EL/ kernel/drivers/char/hangcheck-timer.ko hangcheck_tick = 30 hangcheck_margin = 180
2: Configure shared storage on the new node, create related directories, and set user environment variables
[Root @ rac3 ~] # Chown-R oracle. oinstall/u01/
[Root @ rac3 ~] # Su-oracle
[Oracle @ rac3 ~] $ Cat. bash_profile
#. Bash_profile
# Get the aliases and functions
If [-f ~ /. Bashrc]; then
.~ /. Bashrc
Fi
PATH =/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin: /usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
Export EDITOR = vim
Export ORACLE_SID = racdb3
Export ORACLE_BASE =/u01/app/oracle
Export ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1
Export ORA_CRS_HOME = $ ORACLE_BASE/product/10.2.0/crs_1
Export LD_LIBRARY_PATH =/lib
Alias sqlplus = '/usr/local/rlwrap/bin/rlwrap sqlplus'
Alias rman = '/usr/local/rlwrap/bin/rlwrap rman'
Export NLS_DATE_FORMAT = 'yyyy-MM-DD HH24: MI: ss'
Export NLS_LANG = american_america.UTF8
Export PATH = $ ORACLE_HOME/bin: $ ORA_CRS_HOME/bin: $ PATH
Umask 022
[Oracle @ rac3 ~] $ Mkdir-p $ ORACLE_BASE/admin
[Oracle @ rac3 ~] $ Mkdir-p $ ORACLE_HOME
[Oracle @ rac3 ~] $ Mkdir-p $ ORA_CRS_HOME
3: Configure ssh equality for each node
[Oracle @ rac3 ~] $ Ssh-keygen-t dsa
[Oracle @ rac3 ~] $ Ssh-keygen-t rsa
Use the ssh-copy-id command to import the public key of the rac3 node to the/home/oracle/. ssh/authorized_keys file on rac1 and rac2. The steps are not described in detail;
Finally, you need to use oracle users on three nodes for mutual ssh Login Without entering a password.