Professional Documents
Culture Documents
`
# cat /proc/scsi/scsi
2-> check the partition (Do'nt Partition and making file system also)
#fdisk -l
3-> Install compatible RPMS on new node
#rpm -qa compat*
#rpm -ivh compat-* --force --nodeps
4-> Put the information of nodes in /etc/hosts on all nodes
# vi /etc/hosts
# public ips
147.43.0.101 rac1
147.43.0.102 rac2
147.43.0.103 rac3
#private ips
10.10.0.1
rac1-priv
10.10.0.2
rac2-priv
10.10.0.3
rac3-priv
#virtual ips which are based on public ips
147.43.0.201 rac1-vip
147.43.0.202 rac2-vip
147.43.0.203 rac3-vip
:wq! -> save and exit
5-> creating groups and user on new node with same group id's and user id of existing
nodes
groups -> oinstall(primary group)
-> dba (secondary group)
(rac1) #id oracle
uid=5003(oracle) gid=5001(oinstall) groups=5001(oinstall),5002(dba)
(rac3) #groupadd -g 5001 oinstall
#groupadd -g 5002 dba
#useradd -u 5003 -g oinstall -G dba -d /u01/home -m oracle
#passwd oracle
6-> Bind with Raw devices on new node
#vi /etc/sysconfig/rawdevices
/dev/raw/raw1 /dev/sdc1 -> for OCR
/dev/raw/raw2 /dev/sdc2 -> for VD
/dev/raw/raw3 /dev/sdc3 -> for DG
:wq! -> save and exit
#service rawdevices restart (on new node)
Check the permissions of rawdevices on new node and change also
#ll /dev/raw
#chown root:oinstall /dev/raw/raw1 -> for OCR
#chown oracle:oinstall /dev/raw/raw2 -> for VD
6->
$. oraenv
[home]=prod3
7-> Go to $ORACLE_HOME/dbs location
8->
$mv initprod1.ora initprod3.ora
=======Go to RAC1
9->
$. oraenv
[home]=prod1 ( DB will be up and running )
$ sqlplus '/as sysdba'
sql> alter database add logfile thread 3
group 5 ('+DG1/test/logfile/redo05.log') size 50m,
group 6 ('+DG1/test/logfile/redo06.log') size 50m;
sql> alter database enable public thread 3;
sql> create undo tablespace undotbs3 datafile '+DG1/test/datafile/undo03.dbf' size
300m;
sql> alter system set undo_tablespace=undotbs3 scope=spfile sid='prod3';
sql> alter system set cluster_database_instances=3 scope=spfile sid='*';
sql> alter system set instance_number=3 scope=spfile sid='ahsan3';
sql> exit
$ srvctl stop database -d prod
== Adding/registering Database Instance to OCR ==
$ srvctl add instance -d prod -i prod3 -n rac3
$ srvctl start database -d prod
****************************** THE END *****************************