Oracle 11g Grid Installation
1. Create Oracle users and user groups
Groupadd Oinstall
Groupadd dba
USERADD-G oinstall-g dba-m Oracle
To set the password for an Oracle User:
passwd Oracle
I'm set up here for Oracle
2. Create related catalogue
Mkdir-p/u01
Chown-r oracle.oinstall/u01
3. Modify the Oracle User environment variables
Su-oracle
VI. bash_profile
Export PATH
Export Oracle_sid=+asm
Export Oracle_base=/u01/app/oracle
Export Oracle_home= $ORACLE _base/product/11.2.0/grid
Export path= $ORACLE _home/bin: $PATH
4, vi/etc/sysctl.conf
Kernel.shmmax = 4046471168
Kernel.shmmni = 4096
Kernel.shmall = 2097152
Kernel.sem = 250 32000 100 128
Fs.file-max = 6815744
Net.ipv4.ip_local_port_range = 9000 65500
Net.core.rmem_default = 262144
Net.core.rmem_max = 4194304
Net.core.wmem_default = 262144
Net.core.wmem_max = 1048576
FS.AIO-MAX-NR = 1048576
Execute the following command: Make kernel parameters effective
Sysctl-p
5. Modify the Linux shell parameters
Vi/etc/security/limits.conf
Oracle Soft Nofile 65536
Oracle Hard Nofile 65536
Oracle Soft Nproc 16384
Oracle Hard Nproc 16384
6, Vim/etc/pam.d/login
SessionRequired pam_limits.so
7. Shared directory (/MNT/HGFS)
[email protected] ~]# mount
/dev/mapper/vg_oel-lv_root on/type ext4 (rw)
Proc On/proc type proc (rw)
Sysfs On/sys type SYSFS (rw)
Devpts on/dev/pts type devpts (rw,gid=5,mode=620)
Tmpfs on/dev/shm type Tmpfs (rw,rootcontext= "System_u:object_r:tmpfs_t:s0")
/DEV/SDA1 on/boot type EXT4 (rw)
None On/proc/sys/fs/binfmt_misc type Binfmt_misc (rw)
. host:/On/mnt/hgfs Type Vmhgfs (rw,ttl=1)
Vmware-vmblock on/var/run/vmblock-fuse type Fuse.vmware-vmblock (rw,nosuid,nodev,default_permissions,allow_other)
Sunrpc on/var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
8. Create 8 fast 2G ASM Storage
Mount image File
Mount
Fdisk-l
[email protected] hgfs]# LL
Total 4
Drwxrwxrwx. 1 root root 4096 May 5 19:37 soft
[Email protected] hgfs]# fdisk-l
disk/dev/sda:32.2 GB, 32212254720 bytes
255 heads, Sectors/track, 3916 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk IDENTIFIER:0X00037AB3
Device Boot Start End Blocks Id System
/DEV/SDA1 * 1 512000 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 3917 30944256 8e Linux LVM
disk/dev/sdc:2147 MB, 2147483648 bytes
255 heads, Sectors/track, 261 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk identifier:0x00000000
disk/dev/sdd:2147 MB, 2147483648 bytes
255 heads, Sectors/track, 261 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk identifier:0x00000000
disk/dev/sdb:2147 MB, 2147483648 bytes
255 heads, Sectors/track, 261 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk identifier:0x00000000
disk/dev/sde:2147 MB, 2147483648 bytes
255 heads, Sectors/track, 261 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk identifier:0x00000000
disk/dev/sdf:2147 MB, 2147483648 bytes
255 heads, Sectors/track, 261 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk identifier:0x00000000
disk/dev/sdg:2147 MB, 2147483648 bytes
255 heads, Sectors/track, 261 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk identifier:0x00000000
disk/dev/sdh:2147 MB, 2147483648 bytes
255 heads, Sectors/track, 261 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk identifier:0x00000000
disk/dev/sdi:2147 MB, 2147483648 bytes
255 heads, Sectors/track, 261 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk identifier:0x00000000
disk/dev/mapper/vg_oel-lv_root:23.3 GB, 23295164416 bytes
255 heads, Sectors/track, 2832 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk identifier:0x00000000
disk/dev/mapper/vg_oel-lv_swap:8388 MB, 8388608000 bytes
255 heads, Sectors/track, 1019 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk identifier:0x00000000
Mkdir/mnt/iso
Mount-o Loop/mnt/hgfs/soft/v17794-01/enterprise-r5-u4-server-x86_64-dvd.iso/mnt/iso
9. Configure the Yum source
Vim/etc/yum.repos.d/myoel.repo
[Dvdinfo]
Name=myoel
Baseurl=file:///mnt/iso/server
Enabled=1
Gpgcheck=0
Yum Makecache
10. Logical volume division of the disk
Fdisk/dev/sdb
N P 1 return car enter W save exit
Fdisk/dev/sdc
Fdisk/dev/sdd
Fdisk/dev/sde
Fdisk/dev/sdf
Fdisk/dev/sdg
Fdisk/dev/sdh
Fdisk/dev/sdi
Configuring Udev to generate bare devices
Vim/etc/udev/rules.d/60-raw.rules
action== "Add", kernel== "sdb1", run+= "/bin/raw/dev/raw/raw1%N"
action== "Add", kernel== "SDC1", run+= "/bin/raw/dev/raw/raw2%N"
action== "Add", kernel== "Sdd1", run+= "/bin/raw/dev/raw/raw3%N"
action== "Add", kernel== "Sde1", run+= "/bin/raw/dev/raw/raw4%N"
action== "Add", kernel== "Sdf1", run+= "/bin/raw/dev/raw/raw5%N"
action== "Add", kernel== "SDG1", run+= "/bin/raw/dev/raw/raw6%N"
action== "Add", kernel== "Sdh1", run+= "/bin/raw/dev/raw/raw7%N"
action== "Add", kernel== "Sdi1", run+= "/bin/raw/dev/raw/raw8%N"
kernel== "raw[1]", mode= "0660", group= "Oinstall", owner= "Oracle"
kernel== "raw[2]", mode= "0660", group= "Oinstall", owner= "Oracle"
kernel== "Raw[3]", mode= "0660", group= "Oinstall", owner= "Oracle"
kernel== "Raw[4]", mode= "0660", group= "Oinstall", owner= "Oracle"
kernel== "Raw[5]", mode= "0660", group= "Oinstall", owner= "Oracle"
kernel== "Raw[6]", mode= "0660", group= "Oinstall", owner= "Oracle"
kernel== "Raw[7]", mode= "0660", group= "Oinstall", owner= "Oracle"
kernel== "Raw[8]", mode= "0660", group= "Oinstall", owner= "Oracle"
Start the Udev service
Start_udev
View Bare Devices
Raw-qa
[Email protected] ~]# RAW-QA
/DEV/RAW/RAW1:bound to major 8, minor 17
/DEV/RAW/RAW2:bound to Major 8, minor 33
/DEV/RAW/RAW3:bound to major 8, minor 49
/DEV/RAW/RAW4:bound to major 8, minor 65
/DEV/RAW/RAW5:bound to major 8, minor 81
/DEV/RAW/RAW6:bound to major 8, minor 97
/DEV/RAW/RAW7:bound to major 8, minor 113
/DEV/RAW/RAW8:bound to major 8, minor 129
11. Unzip the grid installation media
Root
Xhost +
Mkdir-p/u01/app/oracle/product/11.2.0/grid
Mkdir-p/u01/app/oracle
Su-oracle
./runinstaller
Install the following:
The first step:
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/94/C6/wKiom1kNmvywl0ZUAAG_W1h2QHI037.png "title=" 1.png "Width=" "height=" 530 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px;height:530px; "alt=" Wkiom1knmvywl0zuaag_w1h2qhi037.png "/>
Step Two:
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/94/C5/wKioL1kNm1CAXINTAAHr9-b9NV4008.png "title=" 2.png "Width=" "height=" 530 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px;height:530px; "alt=" Wkiol1knm1caxintaahr9-b9nv4008.png "/>
Step Three:
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/94/C6/wKiom1kNm37wGlA5AAIlJ9XwdUQ018.png "title=" 3.png "Width=" "height=" 526 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px;height:526px; "alt=" Wkiom1knm37wgla5aailj9xwduq018.png "/>
Fourth Step:
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/94/C6/wKiom1kNm6iDgAE2AAH8sWAM7jg461.png "title=" 4.png "Width=" "height=" 526 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px;height:526px; "alt=" Wkiom1knm6idgae2aah8swam7jg461.png "/>
Fifth Step:
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/94/C6/wKiom1kNm9Pz9lgWAAHWzMLtWVc064.png "title=" 5.png "Width=" "height=" 526 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px;height:526px; "alt=" Wkiom1knm9pz9lgwaahwzmltwvc064.png "/>
Sixth step:
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/94/C5/wKioL1kNnAGQGJJsAAHzgYxw5ao020.png "title=" 6.png "Width=" "height=" 534 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px;height:534px; "alt=" Wkiol1knnagqgjjsaahzgyxw5ao020.png "/>
7th step:
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/94/C5/wKioL1kNnCWwneFLAAHKxAd1zpM012.png "title=" 7.png "Width=" "height=" 538 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px;height:538px; "alt=" Wkiol1knncwwneflaahkxad1zpm012.png "/>
Eighth Step:
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/94/C6/wKiom1kNnFbBz28hAAHvTZFLnp0978.png "title=" 8.png "Width=" "height=" 530 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px;height:530px; "alt=" Wkiom1knnfbbz28haahvtzflnp0978.png "/>
9th step:
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/94/C6/wKiom1kNnHaBRPX1AAIeD_dr7rU464.png "title=" 9.png "Width=" "height=" 534 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px;height:534px; "alt=" Wkiom1knnhabrpx1aaied_dr7ru464.png "/>
Execute 2 scripts with root user
/u01/app/orainventory/orainstroot.sh
/u01/app/oracle/product/11.2.0/grid/root.sh
After installation is complete
Viewing the ASM Process
Crs_stat-t
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/94/C6/wKiom1kNnKmgqVqTAABgAB405uw350.png "title=" 10. PNG "width=" "height=" 232 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px;height:232px; "alt=" Wkiom1knnkmgqvqtaabgab405uw350.png "/>
The installation is complete!
This article is from the "Liang blog" blog, make sure to keep this source http://7038006.blog.51cto.com/7028006/1922719
Oracle 11g Grid Installation