Oracle RAC 安装图解

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

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

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

资源描述

oracle10grac安装图解规划:所用linux系统以虚拟化方式安装在esx上,配置有内网的yum源,各分配有16G存储,下面为简单拓扑图一,下载软件1,地址:地址:二,安装环境1,系统:centos5.4x86_642,外部存储:linux下的iscsi3,iscsi服务器配置#下载iSCSIEnterpriseTargetwget解压缩tar-zxvfiscsitarget-0.4.17.tar.gzcdiscsitarget-0.4.17#编译、安装makemakeinstall#配置服务chkconfig--level2345iscsi-targetonserviceiscsi-targetstart#配置第一个iSCSI设备#在/opt/下生成64G大的空洞设备文件#请将opt修改为实际的目录,并根据实际情况设置设备文件大小#生成空洞文件速度很快的,且在真正使用之前不占用磁盘实际空间ddif=/dev/zeroof=/opt/iscsi.[配置文件中Target的名称].imgbs=1Gcount=64seek=64#cout是从什么开始,一般设置为0#生成256G的例子ddif=/dev/zeroof=/opt/iscsi/iqn.2009-04.com.haoyuan-inc:storage.disk.oracle.01.imgbs=1Gcount=0seek=256vim/etc/ietd.conf#编辑Target名称,例如:iqn.2009-04.com.haoyuan-inc:storage.disk.share.01#编辑LUN段内容,例如:Lun0Path=/opt/iscsi.iqn.2009-04.com.haoyuan-inc:storage.disk.share.01.image,Type=fileio#不要设置XXXUser,允许任何人访问#重启iscsi-targetserviceiscsi-targetrestart三,安装准备1,检查必须软件yuminstalljdkbinutilselfutils-libelfelfutils-libelf-develglibcglibc-commonglibc-develgccgcc-c++libaiolibaio-devellibgcclibstdc++libstdc++-develmakesysstatunixODBCunixODBC-devellibXplibXp-devel#其中jdk是我在yum服务器中添加的2,修改内核参数编辑/etc/sysctl.confkernel.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=262144#生效/sbin/sysctl-p3,修改系统shell限制vi/etc/security/limits.conforaclesoftnproc2047oraclehardnproc16384oraclesoftnofile1024oraclehardnofile655364,配置Hangcheck计时器所有RHEL版本:cat/etc/rc.d/rc.localeof/sbin/insmodhangcheck-timerhangcheck_tick=30hangcheck_margin=180EOF5,添加相应用户和组/eof/usr/sbin/groupaddoinstall/usr/sbin/groupadddba/usr/sbin/useradd-m-goinstall-Gdbaoraclepasswdoracle6,配置网络每个机器需要两块网卡,一个设置为公共IP,一个设置为私有IP,另外另需配置一虚拟IP,虚拟IP不用手工添加到系统,只需预先定义好,一般是和公共IP在同一子网。cat/etc/hosts#Donotremovethefollowingline,orvariousprograms#thatrequirenetworkfunctionalitywillfail.127.0.0.1HY_472localhost.localdomainlocalhost::1localhost6.localdomain6localhost6#publicaddress10.0.40.11rac110.0.40.12rac2#privateaddress10.0.10.11rac1-priv10.0.10.12rac2-priv#virtualaddress10.0.40.111rac1-vip10.0.40.112rac2-vip7,配置sshrac1suoracle$mkdir~/.ssh$chmod755~/.ssh$/usr/bin/ssh-keygen-trsa$/usr/bin/ssh-keygen-tdsarac2suoracle$mkdir~/.ssh$chmod755~/.ssh$/usr/bin/ssh-keygen-trsa$/usr/bin/ssh-keygen-tdsarac1$cat~/.ssh/id_rsa.pub~/.ssh/authorized_keys$cat~/.ssh/id_dsa.pub~/.ssh/authorized_keys$sshoracle@rac2cat~/.ssh/id_rsa.pub~/.ssh/authorized_keys$sshoracle@rac2cat~/.ssh/id_dsa.pub~/.ssh/authorized_keys$chmod644~/.ssh/authorized_keysrac2$cat~/.ssh/id_rsa.pub~/.ssh/authorized_keys$cat~/.ssh/id_dsa.pub~/.ssh/authorized_keys$sshoracle@rac1cat~/.ssh/id_rsa.pub~/.ssh/authorized_keys$sshoracle@rac1cat~/.ssh/id_dsa.pub~/.ssh/authorized_keys$chmod644~/.ssh/authorized_keys#建立等效性rac1,rac2$sshrac1$sshrac1-priv$sshrac2$sshrac2-priv8,配置时间同步rac1、rac2#vi/etc/crontab1718***/usr/sbin/ntpdaterepo.haoyuan-inc.com/dev/null9,修改系统版本rac1,rac2vi/etc/redhat-release#将CentOSrelease5(Final)修改成redhat4四、配置ASM1,安装所需软件rac1、rac2rpm-ivhoracleasm-2.6.18-164.el5-2.0.5-1.el5.x86_64.rpmoracleasmlib-2.0.4-1.el5.x86_64.rpmoracleasm-support-2.1.3-1.el5.x86_64.rpm2,挂载iscsi硬盘rac1、rac2yuminstall-y--nogpgcheckiscsi-initiator-utilschkconfig--level2345iscsionchkconfig--level2345iscsidonserviceiscsistartserviceiscsidstartiscsiadm--modediscovery--typesendtargets--portal10.0.40.51iscsiadm-mnode-Tiqn.20-05.com.forzw:storage.disk.oracle.01-p10.0.40.51-lvi/etc/rc.localiscsiadm-mnode-Tiqn.20-05.com.forzw:storage.disk.oracle.01-p10.0.40.51-l3,配置ASMrac1,rac2/etc/init.d/oracleasmconfigureDefaultusertoownthedriverinterface[]:oracleDefaultgrouptoownthedriverinterface[]:dbaStartOracleASMlibrarydriveronboot(y/n)[n]:yScanforOracleASMdisksonboot(y/n)[y]:yWritingOracleASMlibrarydriverconfiguration:doneInitializingtheOracleASMLibdriver:[OK]ScanningthesystemforOracleASMLibdisks:[OK]/etc/init.d/oracleasmenableWritingOracleASMlibrarydriverconfiguration:doneInitializingtheOracleASMLibdriver:[OK]ScanningthesystemforOracleASMLibdisks:[OK]rac1fdisk/dev/sdbDisk/dev/sdb:67.1GB,67108864000bytes64heads,32sectors/track,64000cylindersUnits=cylindersof2048*512=1048576bytesDeviceBootStartEndBlocksIdSystem/dev/sdb111000102398483Linux/dev/sdb210012000102400083Linux/dev/sdb32001120001024000083Linux/dev/sdb412001640005324800083Linux/etc/init.d/oracleasmcreatediskVOL1/dev/sdb3/etc/init.d/oracleasmlistdisksVOL1rac2/etc/init.d/oracleasmscandisks五,安装配置RAC1,创建安装目录rac1,rac2mkdir-p/u01/app/oracle/product/10.2.0/db_1mkdir-p/u01/app/oracle/product/10.2.0/crschown-Roracle:oin

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

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

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

×
保存成功