




已阅读5页,还剩35页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
oracle rac for rehl6.3(64bit)安装文档作者:魔心之泪1、安装环境22、安装前系统配置22.1存储规划22.2 ip地址规划32.3创建用户、组(所有节点)32.4配置各节点环境变量42.5关闭所有节点防火墙42.6配置ntp服务(所有节点)52.7系统参数设置52.8存储分区52.9 udev绑定裸设备63、安装grid74、创建asm磁盘组225、安装数据库246、建库291、安装环境 rootdb1 # uname -a linux db1 2.6.32-279.el6.x86_64 #1 smp wed jun 13 18:24:36 edt 2012 x86_64 x86_64 x86_64 gnu/linuxrootdb1 # lsb_releaselsbversion: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch2、安装前系统配置2.1存储规划名称映射裸设备大小ocr_voting/dev/sdb1/dev/raw/raw11g/dev/sdb2/dev/raw/raw21g/dev/sdb3/dev/raw/raw31gflash_recovery/dev/sdb5/dev/raw/raw45g/dev/sdb6/dev/raw/raw55g/dev/sdb7/dev/raw/raw65gdata/dev/sdc1/dev/raw/raw9536.9g/dev/sdd1/dev/raw/raw10536.9g/dev/sde1/dev/raw/raw11536.9g/dev/sdf1/dev/raw/raw12536.9g/dev/sdg1/dev/raw/raw13536.9g/dev/sdh1/dev/raw/raw14536.9g/dev/sdi1/dev/raw/raw15536.9g/dev/sdj1/dev/raw/raw16536.9g2.2 ip地址规划主机名称db1db2eth0 ip(public)45eth0 ip(vip)01eth1(priv)scan ip2sidpartner1partner2oracle 版本修改所有节点hosts文件rootdb1 # cat /etc/hosts localhost localhost.localdomain localhost4 localhost4.localdomain435 websv4 db5 db0 db1-vip1 db2-vip db1-priv db2-priv2 rac-scan2.3创建用户、组(所有节点)groupadd -g 1000 oinstallgroupadd -g 1200 asmadmingroupadd -g 1201 asmdbagroupadd -g 1202 asmopergroupadd -g 1300 dbagroupadd -g 1301 operuseradd -m -u 1100 -g oinstall -g asmadmin,asmdba,asmoper griduseradd -m -u 1101 -g oinstall -g dba,oper,asmdba oraclemkdir -p /oracle/gridchown -r grid:oinstall /oracle/gridchown -r grid:oinstall /oracle/grid/mkdir -p /oracle/dbchown -r oracle:oinstall /oracle/dbchmod -r 775 /oraclepasswd gridpasswd oracle2.4配置各节点环境变量修改grid用户.bash_profileexport oracle_sid=+asm1#节点2为+asm2export oracle_base=/oracle/oracle11gexport oracle_home=/oracle/grid/export path=$oracle_home/bin:$path:/usr/local/bin/:.export temp=/tmpexport tmp=/tmpexport tmpdir=/tmpumask 022修改oracle用户.bash_profileexport oracle_sid=partner1#节点2为partner2export oracle_unqname=partnerexport oracle_base=/oracle/dbexport oracle_home=/oracle/db/export path=$oracle_home/bin:$path:$ora_crs_home/binexport temp=/tmpexport tmpdir=/tmpumask 0222.5关闭所有节点防火墙service iptables status service iptables stop chkconfig iptables off chkconfig iptables list设置/etc/selinux/config 文件,将 selinux 设置为 disabledrootdb1 # cat /etc/selinux/config# this file controls the state of selinux on the system.# selinux= can take one of these three values:# enforcing - selinux security policy is enforced.# permissive - selinux prints warnings instead of enforcing.# disabled - no selinux policy is loaded.selinux=disabled# selinuxtype= can take one of these two values:# targeted - targeted processes are protected,# mls - multi level security protection.selinuxtype=targeted2.6配置ntp服务(所有节点)linux客户端使用ntpdate 14来向ntp服务器同步自己的时间其它linux如果仅作为只客户端的话,则不能启动ntpd服务!否则无法运行ntpdata 服务器地址 来同步时间之后可以使用cron或修改crontab文件定期向ntp服务器更新时间,并用# hwclock -systohc将系统时间设置为硬件时间rootdb2 # crontab -l*/15 * * * * ntpdate 142.7系统参数设置/etc/security/limits.conf文件添加如下内容:grid soft nproc 2047 grid hard nproc 16384 grid soft nofile 1024 grid hard nofile 65536 oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536/etc/pam.d/login添加:session required pam_limits.so2.8存储分区所有规划的设备进行分区,例如在节点1执行:rootdb1 # fdisk /dev/sdewarning: dos-compatible mode is deprecated. its strongly recommended to switch off the mode (command c) and change display units to sectors (command u).command (m for help): pdisk /dev/sde: 536.9 gb, 536870912000 bytes255 heads, 63 sectors/track, 65270 cylindersunits = cylinders of 16065 * 512 = 8225280 bytessector size (logical/physical): 512 bytes / 512 bytesi/o size (minimum/optimal): 512 bytes / 512 bytesdisk identifier: 0x000d60dc device boot start end blocks id systemcommand (m for help): ncommand action e extended p primary partition (1-4)ppartition number (1-4): 1first cylinder (1-65270, default 1): using default value 1last cylinder, +cylinders or +sizek,m,g (1-65270, default 65270): using default value 65270command (m for help): wthe partition table has been altered!calling ioctl() to re-read partition table.syncing disks.所有节点同步分区partprobe2.9 udev绑定裸设备vi /etc/udev/rules.d/60-raw.rules# enter raw device bindings here.# an example would be:# action=add, kernel=sda, run+=/bin/raw /dev/raw/raw1 %n# to bind /dev/raw/raw1 to /dev/sda, or# action=add, envmajor=8, envminor=1, run+=/bin/raw /dev/raw/raw2 %m %m# to bind /dev/raw/raw2 to the device with major 8, minor 1.#for ocr_votingaction=add,kernel=sdb1,run+=/bin/raw /dev/raw/raw1 %naction=add,kernel=sdb2,run+=/bin/raw /dev/raw/raw2 %naction=add,kernel=sdb3,run+=/bin/raw /dev/raw/raw3 %n#for flash_recoveryaction=add,kernel=sdb5,run+=/bin/raw /dev/raw/raw4 %naction=add,kernel=sdb6,run+=/bin/raw /dev/raw/raw5 %naction=add,kernel=sdb7,run+=/bin/raw /dev/raw/raw6 %n#for dataaction=add,kernel=sdc1,run+=/bin/raw /dev/raw/raw7 %naction=add,kernel=sdd1,run+=/bin/raw /dev/raw/raw8 %naction=add,kernel=sde1,run+=/bin/raw /dev/raw/raw9 %naction=add,kernel=sdf1,run+=/bin/raw /dev/raw/raw10 %naction=add,kernel=sdg1,run+=/bin/raw /dev/raw/raw11 %naction=add,kernel=sdh1,run+=/bin/raw /dev/raw/raw12 %naction=add,kernel=sdi1,run+=/bin/raw /dev/raw/raw13 %naction=add,kernel=sdj1,run+=/bin/raw /dev/raw/raw14 %nkernel=raw1-9*, owner=grid, group=asmadmin, mode=660重启 udev: # /sbin/start_udev以上内容需要在所有节点执行验证:rootdb1 rules.d# ll /dev/rawtotal 0crw-rw- 1 grid asmadmin 162, 1 jul 11 15:19 raw1crw-rw- 1 grid asmadmin 162, 10 jul 11 15:19 raw10crw-rw- 1 grid asmadmin 162, 11 jul 11 15:19 raw11crw-rw- 1 grid asmadmin 162, 12 jul 11 15:19 raw12crw-rw- 1 grid asmadmin 162, 13 jul 11 15:19 raw13crw-rw- 1 grid asmadmin 162, 14 jul 11 15:19 raw14crw-rw- 1 grid asmadmin 162, 2 jul 11 15:19 raw2crw-rw- 1 grid asmadmin 162, 3 jul 11 15:19 raw3crw-rw- 1 grid asmadmin 162, 4 jul 11 15:19 raw4crw-rw- 1 grid asmadmin 162, 5 jul 11 15:19 raw5crw-rw- 1 grid asmadmin 162, 6 jul 11 15:19 raw6crw-rw- 1 grid asmadmin 162, 7 jul 11 15:19 raw7crw-rw- 1 grid asmadmin 162, 8 jul 11 15:19 raw8crw-rw- 1 grid asmadmin 162, 9 jul 11 15:19 raw9crw-rw- 1 root disk 162, 0 jul 11 15:19 rawctl3、安装grid节点1用grid用执行:griddb1 grid$ export display=44:0.0griddb1 grid$ export lang=en_us.utf-8griddb1 grid$ ./runi*这里没有配置dns,使用/etc/hosts文件来解析scan这里可以使用自动配置节点直接ssh互信,也可手动配置用grid、oracle用户在所有节点执行ssh-keygen -t dsassh-keygen -t rsacd .sshtouch authorized_keyscat id_rsa.pub authorized_keyscat id_dsa.pub authorized_keys#grid用户执行db1执行ssh db2 cat /home/grid/.ssh/id_rsa.pub authorized_keysssh db2 cat /home/grid/.ssh/id_dsa.pub authorized_keysdb2执行ssh db1 cat /home/grid/.ssh/id_rsa.pub authorized_keysssh db1 cat /home/grid/.ssh/id_dsa.pub authorized_keys#oracle执行db1执行ssh db2 cat /home/oracle/.ssh/id_rsa.pub authorized_keysssh db2 cat /home/oracle/.ssh/id_dsa.pub authorized_keysdb2执行ssh db1 cat /home/oracle/.ssh/id_rsa.pub authorized_keysssh db1 cat /home/oracle/.ssh/id_dsa.pub authorized_keysgrid、oracle用户验证ssh db1 datessh db2 datessh db1-priv datessh db2-priv date如果仍然需要输入密码,需检查相关目录权限chmod 644 authorized_keyschmod 755 /oracle/gridchmod 700 /oracle/grid/.ssh小提示:如果有的设备没有显示,则该设备可能被使用过,使用dd命令清除:dd if=/dev/zero of=/dev/raw/raw1 bs=10m count=10 grid安装包中找到cvuqdisk-1.0.9-1.rpm后运行(所有节点):rootdb2 rpm# rpm -ivh cvuqdisk-1.0.9-1.rpm preparing. # 100%using default group oinstall to install package 1:cvuqdisk # 100%安装oracleasm,可在官网下载rootdb2 rpm# rpm -ivh oracleasm-support-2.1.8-1.el6.x86_64.rpmwarning: oracleasm-support-2.1.8-1.el6.x86_64.rpm: header v3 rsa/sha256 signature, key id ec551f03: nokeypreparing. # 100% package oracleasm-support-2.1.8-1.el6.x86_64 is already installed使用/etc/hosts解析scan可忽略此错误先在节点1和节点2执行:/oracle/orainventory/orainstroot.sh其次:/oracle/grid//root.sh执行结果:rootdb1 oracle# /oracle/grid//root.shperforming root user operation for oracle 11g the following environment variables are set as: oracle_owner= grid oracle_home= /oracle/grid/enter the full pathname of the local bin directory: /usr/local/bin: the contents of dbhome have not changed. no need to overwrite.the contents of oraenv have not changed. no need to overwrite.the contents of coraenv have not changed. no need to overwrite.creating /etc/oratab file.entries will be added to the /etc/oratab file as needed bydatabase configuration assistant when a database is createdfinished running generic part of root script.now product-specific root actions will be performed.using configuration parameter file: /oracle/grid//crs/install/crsconfig_paramscreating trace directoryuser ignored prerequisites during installationolr initialization - successful root wallet root wallet cert root cert export peer wallet profile reader wallet pa wallet peer wallet keys pa wallet keys peer cert request pa cert request peer cert pa cert peer root cert tp profile reader root cert tp pa root cert tp peer pa cert tp pa peer cert tp profile reader pa cert tp profile reader peer cert tp peer user cert pa user certadding clusterware entries to upstartcrs-2672: attempting to start ora.mdnsd on db1crs-2676: start of ora.mdnsd on db1 succeededcrs-2672: attempting to start ora.gpnpd on db1crs-2676: start of ora.gpnpd on db1 succeededcrs-2672: attempting to start ora.cssdmonitor on db1crs-2672: attempting to start ora.gipcd on db1crs-2676: start of ora.cssdmonitor on db1 succeededcrs-2676: start of ora.gipcd on db1 succeededcrs-2672: attempting to start ora.cssd on db1crs-2672: attempting to start ora.diskmon on db1crs-2676: start of ora.diskmon on db1 succeededcrs-2676: start of ora.cssd on db1 succeededasm created and started successfully.disk group ocrvoting created successfully.clscfg: -install mode specifiedsuccessfully accumulated necessary ocr keys.creating ocr keys for user root, privgrp root.operation successful.crs-4256: updating the profilesuccessful addition of voting disk 14bd8fb4dff14f05bf40fca499a9a11f.successful addition of voting disk 25c05e68002f4f6bbf722c09f8c7b068.successful addition of voting disk 0231b788ad924fb3bf7eab84fd1de9ac.successfully replaced voting disk group with +ocrvoting.crs-4256: updating the profilecrs-4266: voting file(s) successfully replaced# state file universal id file name disk group- - - - - 1. online 14bd8fb4dff14f05bf40fca499a9a11f (/dev/raw/raw1) ocrvoting 2. online 25c05e68002f4f6bbf722c09f8c7b068 (/dev/raw/raw2) ocrvoting 3. online 0231b788ad924fb3bf7eab84fd1de9ac (/dev/raw/raw3) ocrvotinglocated 3 voting disk(s).crs-2672: attempting to start ora.asm on db1crs-2676: start of ora.asm on db1 succeededcrs-2672: attempting to start ora.ocrvoting.dg on db1crs-2676: start of ora.ocrvoting.dg on db1 succeededconfigure oracle grid infrastructure for a cluster . succeededrootdb2 rpm# /oracle/orainventory/orainstroot.shchanging permissions of /oracle/orainventory.adding read,write permissions for group.removing read,write,execute permissions for world.changing groupname of /oracle/orainventory to oinstall.the execution of the script is complete.you have new mail in /var/spool/mail/rootrootdb2 rpm# /oracle/grid//root.shperforming root user operation for oracle 11g the following environment variables are set as: oracle_owner= grid oracle_home= /oracle/grid/enter the full pathname of the local bin directory: /usr/local/bin: the contents of dbhome have not changed. no need to overwrite.the contents of oraenv have not changed. no need to overwrite.the contents of coraenv have not changed. no need to overwrite.creating /etc/oratab file.entries will be added to the /etc/oratab file as needed bydatabase configuration assistant when a database is createdfinished running generic part of root script.now product-specific root actions will be performed.using configuration parameter file: /oracle/grid//crs/install/crsconfig_paramscreating trace directoryuser ignored prerequisites during installationolr initialization - successfuladding clusterware entries to upstartcrs-4402: the css daemon was started in exclusive mode but found an active css daemon on node db1, number 1, and is terminatingan active cluster was found during exclusive startup, restarting to join the clusterconfigure oracle grid infrastructure for a cluster . succeededyou have new mail in /var/spool/mail/root验证:4、创建asm磁盘组用gird用户登录$asmca5、安装数据库用/etc/hosts解析scan可忽略此错误安装完成后所有节点执行rootdb2 db2# /oracle
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 第5课 做一次电影市场分析说课稿-2025-2026学年初中信息技术粤高教版2018七年级下册-粤高教版2018
- 2025商业合作合同书范本
- 2025企业违约、强制解雇、裁员均触犯合同法规定
- 2025二手简单装修购房合同书
- 2024-2025学年高中历史 第四单元 王安石变法 第2课 王安石变法的主要内容(2)教学说课稿 新人教版选修1
- 4.2 设计制作用集成电路制作收音机说课稿-2025-2026学年高中物理上海科教版选修2-1-沪教版2007
- 绍兴事业单位笔试真题2025
- 2025【合同范本】建筑材料采购合同范本
- 2025退休人员劳务合同模板
- 2025博骜丽景春天项目商品房销售代理合同
- 监护仪使用及报警设置
- 中药饮片处方用名和调剂给付规定
- 公共部门人力资源管理全套PPT完整教学课件
- 吉林大学地质学兴城实习报告
- 中学生必需把握的3500个常用汉字
- 通过模拟实验探究膜的透性 说课课件
- 化工自动化控制仪表作业安全操作资格培训教材课件
- 造纸培训制浆造纸培训造纸纸病分析处理(“毛布”文档)共112张
- DB37-T 4457-2021企业开办工作指引
- 中科大中级有机化学实验讲义
- 干部任免审批表(空白)【电子版】
评论
0/150
提交评论