Oracle11gRAC在RHEL62(x8664)上成功安装

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

Oracle11gRAC实施文档1).HardwareRequirementsAllhardwareRequirementsisOK!2)YouarefreetochangetheIPaddressestosuityournetwork,butremembertostayconsistentwiththoseadjustmentsthroughouttherestofthearticle.Oncethebasicinstallationiscomplete,installthefollowingpackageswhilstloggedinastherootuser.Thisincludesthe64-bitand32-bitversionsofsomepackages.cd/media/GHOST/Packages#注意/media/GHOST/Packages为RHEL安装目录,根据实际情况进行调整。有些包需要从网上下载。rpm-Uvhbinutils-2.*rpm-Uvhcompat-libstdc++-33*rpm-Uvhelfutils-libelf-0.*rpm-Uvhelfutils-libelf-devel-*rpm-Uvhgcc-4.*rpm-Uvhgcc-c++-4.*rpm-Uvhglibc-2.*rpm-Uvhglibc-common-2.*rpm-Uvhglibc-devel-2.*rpm-Uvhglibc-headers-2.*rpm-Uvhksh-2*rpm-Uvhlibaio-0.*rpm-Uvhlibaio-devel-0.*rpm-Uvhlibgcc-4.*rpm-Uvhlibstdc++-4.*yuminstalllibstdc*rpm-Uvhlibstdc++-devel-4.*rpm-Uvhmake-3.*rpm-Uvhsysstat*rpm-UvhunixODBC-2.*rpm-UvhunixODBC-devel-2.*#InstallthefollowingpackagefromtheOraclegridmedia.cd/home/oracle/grid/rpmrpm-Uvhcvuqdisk*3)1.CreateOSgroupsusingthecommandbelow.Enterthesecommandsasthe'root'user:#/usr/sbin/groupadd-g501oinstall#/usr/sbin/groupadd-g502dba#/usr/sbin/groupadd-g504asmadmin#/usr/sbin/groupadd-g506asmdba#/usr/sbin/groupadd-g507asmoper2.CreatetheusersthatwillowntheOraclesoftwareusingthecommands:#/usr/sbin/useradd-u502-goinstall-Gdba,asmdbaoracle#/usr/sbin/useradd-u503-goinstall-Gasmadmin,asmdba,asmopergrid#注意501为编号,根据实际情况而定3.Setthepasswordfortheoracleaccountusingthefollowingcommand.Replacepasswordwithyourownpassword.#注意,下面是修改密码passwdoraclepasswdgrid3)IfyouarenotusingDNS,the/etc/hostsfilemustcontainthefollowinginformation.127.0.0.1localhost.localdomainlocalhost#Public172.33.10.3GIS-A.localdomainGIS-A172.33.10.4GIS-B.localdomainGIS-B#Private172.32.50.3GIS-A-priv.localdomainGIS-A-priv172.32.50.4GIS-B-priv.localdomainGIS-B-priv#Virtual172.33.10.19rac1-vip.localdomainrac1-vip172.33.10.20rac2-vip.localdomainrac2-vip#SCAN172.33.10.23rac-scan.localdomainrac-scan#注意,这些IP根据实际情况而定,GIS-A为服务器名称4)Addoramendthefollowinglinestothe/etc/sysctl.conffile.fs.aio-max-nr=1048576fs.file-max=6815744kernel.shmall=2097152kernel.shmmax=1054504960kernel.shmmni=4096#semaphores:semmsl,semmns,semopm,semmnikernel.sem=25032000100128net.ipv4.ip_local_port_range=900065500net.core.rmem_default=262144net.core.rmem_max=4194304net.core.wmem_default=262144net.core.wmem_max=1048586Runthefollowingcommandtochangethecurrentkernelparameters./sbin/sysctl-pAddthefollowinglinestothe/etc/security/limits.conffile.oraclesoftnproc2047oraclehardnproc16384oraclesoftnofile1024oraclehardnofile65536Addthefollowinglinestothe/etc/pam.d/loginfile,ifitdoesnotalreadyexist.sessionrequiredpam_limits.soDisablesecurelinuxbyeditingthe/etc/selinux/configfile,makingsuretheSELINUXflagissetasfollows.SELINUX=disabledAlternatively,thisalterationcanbedoneusingtheGUItool(SystemAdministrationSecurityLevelandFirewall).ClickontheSELinuxtabanddisablethefeature.EitherconfigureNTP,ormakesureitisnotconfiguredsotheOracleClusterTimeSynchronizationService(ctssd)cansynchronizethetimesoftheRACnodes.InthiscasewewilldeconfigureNTP.#servicentpdstopShuttingdownntpd:[OK]#chkconfigntpdoff#mv/etc/ntp.conf/etc/ntp.conf.orig#rm/var/run/ntpd.pidIfyouareusingNTP,youmustaddthe-xoptionintothefollowinglineinthe/etc/sysconfig/ntpdfile.OPTIONS=-x-untp:ntp-p/var/run/ntpd.pidThenrestartNTP.#servicentpdrestartCreatethedirectoriesinwhichtheOraclesoftwarewillbeinstalled.mkdir-p/u01/app/11.2.0/gridmkdir-p/u01/app/oracle/product/11.2.0/db_1chown-Roracle:oinstall/u01chmod-R775/u01/Loginastheoracleuserandaddthefollowinglinesattheendofthe.bash_profilefile.#此文件的文件格式很重要,最好copy其他服务器文件,进行修改。下面为grid用户下的.bash_profile。ORACLE_SID根据实际情况而定#.bash_profile#Getthealiasesandfunctionsif[-f~/.bashrc];then.~/.bashrcfi#UserspecificenvironmentandstartupprogramsPATH=$PATH:$HOME/binexportPATHaliasls=ls-FAORACLE_SID=+ASM2;exportORACLE_SIDORACLE_BASE=/u01/app/grid;exportORACLE_BASEORACLE_HOME=/u01/app/11.2.0/grid;exportORACLE_HOMEORACLE_PATH=/u01/app/oracle/common/oracle/sql;exportORACLE_PATHORACLE_TERM=xterm;exportORACLE_TERMNLS_DATE_FORMAT=DD-MON-YYYYHH24:MI:SS;exportNLS_DATE_FORMATTNS_ADMIN=$ORACLE_HOME/network/admin;exportTNS_ADMINORA_NLS11=$ORACLE_HOME/nls/data;exportORA_NLS11NLS_LANG=AMERICAN_AMERICA.ZHS16GBK;exportNLS_LANGPATH=.:${JAVA_HOME}/bin:${PATH}:$HOME/bin:$ORACLE_HOME/binPATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/binPATH=${PATH}:/u01/app/common/oracle/binexportPATHLD_LIBRARY_PATH=$ORACLE_HOME/libLD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/libLD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/libexportLD_LIBRARY_PATHCLASSPATH=$ORACLE_HOME/JRECLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlibCLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlibCLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlibexportCLASSPATHTHREADS_FLAG=native;exportTHREADS_FLAGexportTEMP=/tmpexportTMPDIR=/tmpumask022aliassqlplus=rlwrapsqlplusaliasrman=rlwraprmanaliasggsci=rlwrapggscialiaslogdump=rlwraplogdumpaliasasmcmd=rlwrapasmcmdaliasbase=cd$ORACLE_BASEaliashome=cd$ORACLE_HOME用UDEV挂接存储如果用下面的这种方式编辑规则文件,udev设置是可以出来的编辑more99-oracle-asmdevices.rul

1 / 34
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功