Documente Academic
Documente Profesional
Documente Cultură
id=MQ==
http://www.puschitz.com/InstallingOracle10gRAC.shtml#InstallingOracleDatabase10gW
ithRACDBCA
Required Hardware:
To create 2-node RAC using SAN one would require 3 machines with the
following hardware installed on it.
Per Node:
Per Cluster:
I used the below hardware to build 2-node RAC cluster for this excercise.
ORACLE_BASE: /oracle/app/product/10.2/ora_db
ASM_BASE: /oracle/app/product/10.2/ora_asm
CRS_BASE: /oracle/app/product/10.2/ora_crs
CRS file Location: /dev/raw/raw1/ mounted on /dev/sda1
(hpfs/ntfs)
Packages:
Oracle 11g R1 on CentOS EL 4 Update 5 requires below extra packages to be
installed with the version same or higher than listed below.
binutils-2.15.92.0.2-18
compat-libstdc++-33.2.3-47.3
elfutils-libelf-0.97-5
elfutils-libelf-devel-0.97.5
glibc-2.3.9.4-2.19
glibc-common-2.3.9.4-2.19
glibc-devel-2.3.9.4-2.19
gcc-3.4.5-2
gcc-c++-3.4.5-2
libaio-devel-0.3.105-2
libaio-0.3.105-2
libgcc-3.4.5
libstdc++-3.4.5-2
libstdc++-devel-3.4.5-2
make-3.80-5
sysstat-5.0.5
unixODBC-2.2.11
unixODBC-devel-2.2.11
iscsi-initiator-utils-4.0.3.0-5 <-- For iscsi based SAN configuration
Please execute the below command as root to make sure that you have this
rpms installed. If not installed, then download and install
Using YUM.
rpm -q binutils elfutils-libelf elfutils-libelf-devel glibc glibc-common
glibc-devel \
gcc gcc-c++ libaio libaio-devel libgcc libstdc++ libstdc++-devel make
\
compat-libstdc++ sysstat unixODBC unixODBC-devel iscsi-initiator-
utils
I had to install the below extra rpms:
[root@node1-pub ~]# yum install libaio libaio-devel elfutils-libelf-devel
unixODBC unixODBC-devel
Definition: The IP address 127.0.0.1 is a special purpose address reserved for use
on each computer. 127.0.0.1 Is conventionally a computer's loopback address.
Network software and utilities can use 127.0.0.1 to access a local computer's TCP/IP
network resources. Messages sent to loopback IP addresses like 127.0.0.1 do not
reach outside to the local area network (LAN) but instead are automatically re-routed
by the computer's own network adapter back to the receiving end of the TCP/IP stack.
Typically all IP addresses in the range 127.0.0.1 - 127.255.255.255 are reserved for
private use, but 127.0.0.1 is by convention the loopback address in almost all cases.
10.1.96.26 dop-oradb1
10.1.96.27 dop-oradb2
192.168.1.7 dop-oradb1-priv
192.168.1.9 dop-oradb2-priv
DEVICE=eth0
BOOTPROTO=none
HWADDR=D8:D3:85:BA:74:20
ONBOOT=yes
TYPE=Ethernet
NETMASK=255.255.255.192
IPADDR=10.1.96.26
USERCTL=no
IPV6INIT=no
PEERDNS=yes
GATEWAY=10.1.96.1
[root@node2-pub ~] #
Kernel Parameters:
Oracle recommends that you set shared memory segment attributes as well as
semaphores to the following values.
If not set, database instance creation will fail. I added the following lines to
/etc/sysctl.conf file. Every OS process needs
semaphore where it waits on for the resources. For
NOTE: If the current value for any parameter is higher than the value listed in
this table, then do not change
the value of that parameter.
To see the current setting in the kernel, please use the below command.
kernel.core_uses_pid = 1
# Extra parameters For 11g RAC installation
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
fs.file-max = 6553600
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 4194304
net.core.wmem_default = 262144
net.core.wmem_max= 262144
net.core.rmem_max = 4194304
[root@node2-pub ~]#
After adding these lines to /etc/sysctl.conf, please run the below command
as root to make them enabled.
[oracle@node2-pub ~]$ id
uid=900(oracle) gid=901(oinstall) groups=901(oinstall),900(dba)
[oracle@node1-pub ~]$ id
uid=900(oracle) gid=901(oinstall) groups=901(oinstall),900(dba)
bash profile of user (oracle)
export PATH
unset USERNAME
export ORACLE_CRS_HOME=/oracle/app/product/10.2/ora_crs
export ORACLE_ASM_HOME=/oracle/app/product/10.2/ora_asm
export ORACLE_HOME=/oracle/app/product/10.2/ora_db
export PATH=$ORACLE_HOME/bin:$ORACLE_CRS_HOME/bin:$PATH
export ORACLE_SID=pli1
You may be prompted to enter 'yes' or 'no' for the first time performing ssh
commands. Simply enter 'yes' and continue.
After words, when oracle connects to the remote node, it won't be asked for the
password.
If you get then below erorr message when try to connect to remote node,
please make sure that the firewall is disabled on the
remote node.
----==========Create partitions================
[root@node1-pub ~]# fdisk /dev/sda
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF
disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 9806.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by
w(rite)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-9806, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-9806, default 9806):
Using default value 9806
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@node1-pub ~]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF
disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 12748.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by
w(rite)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-12748, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-12748, default 12748):
Using default value 12748
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@node1-pub ~]# fdisk /dev/sdc
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF
disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 12748.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by
w(rite)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-12748, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-12748, default 12748):
Using default value 12748
Command (m for help): p
Disk /dev/sdc: 104.8 GB, 104857600000 bytes
255 heads, 63 sectors/track, 12748 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 12748 102398278+ 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@node1-pub ~]# fdisk /dev/sdd
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF
disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 12748.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by
w(rite)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-12748, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-12748, default 12748):
Using default value 12748
Command (m for help): p
Disk /dev/sdd: 104.8 GB, 104857600000 bytes
255 heads, 63 sectors/track, 12748 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 1 12748 102398278+ 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@node1-pub ~]# fdisk /dev/sde
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF
disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 12748.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by
w(rite)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-12748, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-12748, default 12748):
Using default value 12748
Command (m for help): p
Disk /dev/sde: 104.8 GB, 104857600000 bytes
255 heads, 63 sectors/track, 12748 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sde1 1 12748 102398278+ 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@node1-pub ~]#
/etc/sysconfig/rawdevices(both node)
touch /var/lock/subsys/local
#Hangcheck timer for oracle rac
insmod /lib/modules/2.6.9-55.ELsmp/kernel/drivers/char/hangcheck-timer.ko hangcheck_tick=30
hangcheck_margin=180
./runInstaller
Change the Name to CRS_HOME and path to /oracle/app/product/10.2/crs
Click Edit and modify Virtual hostnames to match the names in /etc/hosts
ipge0 is the public nic, so click Edit and change ipge0 interface type to Public
Click Edit and change OCR location to match the names in /etc/sysconfig/rawdeveics
Click Edit and change OCR location to match the names in /etc/sysconfig/rawdeveics
Don’t click the OK button now. Run the scripts one by one on each node, configure Virtual
ip’s using vipca and then comeback and click OK
root@dop-oradb2 # cd /oracle/product/10g/crs/bin
root@dop-oradb2 #./vipca
Enter Virtual IP alias name, d1sol5-virt.campd.local, press tab remaining column values will
be filled automatically
Click OK after running the scripts and vipca
Click Yes
oracleasm-2.6.9-55.0.2.EL-2.0.3-1.i686.rpm
oracleasmlib-2.0.2-1.i386.rpm
oracleasm-support-2.0.3-1.i386.rpm
Create ASM Disk Device(s) that will be used in ASM diskgroup (stamping devises as an
ASM disks): from one node only
On the other node, you only need to execute the below command to
show these disks up there.
http://www.idevelopment.info/data/Oracle/DBA_tips/Linux/LINUX_12.shtml
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle10gRAC/CLUSTER_18.shtml
http://oracleadvisor.com/documentation/oracle/database/11.2/server.112/e10880/prctmsg.htm
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle10gRAC/CLUSTER_65.shtml#Ad
ministering the OCR File
http://www.fadalti.com/oracle/database/managed_errors_oracle.htm
http://download.oracle.com/docs/cd/B19306_01/relnotes.102/b15666/toc.htm
6.4 List of Packages for Asianux 2, Oracle Linux 4, and Red Hat Enterprise
Linux 4
In "Checking the Software Requirements" section of Oracle Database Quick Installation Guide
for Linux x86-64 and Chapter 2 of Oracle Database Installation Guide for Linux x86-64, the
following (or later versions) are the list of packages for Asianux 2, Oracle Linux 4, and Red
Hat Enterprise Linux 4:
binutils-2.15.92.0.2-10.EL4
compat-db-4.1.25-9
compat-libstdc++-33-3.2.3-47.3
compat-libstdc++-33-3.2.3-47.3(i386)
compat-libstdc++-296.i386
control-center-2.8.0-12
gcc-3.4.3-22.1
gcc-c++-3.4.3-22.1
glibc-2.3.4-2
glibc-2.3.4-2(i386)
glibc-common-2.3.4-2
glibc-devel-2.3.4-2
glibc-devel-2.3.4-2(i386)
gnome-libs-1.4.1.2.90-44.1
libaio-0.3.96-3
libgcc-3.4.3-9.EL4
libstdc++-3.4.3-9.EL4
libstdc++-devel-3.4.3-9.EL4
make-3.80-5
numactl-0.6.4.x86_64
pdksh-5.2.14-30
sysstat-5.0.5-1