0% found this document useful (0 votes)
33 views4 pages

Lab Practice 9 - Grid Installation Pre-Requisites On All Nodes

1. The document outlines steps to configure NTP and clean YUM repositories on two nodes to synchronize time and free up disk space. 2. It then describes setting up the oracle user profile and environment variables on each node for both the Oracle Grid infrastructure and database homes. 3. Files are created to easily switch between the Grid and database environments. 4. SSH connectivity is then configured between the nodes using an Oracle provided script to allow communication as the oracle user.

Uploaded by

Rupdipta Chandra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views4 pages

Lab Practice 9 - Grid Installation Pre-Requisites On All Nodes

1. The document outlines steps to configure NTP and clean YUM repositories on two nodes to synchronize time and free up disk space. 2. It then describes setting up the oracle user profile and environment variables on each node for both the Oracle Grid infrastructure and database homes. 3. Files are created to easily switch between the Grid and database environments. 4. SSH connectivity is then configured between the nodes using an Oracle provided script to allow communication as the oracle user.

Uploaded by

Rupdipta Chandra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

LAB PRACTICE 9 – GRID INSTALLATION PRE-REQUISITES ON ALL NODES

Configure NTP – Network Time Protocol (on both nodes)


On Node 1 and Node 2:
=====================

# yum install ntp


# service ntpd start
# chkconfig ntpd on

# vi /etc/sysconfig/ntpd -> Open file delete all and put below line

OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid -g"

# service ntpd stop


# ntpdate 1.tw.pool.ntp.org
# service ntpd start

Now its good time to clean-up the YUM repository to release some space from the disk
On both nodes as root user:
===========================
# yum clean all

Setup oracle user bash profile on node 1


# su - oracle
# vi .bash_profile

# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

ORACLE_HOSTNAME=oraracn1; export ORACLE_HOSTNAME


ORACLE_UNQNAME=RAC; export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
GRID_HOME=/u01/app/11.2.0/grid; export GRID_HOME
DB_HOME=$ORACLE_BASE/product/11.2.0/db_1; export DB_HOME
ORACLE_HOME=$DB_HOME; export ORACLE_HOME
ORACLE_SID=RAC1; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
BASE_PATH=/usr/sbin:$PATH; export BASE_PATH
PATH=$ORACLE_HOME/bin:$BASE_PATH; export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH


CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPAT
H

alias grid_env='. /home/oracle/grid_env'


alias db_env='. /home/oracle/db_env'
Crate a file to set grid variables on node 1. This file will set grid environmental variables making it easy
to switch between DB home and grid home.
# vi /home/oracle/grid_env

ORACLE_SID=+ASM1; export ORACLE_SID


ORACLE_HOME=$GRID_HOME; export ORACLE_HOME
PATH=$ORACLE_HOME/bin:$BASE_PATH; export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH


CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPAT
H

Create below file to set database environmental variables on Node 1


# vi /home/oracle/db_env

ORACLE_SID=RAC1; export ORACLE_SID


ORACLE_HOME=$DB_HOME; export ORACLE_HOME
PATH=$ORACLE_HOME/bin:$BASE_PATH; export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH


CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPAT
H

Setup oracle user bash profile on node 2


# su - oracle
# vi .bash_profile

# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

ORACLE_HOSTNAME=oraracn2; export ORACLE_HOSTNAME


ORACLE_UNQNAME=RAC; export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
GRID_HOME=/u01/app/11.2.0/grid; export GRID_HOME
DB_HOME=$ORACLE_BASE/product/11.2.0/db_1; export DB_HOME
ORACLE_HOME=$DB_HOME; export ORACLE_HOME
ORACLE_SID=RAC2; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
BASE_PATH=/usr/sbin:$PATH; export BASE_PATH
PATH=$ORACLE_HOME/bin:$BASE_PATH; export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH


CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPAT
H

alias grid_env='. /home/oracle/grid_env'


alias db_env='. /home/oracle/db_env'
Crate a file to set grid variables on node 2. This file will set grid environmental variables making it easy
to switch between DB home and grid home.
# vi /home/oracle/grid_env

ORACLE_SID=+ASM2; export ORACLE_SID


ORACLE_HOME=$GRID_HOME; export ORACLE_HOME
PATH=$ORACLE_HOME/bin:$BASE_PATH; export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH


CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPAT
H

Create below file to set database environmental variables on Node 2


# vi /home/oracle/db_env

ORACLE_SID=RAC2; export ORACLE_SID


ORACLE_HOME=$DB_HOME; export ORACLE_HOME
PATH=$ORACLE_HOME/bin:$BASE_PATH; export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH


CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPAT
H

At this stage, exit as oracle user and the open another terminal with new session OR switch to root user
and then back to oracle user. This will make the new environmental variables in effect.

Now it’s time to test our environment variables and check if they are working fine or not. As oracle user,
execute below commands on both nodes to check if environmental variables are set properly

Node 1:
-------
su – oracle

# . grid_env  To set grid env variables


# env |grep ORA
ORACLE_UNQNAME=RAC
ORACLE_SID=+ASM1
ORACLE_BASE=/u01/app/oracle
ORACLE_HOSTNAME=oraracn1
ORACLE_TERM=xterm
ORACLE_HOME=/u01/app/11.2.0/grid

# . db_env  To set DB env variables


# env |grep ORA
ORACLE_UNQNAME=RAC
ORACLE_SID=RAC1
ORACLE_BASE=/u01/app/oracle
ORACLE_HOSTNAME=oraracn1
ORACLE_TERM=xterm
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
Node 2:
-------
su – oracle

# . grid_env  To set grid env variables


# env |grep ORA
ORACLE_UNQNAME=RAC
ORACLE_SID=+ASM2
ORACLE_BASE=/u01/app/oracle
ORACLE_HOSTNAME=oraracn2
ORACLE_TERM=xterm
ORACLE_HOME=/u01/app/11.2.0/grid

# . db_env  To set DB env variables


# env |grep ORA
ORACLE_UNQNAME=RAC
ORACLE_SID=RAC2
ORACLE_BASE=/u01/app/oracle
ORACLE_HOSTNAME=oraracn2
ORACLE_TERM=xterm
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1

Configure SSH connectivity between the nodes as oracle user. There are two methods to setup SSH
connectivity between the nodes is: Manual method and automatic method. The manual method is very
long and you might encounter errors while doing it. The easy way is the automatic method via script
provided by oracle.

As you have already copied the grid and database software files under /u02, unzip the grid software file.
This will create a new folder name grid under /u02. Oracle provides automatic ssh setup script
On node 1 as oracle user:
=========================
cd /u02
unzip <grid_software_file_name>

cd grid/sshsetup

./sshUserSetup.sh -user oracle -hosts "oraracn1 oraracn2" -noPromptPassphrase -confir


m -advanced

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy