Académique Documents
Professionnel Documents
Culture Documents
etc/hosts
127.0.0.1
localhost.localdomain localhost
# mkdir -p /u02/oradata/orcl
# chown -R oracle:oinstall /u02/oradata/orcl
# chmod -R 775 /u02/oradata/orcl
5. Configure the Linux Servers for Oracle
Edit the .bash_profile file and set the required environment variables
in both the nodes.
PATH=$PATH:$HOME/bin
export ORACLE_SID=hrms1
export ORACLE_HOME=/u02/app/oracle/db_home
export ORA_CRS_HOME=/u02/app/oracle/crs_home
export PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/lib
unset USERNAME
/etc/security/limits.conf <<EOF
soft nproc 2047
hard nproc 16384
soft nofile 1024
hard nofile 65536
Configure OCFS2
$ su # ocfs2console &
Select [Cluster] -> [Configure Nodes...]. This will start the OCFS2 Cluster
1. On the "Node Configuration" dialog, click the [Add] button.
Create a partition on the SAN or shared storage for storing ocrfile and voting disk files that are
created at the time of cluster ware installation.
(use fdisk command as root user and create a partition)
NOTE:
Always recommended to create 4 partitions so that we can maintain redundant copies of voting
disk file and OCR file
$ su # mkfs.ocfs2 -b 4K -C 32K -N 4 L ocfs2 /dev/sde2
(the name
/u02/oradata/orcl
ocfs2
_netdev,datavolume,nointr
0 0
/dev/sde2
NOTE:
Create the number of disks depending on your requirement.
# /etc/init.d/oracleasm scandisks
# /etc/init.d/oracleasm listdisks
VOL1
VOL2
VOL3
VOL4
Done.
You have new mail in /var/spool/mail/root
[root@hcslnx02 crs_home]#
ora.linux2.ons application
ora.linux2.vip application
0/3
0/0
0/0
0/0
ONLINE
ONLINE
ONLINE
ONLINE
Oct
Oct
Oct
Oct
12
12
12
12
22:08
22:08
22:08
22:08
/etc/init.d/init.crs
/etc/init.d/init.crsd
/etc/init.d/init.cssd
/etc/init.d/init.evmd
linux2
linux2
NOTE:
The above command has to be executed manullay on the failed node by connecting
as Oracle user.
NOTE:
Display the configuration for node applications - (VIP, GSD, ONS, Listener)
$ srvctl config nodeapps -n linux1 -a -g -s -l
VIP exists.: /linux1-vip/192.168.1.200/255.255.255.0/eth0
GSD exists.
ONS daemon exists.
Listener exists.
BY
Rajani Kumar Katam
Satyam Computer Services private Ltd.