




已阅读5页,还剩20页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Install oracle 10R2 RAC with HACMP 5.2 on IBM AIX 5.3软件环境 AIX5L5.3ML4 AIX补丁 HACMP5.2 Oracle Oracle补丁 硬件环境 RS60002台 (每台主机有4个以太网网卡、2个光纤卡、一个串口) 光纤磁盘阵列DS43001台1、 安装aix系统 扩充/2gb 扩充/home4gb 扩充/usr4gb 扩充/var4gb 扩充/tmp2gb 扩充/opt20gb 扩充/var/adm/ras/platform1gb /etc/hosts文件 01 rac1 02 rac2 03 rac1vip 04 rac2vip 01 rac1priv 02 rac2priv 2、 在rac1和rac2上,创建oinstall、dba、hagsuser组 /bin/mkgroupoinstall /bin/mkgroupdba /bin/mkgrouphagsuser 3、 在rac1和rac2上,创建oracle用户: #smittyuser AddaUser Typeorselectvaluesinentryfields. PressEnterAFTERmakingalldesiredchanges. *UserNAMEoracle UserID500 PrimaryGROUPoinstall GroupSETdba,hagsuser SoftFILEsize-1 SoftCPUtime-1 SoftDATAsegment-1 SoftSTACKsize-1 保证两台主机的组号要一致! /etc/group oinstall:!:203: dba:!:204: hagsuser:!:205: #idoracle uid=500(oracle)gid=203(oinstall)groups=204(dba),205(hagsuser) 4、 配置系统配置参数 配置每用户的最大进程数、调整watermark smittychgsys MaximumnumberofPROCESSESallowedperuser4096 HIGHwatermarkforpendingwriteI/Osperfile33 LOWwatermarkforpendingwriteI/Osperfile24 StackExecutionDisable(SED)Modeoff 配置网络可调参数 修改文件/etc/,将如下几行加到文件的尾部: if-f/usr/sbin/nothen /usr/sbin/no-p-oudp_sendspace=65536 /usr/sbin/no-p-oudp_recvspace=655360 /usr/sbin/no-p-otcp_sendspace=65536 /usr/sbin/no-p-otcp_recvspace=65536 /usr/sbin/no-p-orfc1323=1 /usr/sbin/no-p-osb_max=1310720 /usr/sbin/no-r-oipqmaxlen=512 fi 修改异步I/O(须重启) smittychgaio EntryFields MINIMUMnumberofservers30# MAXIMUMnumberofservers60# maximumnumberofREQUESTS4096# serverPRIORITY39# STATEtobeconfiguredatsystemrestartavailable+ Stateoffastpathenable+ #mkdevlaio0使异步I/O可用 调整syncd频率 修改文件/sbin/rc.boot #nohup/usr/sbin/syncd60/dev/null2&1& nohup/usr/sbin/syncd10/dev/null2&1& 5、 创建串口设备 smittymktty 测试串口设备 cat/dev/tty0 6、 安装oracle、hacmp支持包 smittyinstallp 需要安装以下操作系统包: Bos.adt bos.cifs_fs Bos.clvm pat bos.data Bos.perf rsct.basic pat.basic pat.clients rsct.core (在扩展盘上HACMP5.2不需要,5.3需要) rsct.exp.cimrm (以下包在AIXToolboxforLinuxApplications盘上,安装SSH的前提包) openssl-0.9.7g openssl-devel-0.9.7g openssl-doc-0.9.7g (以下包在扩展盘上) openssh.base openssh.license openssh.man.en_US 要将license改为接受! (在网上download) xlC.aix50.rte: xlC.rte: 7、 安装hacmp软件 smittyinstallp 8、 安装磁盘阵列,创建共享卷 准备磁盘阵列 #hostname rac1 #lspv hdisk00002e54aa58657e9rootvgactive hdisk10002657c5acf302bNone hdisk20002657c4d26e7baNone hdisk30002657c5acf4bc3None hdisk40002657c4cc04d52None hdisk50002ee503cc8dcaaNone # #hostname rac2 #lspv hdisk00002e5baa58258aarootvgactive hdisk10002657c5acf302bNone hdisk20002657c4d26e7baNone hdisk30002657c5acf4bc3None hdisk40002657c4cc04d52None hdisk50002ee503cc8dcaaNone 创建一个并行vg名字为oracle_vg #hostname rac1 # #smittymkvg AddaBigVolumeGroup Typeorselectvaluesinentryfields. PressEnterAFTERmakingalldesiredchanges. EntryFields VOLUMEGROUPnameoracle_vg PhysicalpartitionSIZEinmegabytes128 *PHYSICALVOLUMEnameshdisk5 Forcethecreationofavolumegroup?yes ActivatevolumegroupAUTOMATICALLYno atsystemrestart? VolumeGroupMAJORNUMBER60 CreateVGConcurrentCapable?enhancedconcurrent #varyonvgoracle_vg 创建oracle使用的并行卷 mklv-ydy_crs1024m-wn-sn-rnoracle_vg8hdisk5 mklv-ydy_vote1024m-wn-sn-rnoracle_vg8hdisk5 mklv-ydy_system_1024m-wn-sn-rnoracle_vg10hdisk5 mklv-ydy_pwdfile_100m-wn-sn-rnoracle_vg1hdisk5 mklv-ydy_sysaux_800m-wn-sn-rnoracle_vg10hdisk5 mklv-ydy_undo1_4096m-wn-sn-rnoracle_vg40hdisk5 mklv-ydy_undo2_4096m-wn-sn-rnoracle_vg40hdisk5 mklv-ydy_temp_4096m-wn-sn-rnoracle_vg40hdisk5 mklv-ydy_example_800m-wn-sn-rnoracle_vg10hdisk5 mklv-ydy_users_800m-wn-sn-rnoracle_vg10hdisk5 mklv-ydy_redo1_1_500m-wn-sn-rnoracle_vg10hdisk5 mklv-ydy_redo1_2_500m-wn-sn-rnoracle_vg10hdisk5 mklv-ydy_redo1_3_500m-wn-sn-rnoracle_vg10hdisk5 mklv-ydy_redo1_4_500m-wn-sn-rnoracle_vg10hdisk5 mklv-ydy_redo1_5_500m-wn-sn-rnoracle_vg10hdisk5 mklv-ydy_redo1_6_500m-wn-sn-rnoracle_vg10hdisk5 mklv-ydy_redo2_1_500m-wn-sn-rnoracle_vg10hdisk5 mklv-ydy_redo2_2_500m-wn-sn-rnoracle_vg10hdisk5 mklv-ydy_redo2_3_500m-wn-sn-rnoracle_vg10hdisk5 mklv-ydy_redo2_4_500m-wn-sn-rnoracle_vg10hdisk5 mklv-ydy_redo2_5_500m-wn-sn-rnoracle_vg10hdisk5 mklv-ydy_redo2_6_500m-wn-sn-rnoracle_vg10hdisk5 mklv-ydy_ctl1_110m-wn-sn-rnoracle_vg1hdisk5 mklv-ydy_ctl2_110m-wn-sn-rnoracle_vg1hdisk5 mklv-ydy_ctl3_110m-wn-sn-rnoracle_vg1hdisk5 mklv-ydy_spfile_110m-wn-sn-rnoracle_vg1hdisk5 mklv-ydy_recover4096m-wn-sn-rnoracle_vg40hdisk5 在另外一台主机上import共享卷 #hostname rac2 #smittyvg VolumeGroups MovecursortodesireditemandpressEnter. ImportaVolumeGroup ImportaVolumeGroup Typeorselectvaluesinentryfields. PressEnterAFTERmakingalldesiredchanges. EntryFields VOLUMEGROUPnameoracle_vg *PHYSICALVOLUMEnamehdisk5+ VolumeGroupMAJORNUMBER60+# 修改共享卷的属性(两台主机都要做) varyonvgoracle_vg chownoracle:dba/dev/*dy_* varyoffvgoracle_vg9、 配置SSH ConfiguringSSHonAllClusterNodes BeforeyouinstallanduseOracleRealApplicationclusters,youmustconfiguresecure shell(SSH)fortheoracleuseronallclusternodes.OracleUniversalInstalleruses thesshandscpcommandsduringinstallationtorunremotecommandsonandcopy filestotheotherclusternodes.YoumustconfigureSSHsothatthesecommandsdo notpromptforapassword. ConfiguringSSHonClusterMemberNodes ToconfigureSSH,youmustfirstcreateRSAandDSAkeysoneachclusternode,and thencopythekeysfromallclusternodemembersintoanauthorizedkeysfileoneach node.Todothistask,completethefollowingsteps: CreateRSAandDSAkeysoneachnode:Completethefollowingstepsoneach node: 1.Loginastheoracleuser. 2.Ifnecessary,createthe.sshdirectoryintheoracleusershomedirectoryand setthecorrectpermissionsonit: mkdir/.ssh chmod700/.ssh 3.EnterthefollowingcommandstogenerateanRSAkeyforversion2oftheSSH protocol: /usr/bin/ssh-keygen-trsa Attheprompts: Acceptthedefaultlocationforthekeyfile. Enterandconfirmapassphrasethatisdifferentfromtheoracleusers password. Thiscommandwritesthepublickeytothe/.ssh/id_rsa.pubfileandthe privatekeytothe/.ssh/id_rsafile.Neverdistributetheprivatekeytoanyone. 4.EnterthefollowingcommandstogenerateaDSAkeyforversion2oftheSSH protocol: /usr/bin/ssh-keygen-tdsa Attheprompts: Acceptthedefaultlocationforthekeyfile Enterandconfirmapassphrasethatisdifferentfromtheoracleusers password Thiscommandwritesthepublickeytothe/.ssh/id_dsa.pubfileandthe privatekeytothe/.ssh/id_dsafile.Neverdistributetheprivatekeyto anyone. Addkeystoanauthorizedkeyfile:Completethefollowingsteps: 1.Onthelocalnode,determineifyouhaveanauthorizedkeyfile (/.ssh/authorized_keys).Iftheauthorizedkeyfilealreadyexists,then proceedtostep2.Otherwise,enterthefollowingcommands: touch/.ssh/authorized_keys cd/.ssh ls Youshouldseetheid_dsa.pubandid_rsa.pubkeysthatyouhavecreated. 2.UsingSSH,copythecontentsofthe/.ssh/id_rsa.puband /.ssh/id_dsa.pubfilestothefile/.ssh/authorized_keys,andprovide theOracleuserpasswordasprompted.Thisprocessisillustratedinthefollowing syntaxexamplewithatwo-nodecluster,withnodesnode1andnode2,wherethe Oracleuserpathis/home/oracle: oraclerac1.ssh$sshrac1cat/home/oracle/.ssh/id_rsa.pubauthorized_keys oraclenode1spassword: oraclerac1.ssh$sshrac1cat/home/oracle/.ssh/id_dsa.pubauthorized_keys oraclerac1.ssh$sshrac2cat/home/oracle/.ssh/id_rsa.pubauthorized_keys oraclenode2spassword: oraclerac1.ssh$sshrac2cat/home/oracle/.ssh/id_dsa.pubauthorized_keys oraclenode2spassword: 3.UseSCP(SecureCopy)orSFTP(SecureFTP)tocopytheauthorized_keysfile totheOracleuser.sshdirectoryonaremotenode.Thefollowingexampleiswith SCP,onanodecallednode2,wheretheOracleuserpathis/home/oracle: oraclenode1.sshscpauthorized_keysnode2:/home/oracle/.ssh/ 4.Repeatstep2and3foreachclusternodemember.Whenyouhaveaddedkeys fromeachclusternodemembertotheauthorized_keysfileonthelastnodeyou wanttohaveasaclusternodemember,thenuseSCPtocopythecomplete authorized_keysfilebacktoeachclusternodemember Note:Repeatthisprocessforeachnodeinthecluster Note:TheOracleusers/.ssh/authorized_keysfileonevery nodemustcontainthecontentsfromallofthe/.ssh/id_rsa.pub and/.ssh/id_dsa.pubfilesthatyougeneratedonallcluster nodes. 5.ChangethepermissionsontheOracleusers/.ssh/authorized_keysfileon allclusternodes: chmod600/.ssh/authorized_keys Atthispoint,ifyouusesshtologintoorrunacommandonanothernode,you arepromptedforthepassphrasethatyouspecifiedwhenyoucreatedtheDSA key. EnablingSSHUserEquivalencyonClusterMemberNodes ToenableOracleUniversalInstallertousethesshandscpcommandswithoutbeing promptedforapassphrase,followthesesteps: 1.OnthesystemwhereyouwanttorunOracleUniversalInstaller,loginasthe oracleuser. 2.Enterthefollowingcommands: exec/usr/bin/ssh-agent$SHELL /usr/bin/ssh-add 3.Attheprompts,enterthepassphraseforeachkeythatyougenerated. IfyouhaveconfiguredSSHcorrectly,thenyoucannowusethesshorscp commandswithoutbeingpromptedforapasswordorapassphrase. 4.Ifyouareonaremoteterminal,andthelocalnodehasonlyonevisual(whichis typical),thenusethefollowingsyntaxtosettheDISPLAYenvironmentvariable: Bourne,Korn,andBashshells $exportDISPLAY=hostname:0 Cshell: $setenvDISPLAY0 Forexample,ifyouareusingtheBashshell,andifyourhostnameisnode1,then enterthefollowingcommand: $exportDISPLAY=node1:0 5.TotesttheSSHconfiguration,enterthefollowingcommandsfromthesame terminalsession,testingtheconfigurationofeachclusternode,where nodename1,nodename2,andsoon,arethenamesofnodesinthecluster: $sshnodename1date $sshnodename2date . . . Thesecommandsshoulddisplaythedatesetoneachnode. Ifanynodepromptsforapasswordorpassphrase,thenverifythatthe /.ssh/authorized_keysfileonthatnodecontainsthecorrectpublickeys. Ifyouareusingaremoteclienttoconnecttothelocalnode,andyouseeamessage similartoWarning:Noxauthdata;usingfakeauthenticationdataforX11 forwarding,thenthismeansthatyourauthorizedkeysfileisconfiguredcorrectly, butyoursshconfigurationhasX11forwardingenabled.Tocorrectthis,proceedto step6. Note:ThefirsttimeyouuseSSHtoconnecttoanodefroma particularsystem,youmayseeamessagesimilartothefollowing: Theauthenticityofhostnode1(53)cantbe established. RSAkeyfingerprintis 7z:ez:e7:f6:f4:f2:4f:8f:9z:79:85:62:20:90:92:z9. Areyousureyouwanttocontinueconnecting(yes/no)? Enteryesattheprompttocontinue.Youshouldnotseethis messageagainwhenyouconnectfromthissystemtothatnode. Ifyouseeanyothermessagesortext,apartfromthedate,thenthe installationcanfail.Makeanychangesrequiredtoensurethatonly thedateisdisplayedwhenyouenterthesecommands. Youshouldensurethatanypartsofloginscriptsthatgenerateany output,oraskanyquestions,aremodifiedsothattheyactonly whentheshellisaninteractiveshell 6.ToensurethatX11forwardingwillnotcausetheinstallationtofail,createa user-levelSSHclientconfigurationfilefortheOraclesoftwareowneruser,as follows: a.Usinganytexteditor,editorcreatetheoracle/.ssh/configfile. b.MakesurethattheForwardX11attributeissettono.Forexample: Host* ForwardX11no 7.YoumustrunOracleUniversalInstallerfromthissessionorremembertorepeat steps2and3beforeyoustartOracleUniversalInstallerfromadifferentterminal session. PreventingOracleClusterwareInstallationErrorsCausedbysttyCommands DuringanOracleClusterwareinstallation,OracleUniversalInstallerusesSSH(if available)toruncommandsandcopyfilestotheothernodes.Duringtheinstallation, hiddenfilesonthesystem(forexample,.bashrcor.cshrc)willcauseinstallationerrors iftheycontainsttycommands. Toavoidthisproblem,youmustmodifythesefilestosuppressalloutputonSTDERR, asinthefollowingexamples: Bourne,Bash,orKornshell: if-t0;then sttyintrC fi Cshell: test-t0 if($status=0)then sttyintrC endif Note:ThefirsttimeyouuseSSHtoconnecttoanodefroma particularsystem,youmayseeamessagesimilartothefollowing: Theauthenticityofhostnode1(53)cantbe established. RSAkeyfingerprintis 7z:ez:e7:f6:f4:f2:4f:8f:9z:79:85:62:20:90:92:z9. Areyousureyouwanttocontinueconnecting(yes/no)? Enteryesattheprompttocontinue.Youshouldnotseethis messageagainwhenyouconnectfromthissystemtothatnode. Ifyouseeanyothermessagesortext,apartfromthedate,thenthe installationcanfail.Makeanychangesrequiredtoensurethatonly thedateisdisplayedwhenyouenterthesecommands. Youshouldensurethatanypartsofloginscriptsthatgenerateany output,oraskanyquestions,aremodifiedsothattheyactonly whentheshellisaninteractiveshell Note:WhenSSHisnotavailable,theInstallerusesthershand rcpcommandsinsteadofsshandscp. Iftherearehiddenfilesthatcontainsttycommandsthatareloaded bytheremoteshell,thenOUIindicatesanerrorandstopsthe installation.10、 安装fix包所需补丁 到IBM网站上下载补丁 11、 重启动主机 shutdown-Fr 12、 配置hacmp 创建集群 #smittyhacmp InitializationandStandardConfiguration AddNodestoanHACMPCluster ConfigureNodestoanHACMPCluster(standard) Typeorselectvaluesinentryfields. PressEnterAFTERmakingalldesiredchanges. EntryFields *ClusterNametest NewNodes(via
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 初一政治中考试卷及答案
- 初三数学二次函数图像分析试卷及答案
- 中医护理学阴阳五行题库及答案解析
- 化工企业安全抢答题题库及答案解析
- 铁岭单招护理题库及答案解析
- 肇庆安全员a证考试题库及答案解析
- 锦州护理专升本题库题型及答案解析
- 2025年国家开放大学《行政管理原理》期末考试备考试题及答案解析
- 安全培训师口号课件
- 2025年国家开放大学(电大)《现代企业管理》期末考试备考试题及答案解析
- 2025年贵州高考生物试卷真题及答案详解(精校打印版)
- 2025四川成都高新投资集团有限公司选聘中高层管理人员4人笔试参考题库附答案解析
- 湖南省九校联盟2026届高三上学期9月第一次联考物理试题(含答案)
- 水利工程水利工程施工技术规范
- 健康安全紧急培训内容课件
- 从安全感缺失剖析《榆树下的欲望》中爱碧的悲剧根源与启示
- 2025中证金融研究院招聘11人考试参考题库及答案解析
- 2025年保密观考试题库及答案
- 辽宁省名校联盟2025年高三9月份联合考试政治(含答案)
- 国产美妆品牌完美日记短视频营销策略研究
- 渔业现场执法培训课件
评论
0/150
提交评论