Вы находитесь на странице: 1из 3

-- RAC INSTALLATION --(Using ASM)

1-> Check for SAME LUN On both Nodes


# cat /proc/scsi/scsi

2-> make the partitions From any one Node


#fdisk -l
#fdisk /dev/sdf
( ):n ->(create new)
p ->(for primary)
(1-4):1
: ->(press enter only)
:+1G ->(2-time +1G 3-time +30G)
( ):p ->(print partitions)
/dev/sdf1 -> for OCR
/dev/sdf2 -> for VD
/dev/sdf3 -> for DG
( ):w ->(for save and exit)
#partprobe (on both nodes for updating the kernel)

3-> Install compatible RPMS on both nodes


#rpm -ivh /compat-* --force --nodeps

4-> CONFIGURE /etc/hosts on both nodes


# ifconfig
# vi /etc/hosts
# public ips
147.43.0.101 rac1
147.43.0.102 rac2

#private ips
10.10.0.101 rac1-priv
10.10.0.102 rac2-priv

#virtual ips which are based on public ips


147.43.0.201 rac1-vip
147.43.0.202 rac2-vip
:wq! -> save and exit

5-> Bind with Raw devices on both nodes


#vi /etc/sysconfig/rawdevices
/dev/raw/raw1 /dev/sdf1 # for OCR
/dev/raw/raw2 /dev/sdf2 # for VD
/dev/raw/raw3 /dev/sdf3 # for DG
:wq! -> save and exit
#service rawdevices restart (on both nodes)

6-> creating groups and user on both nodes


groups -> oinstall(primary group)
-> dba (secondary group)
user -> oracle
#groupadd -g 5001 oinstall
#groupadd -g 5002 dba
#useradd -u 5003 -g oinstall -G dba -d /u01/home -m oracle
#passwd oracle
Check the permission of rawdevices on both nodes and change also on both nodes
#ll /dev/raw
#chown root:oinstall /dev/raw/raw1 -> for OCR
#chown oracle:oinstall /dev/raw/raw2 -> for VD
#chown oracle:oinstall /dev/raw/raw3 -> for DG

To permanent on both nodes


#vi /etc/rc.d/rc.local
chown root:oinstall /dev/raw/raw1
chown oracle:oinstall /dev/raw/raw[2-3]
:wq!

7-> configure secure shell for oracle user on both nodes


(Secure Shell: Means avoiding password between two nodes for remote connectivity)
(rac1) #su - oracle
$ssh-keygen -t rsa
(give 3 times enter)
$cd .ssh
$cat id_rsa.pub > authorized_keys
$scp authorized_keys rac2:/u01/home
passwd:****

(rac2) #su - oracle


$ssh-keygen -t rsa
(press 3 times enter)
$cd .ssh
$cat id_rsa.pub > authorized_keys
$cd
$pwd
(/u01/home)
$ls
(authorized_keys)-> from rac1
$cat authorized_keys >> .ssh/authorized_keys (appending rac1 infor. To rac2 file)
$cat .ssh/authorized_keys
(It's shows infor. of rac1,rac2)
$cd .ssh
$scp authorized_keys rac1:/u01/home/.ssh (we’re over-writing to rac1 file)
$cat /etc/hosts
(It's shows public,private ip's,check the date by them) from both nodes
(During these process if passwd will ask,means secure shell not configure successfully)

From (rac1-rac2)
$ssh rac1 date
$ssh rac1-priv date
$ssh rac2 date
$ssh rac2-priv date

8-> check date from root user on both nodes to avoid the TimeStamp Error during
installation of clusterware
#date ->from rac1
#date ->from rac2 -> simultaneously (If different then set the date by two method's
(Graphical,command-line)
by command-line
(rac1) #date 100708152009.30 -> format (MMDDHHMMYYYY.SS)
(rac2) #date 100708152009.31 -> simultaneously

9-> If successful run cluvfy utility from any one of nodes,from oracle user
# su - oracle
$cd /u01/clusterware/cluvfy (go to clusterware_software dir)
$./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -verbose
(verbose nothing but it'll display with comments(passed or failed))
(IF IT'S SUCCESSFUL THEN GO FOR INSTALLATION OF
CLUSTERWARE)

$cd /u01/clusterware
$./runInstaller
(After Installation of clusterware successfully install ASM Home (For DG) and RDBMS
Home (For Database) From 10g software

10-> $cd /u01/database_10.2.1


$./runInstaller -> two times for (ASM and RDBMS Homes)

11-> $export ORACLE_HOME=/u01/home/oracle/product/10.2.0/asm


$export PATH=$ORACLE_HOME/bin:$PATH
$dbca
(Select configure ASM,It'll create listener, ASM Instances and DG)

12-> $export ORACLE_HOME=/u01/home/oracle/product/10.2.0/db_1


$export PATH=$ORACLE_HOME/bin:$PATH
$dbca
(Select CreateDB,In that select ASM then select DG and create cluster database)

Вам также может понравиться