已阅读5页,还剩8页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
概述本文详细介绍了如何在基于Solaris 10 X86的节点上来安装Oracle 10g RAC的具体步骤和注意事项,同时也提供了具体的命令操作以及安装过程的截屏,最后是创建一个Cluster数据库的具体步骤。系统环境两台Sun的基于 AMD64的机器(V20Z)一台Sun的Storage(3510)一个百兆交换机Solaris 10 X86 1/06Oracle 10g EE RAC for Solaris X86 with Oracle patch 4186426其中两个V20Z节点通过光纤卡直接和Storage3510相连接安装前期配置本文中的Oracle RAC的安装是基于两个节点的配置,很多步骤需要在两个节点(RAC1 和RAC2)上都要完成,以下是安装Oracle RAC前需要做的准备工作:1,在所有节点上创建Oracle用户组和帐号bash-3.00# groupadd -g 100 oinstallbash-3.00# groupadd -g 101 dbabash-3.00# mkdir -p /export/homebash-3.00# useradd -u 200 -g oinstall -G dba -s /usr/bin/bash -d /export/home/oracle -m oraclebash-3.00# id -a oracleuid=200(oracle) gid=100(oinstall) groups=101(dba)添加完用户后需要为oracle用户设置密码,使得帐号生效。2,在所有节点上验证用户nobody是否存在bash-3.00# id -a nobodyuid=60001(nobody) gid=60001(nobody) groups=60001(nobody)3,为所有的节点设置网络地址对于每个节点,Oracle RAC需要设置一个公共的网络地址,一个虚拟的未用网络地址和一个私有网络地址,对于公共的网络地址,这里假设已经在安装系统时已经配置完成,即将bge0配置为公共地址,以下是配置其他网络地址的具体步骤,bash-3.00# ifconfig bge0:1 plumb upbash-3.00# ifconfig bge0:1 12 netmask bash-3.00# ifconfig bge1 plumb upbash-3.00# ifconfig bge1 2 netmask 可以将这些步骤写入/etc/profile,使得每次系统启动后,这些地址自动就配置完成。最终的网络配置为:bash-3.00# ifconfig -alo0: flags=2001000849 mtu 8232 index 1inet netmask ff000000bge0: flags=1000843 mtu 1500 index 2inet 22 netmask ffffff00 broadcast 55ether 0:9:3d:0:75:20bge0:1: flags=1000843 mtu 1500 index 2inet 12 netmask ffffff00 broadcast 55bge1: flags=1000803 mtu 1500 index 3inet 2 netmask ffffff00 broadcast 55ether 0:9:3d:0:75:21bash-3.00$ netstat -rnRouting Table: IPv4Destination Gateway Flags Ref Use Interface- - - - - - 1 U 1 0 bge 21 U 1 47 bge0 11 U 1 0 bge0:1 21 U 1 0 bge0 UH 23 25657 lo04,在所有节点上,生成文件/etc/hostname.bge0 和/etc/hostname.bge1具体内容如下,并需将网络配置写入文件/etc/hostsbash-3.00$ more /etc/host*:/etc/hostname.bge0:RAC1:/etc/hostname.bge1:rac_priv_host1:/etc/hosts:# Internet host table# localhost21 RAC1. RAC22 RAC2. RAC11 RAC1-VIR. RAC1-VIR12 RAC2-VIR. RAC2-VIR1 rac_priv_host12 rac_priv_host25,配置信任主机Oracle RAC需要将所有节点配置成为信任主机,即在所有节点上生成具有以下内容的文件/etc/hosts.equiv,并进行测试bash-3.00$ more /etc/hosts.equivRAC1. oracleRAC2. oracleRAC1 oracleRAC2 oraclersh RAC2 dateThu Jan 19 02:12:12 CST 2006rsh RAC2 hostnameRAC26,在所有节点上创建Oracle RAC安装目录并设置权限bash-3.00# mkdir -p /u01/app/oracle/product//oraclebash-3.00# chown -R oracle:oinstall /u01/app/oracle /product//oraclebash-3.00# chmod -R 755 /u01/app/oracle/product//oraclebash-3.00# mkdir -p /u01/crs/oracle/product//crsbash-3.00# chown -R oracle:oinstall /u01/crs/oracle/product//crsbash-3.00# chmod -R 755 /u01/crs/oracle/product//crs为安装Oracle CRS在所有节点上设置Oracle的环境变量在$HOME/.profile,$HOME为用户oracle的起始目录bash-3.00$ cat .profileORACLE_BASE=/u01/app/oracleexport ORACLE_BASEORACLE_HOME=/u01/crs/oracle/product//crsexport ORACLE_HOMEPATH=$PATH:$ORACLE_HOME/bin:/usr/bin:/usr/ccs/bin:/bin:/usr/openwin/binexport PATH在所有节点上将以下系统设置写入文件/etc/systemset semsys:seminfo_semmni 100set semsys:seminfo_semmns 1024set semsys:seminfo_semmsl 256set semsys:seminfo_semvmx 32767set shmsys:shminfo_shmmax 4294967295set shmsys:shminfo_shmmin 1007,存储设备的配置:在这里,我们用了Sun Storage3510来做为安装Oracle 10g RAC的设备,并将其配置为raw partitions,以下为具体的需求:Oracle和Oracle CRS需要的Raw Partitions数目和大小从以上的表格可以看出,对于两个节点的Oracle RAC,我们需要在存储器上配置17个raw partitions(创建Oracle数据库需要15个,安装Oracle CRS需要2个),由于每个Solaris的磁盘最多只能有7个slice供使用(slice 2,8,9是不能用做分区的),所以需要在Storage 3510上来分多个磁盘来满足需要,然后在Solaris中对每个盘进行分区,注意的是为了避免CRS或是Oracle数据库文件覆盖磁盘中的分区表,在分slices时不能从cylinder 0(比如slice 2)开始。由于3510的分区在Solaris中的设备名为一个很长的字符串,为了更方便的表示这些设备,这里采用了创建连接到这些设备的方法,并设置相应的属性和权限,这两个设备是为Oracel CRS安装用的,见以下步骤:mkdir /ORACLEcd /ORACLEln -s /dev/rdsk/c3t600C0FF00000000007D35237AD84C802d0s0 ocrchown -RL root:oinstall ocrchmod -R 640 ocrln -s /dev/rdsk/c3t600C0FF00000000007D35237AD84C802d0s1 votechown -RL oracle:dba votechmod -R 640 vote安装Oracle CRS当以上所有的配置完成后,我们就可以进行Oracle CRS的安装了启动Oracle CRS安装脚本,注意参数-ignoreSysPrereqs是为了忽略版本检查带来的错误,./runInstaller -ignoreSysPrereqs以下是具体的安装步骤和图示,1,欢迎界面,直接点击next2,指定详细目录和凭证此时会弹出一个提示栏要求在RAC1上运行一个脚本,如下:/u01/crs/oracle/oraInventory/orainstRoot.shchmod: WARNING: cant access /var/opt/oracleCreating the Oracle inventory pointer file (/var/opt/oracle/oraInst.loc)Changing groupname of /u01/crs/oracle/oraInventory to oinstall.2,指定安装文件的路径,缺省的安装路径来自于我们先前在$HOME/.profile的设置3,选择语言-点击下一步4,配置cluster5,指定网络接口的用途,这里我们指定bge0做为公共网络接口,bge1做为私有网络接口6,指定OCR的路径为/ORACLE/ocr7,指定Vote的路径为 /ORACLE/ocr此时需要用户在所有节点上以root身份来运行脚本orainstRoot.sh,如下:/u01/crs/oracle/oraInventory/orainstRoot.shCreating the Oracle inventory pointer file (/var/opt/oracle/oraInst.loc)Changing groupname of /u01/crs/oracle/oraInventory to oinstall./u01/crs/oracle/oraInventory/orainstRoot.shchmod: WARNING: cant access /var/opt/oracleCreating the Oracle inventory pointer file (/var/opt/oracle/oraInst.loc)Changing groupname of /u01/crs/oracle/oraInventory to oinstall.8,然后会出现安装配置的小结界面,点击下一步后就进入安装阶段:9,安装过程,从图中我们看到CRS安装程序自动向另一个节点RAC2拷贝文件在安装后期,会提示用户在所有节点上以 root身份来运行root.sh,如下:/u01/crs/oracle/product//crs/root.shRunning Oracle10 root.sh script.The following environment variables are set as:ORACLE_OWNER= oracleORACLE_HOME= /u01/crs/oracle/product//crsFinished running generic part of root.sh script.Now product-specific root actions will be performed.Checking to see if Oracle CRS stack is already up.Setting the permissions on OCR backup directoryOracle Cluster Registry configuration upgraded successfullyWARNING: directory /u01/crs/oracle/product/ is not owned by rootWARNING: directory /u01/crs/oracle/product is not owned by rootWARNING: directory /u01/crs/oracle is not owned by rootclscfg: EXISTING configuration version 2 detected.clscfg: version 2 is 10G Release 1.assigning default hostname rac1 for node 1.assigning default hostname rac2 for node 2.Successfully accumulated necessary OCR keys.Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.node :node 1: rac1 rac_priv_host1 rac1node 2: rac2 rac_priv_host2 rac2clscfg: Arguments check out successfully.NO KEYS WERE WRITTEN. Supply -force parameter to override.-force is destructive and will destroy any previous clusterconfiguration.Oracle Cluster Registry for cluster has already been initializedAdding daemons to inittabPreparing Oracle Cluster Ready Services (CRS):Expecting the CRS daemons to be up within 600 seconds.CSS is active on these nodes.rac1rac2CSS is active on all nodes.Waiting for the Oracle CRSD and EVMD to startOracle CRS stack installed and running under init(1M)/u01/crs/oracle/product//crs/root.shRunning Oracle10 root.sh script.The following environment variables are set as:ORACLE_OWNER= oracleORACLE_HOME= /u01/crs/oracle/product//crsFinished running generic part of root.sh script.Now product-specific root actions will be performed.Checking to see if Oracle CRS stack is already up.Setting the permissions on OCR backup directoryOracle Cluster Registry configuration upgraded successfullyWARNING: directory /u01/crs/oracle/product/ is not owned by rootWARNING: directory /u01/crs/oracle/product is not owned by rootWARNING: directory /u01/crs/oracle is not owned by rootassigning default hostname rac1 for node 1.assigning default hostname rac2 for node 2.Successfully accumulated necessary OCR keys.Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.node :node 1: rac1 rac_priv_host1 rac1node 2: rac2 rac_priv_host2 rac2Creating OCR keys for user root, privgrp root.Operation successful.Now formatting voting device: /ORACLE/voteSuccessful in setting block0 for voting disk.Format complete.Adding daemons to inittabPreparing Oracle Cluster Ready Services (CRS):Expecting the CRS daemons to be up within 600 seconds.CSS is active on these nodes.rac1rac2CSS is active on all nodes.Waiting for the Oracle CRSD and EVMD to startOracle CRS stack installed and running under init(1M)以上步骤完成后,整个CRS的安装就完成了我们可以做一些测试来验证CRS的安装是否正确cd /u01/crs/oracle/product//crs/bin/pwd/u01/crs/oracle/product//crs/bin./olsnodes -nrac1 1rac2 2同时要
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- IT服务台工程师服务台操作手册V30
- IT运维专员服务器管理手册
- 共享服务中心IT支持专员IT支持专员IT支持专员压力管理培训
- 2025年油画装裱师的题库及答案
- 保洁绿化管理员工作职业发展
- 产品经理产品竞争分析报告
- 南京市高淳区所属事业单位2025年下半年下半年招考38名工作人员易考易错模拟试题(共500题)试卷后附参考答案
- 内蒙古额济纳旗2025年下半年招考事业单位工作人员易考易错模拟试题(共500题)试卷后附参考答案
- 佛山市国资委招考4名辅助服务雇员易考易错模拟试题(共500题)试卷后附参考答案
- 办公室主任工作流程优化方案
- 滴滴人证考试题库及答案
- 2025年高校教师资格证考试《高等教育心理学》习题及参考答案
- (2025年)重大事故隐患判定标准培训考试练习题及答案
- 2025贵州水投毕节市水务集团有限公司旗下子公司招聘笔试考试参考试题附答案解析
- 武汉市水利部长江水利委员会事业单位招聘考试真题2024
- 2025宁夏交通建设股份有限公司校园招聘笔试历年难易错考点试卷带答案解析试卷2套
- 2025年社区社工面试试题及答案
- 建筑设计概念方案汇报
- 创办幼儿园核心流程
- 全国大学生职业规划大赛《俄语》专业生涯发展展示
- 一级裁判笔试题库及答案
评论
0/150
提交评论