3. Install the operating system
3.1 On the VMware console, double-click the CD-ROM device on the right panel and select ISO image to start the virtual machine;
3.2 The middle most of the default can be, select Manual partition, first only divided SDA:
file system type: Swap 1500M mount point:/ File system type: ext3 remaining space
3.3 Network configuration:
Select and edit the eth0 IP address: Enter 192.168. 220.8 "netmask: Input" 255.255. 255.0 ". Select and edit the eth1 IP address: Enter192.168. 32.101 ". Netmask: Enter "255.255." 255.0 ". Host name "Rac1" Gateway: Enter "192.168. 0.1
3.4 Firewall
Select No Firewall
3.5 Complete
Other defaults are available.
4. Oracle Environment Configuration
4.1 Creating an Oracle User
# Groupadd Oinstall
# Groupadd DBA
# mkdir-p/U01/ORACLE/OCFS
# USERADD-G OINSTALL-G dba Oracle
# chown Oracle:dba/u01/oracle/u01
# passwd Oracle
New Password:
Re-enter new Password:
Passwd:password successfully changed for Oracle
4.2oracle Environment files
[Email protected] ~]$ vi. bash_profileexport oracle_sid=orcl1export oracle_base=/u01/ Oracleexport oracle_home= $ORACLE _base/product/10.2. 0/db_1export ora_crs_home= $ORACLE _base/product/10.2. 0/crs_1export ld_library_path= $ORACLE _home/libexport PATH= $ORACLE _home/bin: $ORA _crs_ home/022~]$ source. bash_profile
4.3 File system directory structure
[Email protected] ~]$ mkdir-p $ORACLE _base/~]$ mkdir-~]$ mkdir-~]$ mkdir-p/u01/oracle/ora Data/orcl
4.4 Increase the shell limit for Oracle users (Root)
Add the lines listed below to/etc/security/limits.conf,/etc/pam.d/login, and/etc/Profile su-ROOTVI/etc/security/limits.conforacle Soft Nproc2047Oracle Hard Nproc16384Oracle Soft Nofile1024x768Oracle Hard Nofile65536Modify/etc/pam.d/Loginvi/etc/pam.d/Loginsession Required/lib/security/pam_limits.sosession Required pam_limits.so Modify VI/etc/Profile VI/etc/ Profileif[$USER ="Oracle" ]; Thenif[$SHELL ="/bin/ksh" ]; Thenulimit-P16384Ulimit-N65536ElseUlimit-U16384-N65536Fifi
4.5 Installing Enterprise Linux software packages
Rpm-q--QF'%{name}-%{version}-%{release} (%{arch}) \ n'binutils Compat-libstdc++- -elfutils-libelf elfutils-libelf-devel gcc gcc-c++glibc glibc-Common glibc-devel Libaio LIBGCC Libaio-devel LIBGCC libstdc++-devel libstdc++Make numactl-devel sysstat LIBXP DF-HCD/media/enterprise\ linux\ dvd\20100405/server/rpm–ivhrpm-IVH libgomp-4.4.0-6. el5.*rpm-IVH gcc-4.1.2- -. el5.x86_64.rpmrpm-IVH libstdc++-devel-4.1.2- -. el5.*rpm-IVH gcc-c++-4.1.2- -. el5.x86_64.rpmrpm-IVH libaio-devel-0.3.106-5.*rpm-IVH numactl-devel-0.9.8- One. el5.*rpm-IVH sysstat-7.0.2-3. el5.x86_64.rpmrpm-IVH libxp-1.0.0-8.1. el5.*
4.6 Configuring kernel parameters, root user
vi/etc/Sysctl.confkernel.shmall=2097152Kernel.shmmax=2147483648Kernel.shmmni=4096Kernel.sem= - 32000 - -Fs.file-max =65536Net.ipv4.ip_local_port_range=1024x768 65000Net.core.rmem_default=1048576Net.core.rmem_max=1048576Net.core.wmem_default=262144Net.core.wmem_max=262144Executive Chkconfig/etc/sysctl.conf
4.7 Modify/etc/hosts File
[Email protected] ~]# vi/etc/hosts192.168. 220.8 rac1192.168. 220.3 rac1-vip192.168. 32.101 rac1-priv192.168. 220.9 rac2192.168. 220.4 rac2-vip192.168. 32.102 Rac2-priv
4.8 Configuring the Hangcheck Timer kernel module
[Email protected] ~]# vi/etc/rc.local modprobe hangcheck-timer hangcheck-tick= the
4.9 Creating disk partitions for OCFS2 and Oracle ASM
[[Email protected] ~] #fdisk/dev/~] #fdisk/dev/~] #fdisk/dev/~] #fdisk/dev/ SDE one partition per disk, enter n-p-1->->-W disk partition not starting from 1, starting from 10
4.10 Installing the Oracleasmlib Package
[Email protected] server]# RPM-IVH oracleasm-support-2.1.3-1. el5.x86_64.rpm warning:oracleasm-support-2.1.3-1. El5.x86_64.rpm:Header V3 DSA signature:nokey, key ID 1e5e0159preparing ... ########################## ################# [ -%]1: Oracleasm-support ########################################### [ -%][[email protected] server]# rpm-IVH oracleasm-2.6. --194. el5-2.0.5-1. el5.x86_64.rpm warning:oracleasm-2.6. --194. el5-2.0.5-1. El5.x86_64.rpm:Header V3 DSA signature:nokey, key ID 1e5e0159preparing ... ########################## ################# [ -%]1: oracleasm-2.6. --194. el########################################### [ -%] Check the installed ASM packages. [Email protected] server]# rpm-qa |grep oracleasmoracleasm-support-2.0.3-2--Select Install Oracleasm when installing the system-2.6.9-42.0.0.0.1. elsmp-2.0.3-2--Select Install Oracleasmlib when installing the system-2.0.2-1--manually installed (b) This environment uses Asmlib to create ASM, so you need to install three ASM packages, and be careful to select the version that corresponds to the core of the operating system. Run the"Uname-r"command on your machine to determine your kernel version. The corresponding package has the name oracleasm-<kernel_version>.-----Supplemental oracleasm:http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html
4.11 Mapping the original device for ASM disks
[Email protected]1 ~]# vi/etc/udev/rules.d/ --raw.rulesaction=="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"KERNEL=="Raw[1-4]", owner="Oracle", group="Oinstall", mode="0660"Restart service [[email protected] tmp]# Start_udev authentication: [[email protected]~]# ls/dev/raw/-Ltotal0CRW-RW----1Oracle Oinstall162,1Nov - One:TenRAW1CRW-RW----1Oracle Oinstall162,2Nov - One:TenRAW2CRW-RW----1Oracle Oinstall162,3Nov - One:TenRAW3CRW-RW----1Oracle Oinstall162,4Nov - One:TenRaw4
Oracle RAC Build (ii)-Operating system installation and configuration