Redhat 6 Oracle 11g RAC Installation notes

Source: Internet
Author: User

Redhat 6 Oracle 11g RAC Installation notes

I recently installed 11g RAC on RedHat 6. I have encountered several precautions to share with you:

Install Oracle 11gR2 (x64) in CentOS 6.4)

Steps for installing Oracle 11gR2 in vmwarevm

Install Oracle 11g XE R2 In Debian
 
1. SWAP must be greater than or equal to 16 GB; otherwise, an error is reported during the pre-check. Modification Method
 
Mkdir-p/home/swap

Dd if =/dev/zero of =/home/swap/swapfile bs = 1024 count = 16777216

Mkswap/home/swap/swapfile

Swapon/home/swap/swapfile
Edit/etc/fstab
/Home/swap/swapfile swap defaults 0 0
 

2. Set the host name/etc/hosts. Do not set the name to too long. It is better to set it to <5 characters. Otherwise, the computer name must be repeated during installation.
# Vi/etc/hosts
127.0.0.1 localhost

192.168.172.58 rac1 rac1-pub

10.0.0.58 rac1-priv

192.168.172.56 rac1-vip

 

192.168.172.59 rac2 rac2-pub

10.0.0.59 rac2-priv

192.168.172.117 rac2-vip

 

192.168.172.55 rac-scan

3. Set the IP address. Check that ONBOOT = YES so that the IP address can be started randomly.

# Vi/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE = eth0

TYPE = Ethernet

UUID = 3398bf27-74b9-4e77-89e4-da0e33896cfe

ONBOOT = yes

NM_CONTROLLED = yes

BOOTPROTO = none

4. Several important Kernel Parameters
Kernel. shmmax value must be greater than SGA
Kernel. shmmni = 8192 in version 110204, if it is set to 4 K, the memory overflow will be reported when the second machine runs root. sh.
Net. ipv4.ip _ local_port_range = 9000 65000 cannot be set to 1024 65000
Fs. file-max = 6815744
Fs. aio-max-nr = 1048576
 
5. Multi-path configuration, udev Mode
1) Use multipath
Find the DM_UUID corresponding to datalun according to the following information:
[Root @ rac2 ~] # For I in datalun datalunp1 datalunp2 datalunp3; do printf "% s \ n" "$ I" "$ (udevadm info -- query = all -- name =/dev/mapper/$ I | grep-I dm_uuid) "; done
Datalun E: DM_UUID = mpath-36001438009b064ce0000500000160000

Datalunp1 E: DM_UUID = part1-mpath-36001438009b064ce0000500000160000

Datalunp2 E: DM_UUID = part2-mpath-36001438009b064ce0000500000160000

Datalunp3 E: DM_UUID = part3-mpath-36001438009b064ce0000500000160000
Then, based on the following information, determine the correspondence between dm * And datalun.
For I in datalunp1 datalunp2 datalunp3; do printf "% s \ n" "$ I" "$ (ls-ll/dev/mapper/$ I)"; done
 
Datalunp1 lrwxrwxrwx. 1 root 7 Dec 21/dev/mapper/datalunp1-> ../dm-3
 
Datalunp2 lrwxrwxrwx. 1 root 7 Dec 21/dev/mapper/datalunp2-> ../dm-4
 
Datalunp3 lrwxrwxrwx. 1 root 7 Dec 21/dev/mapper/datalunp3-> ../dm-5
Create the/etc/udev/rules. d/99-oracle-asmdevices.rules file. The definition is as follows:
# Vi/etc/udev/rules. d/99-oracle-asmdevices.rules

 

KERNEL = "dm-3", ENV {DM_UUID} = "part1-mpath-36001438009b064ce0000500000160000", OWNER = "grid", GROUP = "asmadmin", MODE = "0660"
 
KERNEL = "dm-4", ENV {DM_UUID} = "part2-mpath-36001438009b064ce0000500000160000", OWNER = "grid", GROUP = "asmadmin", MODE = "0660"
 
KERNEL = "dm-5", ENV {DM_UUID} = "part3-mpath-36001438009b064ce0000500000160000", OWNER = "grid", GROUP = "asmadmin", MODE = "0660"
 



Note: after the two machines are restarted, sometimes the aliases of dm in/dev/mapper/dm * are inconsistent. You can copy the/etc/multipath command from another machine. conf, and then restart to solve the problem.

Grant Permissions
Chown grid: asmadmin/dev/dm-* (3-11)
Chmod 777/dev/mapper/datalunp * (1-9)
 

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.