Previous installation summary, now put it out, although 10g now slowly less, but also have a lot of production library run 10g.
1.
Vi/etc/hosts
10.168.39.243 ORCLDB1
10.168.39.245 ORCLDB2
192.168.39.243 Orcldb1-priv
192.168.39.245 Orcldb2-priv
10.168.39.242 ORCLDB1-VIP
10.168.39.244 ORCLDB2-VIP
2.
Groupadd Oinstall
Groupadd dba
Useradd-g oinstall-g dba-d/oracle Oracle
USERADD-G oinstall-g dba Oracle
passwd Oracle
ID Oracle
Mkdir-p/oracle/product/10.2.0/crs_1
Mkdir-p/oracle/product/10.2.0/db_1
Mkdir-p/orainventory
Chown-r oracle:oinstall/oracle
Chown-r oracle:oinstall/orainventory
Chmod-r 775/oracle
Chmod-r 775/orainventory
Su-oracle
Vi.bash_prifole
# Oracle Settings
tmp=/tmp; Export TMP
Tmpdir= $TMP; Export TMPDIR
Oracle_base=/oracle; Export Oracle_base
Oracle_home= $ORACLE _base/product/10.2.0/db_1; Export Oracle_home
Nls_lang=american_america. ZHS16GBK; Export Nls_lang
ora_nls33= $ORACLE _home/common/nls/admin/data; Export ORA_NLS33
ORACLE_SID=ORCL1; Export Oracle_sid
Crs_home=/oracle/product/10.2.0/crs_1; Export Crs_home
Oracle_term=xterm; Export Oracle_term
Path=/usr/sbin: $PATH; Export PATH
Path= $ORACLE _home/bin: $CRS _home/bin: $PATH; Export PATH
Ld_library_path= $ORACLE _home/lib:/lib:/usr/lib:/usr/local/lib; Export Ld_library_path
Export tns_names= $ORACLE _home/network/admin
Classpath= $ORACLE _home/jre: $ORACLE _home/jlib: $ORACLE _home/rdbms/jlib: $ORACLE _home/network/jlib; Export CLASSPATH
Stty Erase ^h
Su-root
Vi/etc/sysctl.conf
Kernel.shmmni = 4096
Kernel.sem = 250 32000 100 128
Fs.file-max = 65536
Net.ipv4.ip_local_port_range = 1024 65000
Net.core.rmem_default = 1048576
Net.core.rmem_max = 1048576
Net.core.wmem_default = 262144
Net.core.wmem_max = 262144
Sysctl-p
Vi/etc/security/limits.conf
Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536
Vi/etc/pam.d/login
Session required/lib/security/pam_limits.so
Vi/etc/rc.local
Modprobe Hangcheck-timer hangcheck-tick=30 hangcheck_margin=180
Crontab-e
* * * * */usr/sbin/ntpdate-u 10.168.192.10
* * * */usr/sbin/ntpdate-u 10.168.192.33
Installing RPM Packages
Raw Bindings
Node 1:
disk/dev/sdb:107.3 GB, 107374182400 byte
disk/dev/sdc:1073 MB, 1073741824 bytes
disk/dev/sdd:1073 MB, 1073741824 bytes
disk/dev/sde:1073 MB, 1073741824 bytes
disk/dev/sdf:1073 MB, 1073741824 bytes
disk/dev/sdg:1073 MB, 1073741824 bytes
disk/dev/sdh:429.4 GB, 429496729600 bytes
disk/dev/sdi:429.4 GB, 429496729600 bytes
Node 2:
disk/dev/sdb:107.3 GB, 107374182400 bytes
disk/dev/sdc:1073 MB, 1073741824 bytes
disk/dev/sdd:1073 MB, 1073741824 bytes
disk/dev/sde:1073 MB, 1073741824 bytes
disk/dev/sdf:1073 MB, 1073741824 bytes
disk/dev/sdg:1073 MB, 1073741824 bytes
disk/dev/sdh:429.4 GB, 429496729600 bytes
disk/dev/sdi:429.4 GB, 429496729600 bytes
/etc/sysconfig/rawdevices
/dev/raw/raw1/dev/sdc
/dev/raw/raw2/dev/sdd
/dev/raw/raw3/dev/sde
/dev/raw/raw4/dev/sdf
/dev/raw/raw5/dev/sdg
/dev/raw/raw6/dev/sdh
/dev/raw/raw7/dev/sdi
UDEV
Vi/etc/udev/rules.d/60-raw.rules
kernel== "Raw[1-2]", owner= "root", group= "Oinstall", mode= "640"
kernel== "raw[3-9]", owner= "Oracle", group= "Oinstall", mode= "660"
Chkconfig--list rawdevices
Service Rawdevices Restart
Ll/dev/raw to see the authority changed.
Ping each other PIP and private network IP
Two nodes
Su-oracle
mkdir ~/.ssh
chmod ~/.ssh
ssh-keygen-t RSA ######### #输入与oracle不同的口令或者空
Ssh-keygen-t DSA ######### #输入与oracle不同的口令或者空
Node 1
Cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
Cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
SSH orcldb2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
SSH orcldb2 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
SCP ~/.ssh/authorized_keys Orcldb2:~/.ssh/authorized_keys
Two machines executing each other to see if you still need to enter a password
SSH orcldb1 Date
SSH orcldb2 Date
SSH Orcldb1-priv Date
SSH Orcldb2-priv Date
Live: Create Oracle users try not to specify the path as-D. No permissions problem ssh is not going to get through.
Switch to Node2 execution
SSH orcldb1 Date
SSH orcldb2 Date
SSH Orcldb1-priv Date
SSH Orcldb2-priv Date
Installing the Cluster software
./runinstaller-ignoresysprereqs
Then the graphical interface is skipped, and the patch needs to be installed when using multipath under Patch P4679769,linux before the last execution of root.sh.
Clsfmt.bin This file covers up to two nodes $crs_home/bin
Execute./CLSFMT OCR/DEV/RAW/RAW1 Test
Also refer to http://blog.csdn.net/tianlesoft/article/details/6039210 for details.
Two nodes modified VIPCA and srvctl before executing root.sh
If ["$arch" = "i686"-o "$arch" = "ia64"]
Then
ld_assume_kernel=2.4.19
Export Ld_assume_kernel
Fi
#End Workaround
Add a new line after FI:
Unset Ld_assume_kernel
Find the following:
ld_assume_kernel=2.4.19
Export Ld_assume_kernel
Also add a new line later:
Unset Ld_assume_kernel
CSS is active in all nodes.
Waiting for the Oracle CRSD and EVMD to start
Oracle CRS Stack installed and running under init (1M)
Running VIPCA (silent) for configuring Nodeapps
Error 0 (Native:listnetinterfaces:[3])
[Error 0 (native:listnetinterfaces:[3])]
./oifcfg Setif-global Eth2/10.230.39.224:public
./oifcfg Setif-global Eth3/192.168.39.0:cluster_interconnect
./oifcfg Getif
Executive VIPCA
Linux5.5 Installing the 10g RAC