ORACEL10.2.0.1RACFORREDHAT5.4(64BIT)安装文档作者:魔心之泪1、安装环境[root@10grac1~]#uname-aLinux10grac12.6.18-164.el5#1SMPTueAug1815:51:48EDT2009x86_64x86_64x86_64GNU/Linux[root@10grac1~]#lsb_releaseLSBVersion::core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch2、安装前系统配置2.1存储规划名称映射裸设备大小OCR/dev/sdb1/dev/raw/raw1300M/dev/sdb2/dev/raw/raw2300MVotingDisk/dev/sdb3/dev/raw/raw3300M/dev/sdb5/dev/raw/raw5300M/dev/sdb6/dev/raw/raw6300MDATA/dev/sdb7/dev/raw/raw75G/dev/sdb8/dev/raw/raw85G/dev/sdb9/dev/raw/raw95G/dev/sdb10/dev/raw/raw105G/dev/sdb11/dev/raw/raw115GARCHIVE_LOG/dev/sdb12/dev/raw/raw125G/dev/sdb13/dev/raw/raw135GFLASH_RECOVERY_AREA/dev/sdb14/dev/raw/raw145G/dev/sdb15/dev/raw/raw155G2.2IP地址规划主机名称db1db2eth0IP(PUBLIC)10.238.78.5410.238.78.55eth0IP(VIP)10.238.78.5610.238.78.57eth1(PRIV)10.0.0.110.0.0.2SID10grac110grac2ORACLE版本10.2.0.1修改所有节点hosts文件[root@localhost~]#cat/etc/hosts#Donotremovethefollowingline,orvariousprograms#thatrequirenetworkfunctionalitywillfail.127.0.0.1localhost.localdomainlocalhost10.238.78.5410grac110.238.78.5510grac2192.168.0.110gpriv1192.168.0.210gpriv210.238.78.5610gvip110.238.78.5710gvip22.3创建用户、组(所有节点)groupaddoinstallgroupadddbauseradd-goinstall-Gdbaoraclemkdir-p/oraclechown-Roracle:oinstall/oraclechmod-R775/oracle2.4配置环境变量exportORACLE_SID=10grac1#节点2为10grac2exportORACLE_BASE=/oracle/dbexportORACLE_HOME=/oracle/db/10gexportORA_CRS_HOME=/oracle/db/crsexportPATH=$ORACLE_HOME/bin:$PATH:$ORA_CRS_HOME/binexportTEMP=/tmpexportTMPDIR=/tmpumask0222.5系统参数调整2.5.1配置NTP服务(所有节点)LINUX客户端使用ntpdate10.238.73.76来向NTP服务器同步自己的时间其它LINUX如果仅作为只客户端的话,则不能启动ntpd服务!否则无法运行ntpdata服务器地址来同步时间之后可以使用cron或修改crontab文件定期向NTP服务器更新时间,并用#hwclock--systohc将系统时间设置为硬件时间[root@10grac1~]#crontab-l*/15****ntpdate10.238.73.762.5.2系统内核调整1)修改每个节点系统内核参数./etc/sysctl.conf#vi/etc/sysctl.conf然后加入如下内容kernel.shmall=2097152kernel.shmmax=2147483648kernel.shmmni=4096kernel.sem=25032000100128fs.file-max=65536net.ipv4.ip_local_port_range=102465000net.core.rmem_default=262144net.core.rmem_max=262144net.core.wmem_default=262144net.core.wmem_max=2621442)修改每个节点/etc/pam.d/login将下面一行添加到/etc/pam.d/login文件中:sessionrequiredpam_limits.so3)修改每个节点/etc/security/limits.confvi/etc/security/limits.conf行末添加以下内容#usefororacle*softnproc2047*hardnproc161664*softnofile1024*hardnofile655364)配置每个节点的hangcheck_timer内核echooptionshangcheck-timerhangcheck_tick=30hangcheck_margin=180/etc/modprobe.confecho/sbin/modprobehangcheck-timer/etc/rc.local/sbin/modprobehangcheck-timer检查是否成功启动grephangcheck/var/log/messages|tail-22.5.3关闭所有节点防火墙serviceiptablesstatusserviceiptablesstopchkconfigiptablesoffchkconfigiptables--list设置/etc/selinux/config文件,将SELINUX设置为disabled[root@db1~]#cat/etc/selinux/config#ThisfilecontrolsthestateofSELinuxonthesystem.#SELINUX=cantakeoneofthesethreevalues:#enforcing-SELinuxsecuritypolicyisenforced.#permissive-SELinuxprintswarningsinsteadofenforcing.#disabled-NoSELinuxpolicyisloaded.SELINUX=disabled#SELINUXTYPE=cantakeoneofthesetwovalues:#targeted-Targetedprocessesareprotected,#mls-MultiLevelSecurityprotection.SELINUXTYPE=targeted2.6建立用户等效性#oracle用户所有节点ssh-keygen-tdsassh-keygen-trsacd.sshtouchauthorized_keyscatid_rsa.pubauthorized_keyscatid_dsa.pubauthorized_keys#oracle执行#10grac1执行ssh10grac2cat/home/oracle/.ssh/id_rsa.pubauthorized_keysssh10grac2cat/home/oracle/.ssh/id_dsa.pubauthorized_keys#10grac2执行ssh10grac1cat/home/oracle/.ssh/id_rsa.pubauthorized_keysssh10grac1cat/home/oracle/.ssh/id_dsa.pubauthorized_keys2.7存储分区2.8绑定裸设备vi/etc/udev/rules.d/60-raw.rules#Enterrawdevicebindingshere.##Anexamplewouldbe:#ACTION==add,KERNEL==sda,RUN+=/bin/raw/dev/raw/raw1%N#tobind/dev/raw/raw1to/dev/sda,or#ACTION==add,ENV{MAJOR}==8,ENV{MINOR}==1,RUN+=/bin/raw/dev/raw/raw2%M%m#tobind/dev/raw/raw2tothedevicewithmajor8,minor1.#forocrACTION==add,KERNEL==sdb1,RUN+=/bin/raw/dev/raw/raw1%NACTION==add,KERNEL==sdb2,RUN+=/bin/raw/dev/raw/raw2%N#forvotingdiskACTION==add,KERNEL==sdb3,RUN+=/bin/raw/dev/raw/raw3%NACTION==add,KERNEL==sdb5,RUN+=/bin/raw/dev/raw/raw5%NACTION==add,KERNEL==sdb6,RUN+=/bin/raw/dev/raw/raw6%N#fordataACTION==add,KERNEL==sdb7,RUN+=/bin/raw/dev/raw/raw7%NACTION==add,KERNEL==sdb8,RUN+=/bin/raw/dev/raw/raw8%NACTION==add,KERNEL==sdb9,RUN+=/bin/raw/dev/raw/raw9%NACTION==add,KERNEL==sdb10,RUN+=/bin/raw/dev/raw/raw10%NACTION==add,KERNEL==sdb11,RUN+=/bin/raw/dev/raw/raw11%N#forFlashAreaACTION==add,KERNEL==sdb12,RUN+=/bin/raw/dev/raw/raw12%NACTION==add,KERNEL==sdb13,RUN+=/bin/raw/dev/raw/raw13%N#forarchivelogACTION==add,KERNEL==sdb14,RUN+=/bin/raw/dev/raw/raw14%NACTION==add,KERNEL==sdb15,RUN+=/bin/raw/dev/raw/raw15%NKERNEL==raw[1-9]*,OWNER=oracle,GROUP=dba,MODE=660重启UDEV:#/sbin/start_udev以上内容需要在所有节点执行验证:[root@10grac1dev]#ll/dev/raw总计0crw-rw----1oracledba162,103-0617:47raw1crw-rw----1oracledba162,203-0617:47raw2crw-rw----1oracledba162,303-0617:47raw3crw-rw----1oracledba162,503-0617:47raw5crw-rw----1oracledba162,603-0617:47raw62.9配置本地YUM源后续安装过程中可能会要求安装linuxrpm包,用yum来安装比较方便1)将redhat5,4光盘挂载或上传到服务器上mkdir/EOMS35UPLOAD/11g/rhel-se