您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > 数据库 > Oracle11gR2“加”RAC“加”ASM“加”OracleLinux64安装详解
Oracle11gR2+RAC+ASM+OracleLinux6.4安装详解(图)2014-12-0818:10:28分类:Oracle一、版本说明发现网上相关文章很多但是不是很专,因此细化版本为了使文章更加实用。这次搭建的是Oracle11gR211.2.0.4的RAC环境,使用的操作系统版本为OracleLinux6.4点击(此处)折叠或打开1.[root@node1~]#lsb_release-a2.LSBVersion::base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch3.DistributorID:OracleServer4.Description:OracleLinuxServerrelease6.45.Release:6.46.Codename:n/a内核版本:点击(此处)折叠或打开1.[root@node1~]#uname-r2.2.6.39-400.17.1.el6uek.x86_64UEK代表UnbreakableEnterpriseKernel,是Oracle专门为OracleLinux定制的内核,可以提供在线支持和对数据库的支持,算是OracleLinux的卖点之一。(本文中一些配置过程会因实用UEK版本而得到简化)二、Oracle11gR2RAC安装整体步骤1.服务器准备(system,storage,andnetworkadministration):安装操作系统并升级到满足Oracle安装要求的版本。创建安装所需要的组、用户以及软件的家目录。设置GNS域名如果您打算部署GNS,并且完成网络地址在DNS和服务器上的配置。设置所要求的存储。将所有安装文件拷贝到一个节点上。2.安装OracleGrid集群基础架构,包括OracleClusterware和OracleASM(systemandstorageadministration):为集群安装OracleGrid基础架构软件。在安装过程中,Fixup脚本进行操作系统参数、SSH和用户环境变量等参数的附加调整。升级OracleClusterware和OracleASM到最新补丁。3.安装OracleRAC(databaseadministration):安装OracleRAC打补丁到最新版本完成安装后的调试三、详细安装过程及说明(参考官方文档)1.通过SecureCRT或TerminalX建立命令行连接。2.在每一个节点上添加安装OracleGrid的用户、组和家目录,并设置权限。点击(此处)折叠或打开1.#/usr/sbin/groupadd-g1000oinstall2.#/usr/sbin/groupadd-g1020asmadmin3.#/usr/sbin/groupadd-g1021asmdba4.#/usr/sbin/groupadd-g1022asmoper5.#/usr/sbin/groupadd-g1031dba6.#/usr/sbin/groupadd-g1032oper7.#useradd-u1100-goinstall-Gasmadmin,asmdba,asmoper,oper,dbagrid8.#useradd-u1101-goinstall-Gdba,asmdba,operoracle9.#mkdir-p/u01/app/11.2.0/grid10.#mkdir-p/u01/app/grid11.#chown-Rgrid:oinstall/u0112.#mkdir/u01/app/oracle13.#chownoracle:oinstall/u01/app/oracle14.#chmod-R775/u01/参照官方文档,采用GI与DB分开安装和权限的策略,对于多实例管理有利。3.检查服务器各个节点的配置是否符合安装要求I.服务器硬盘空间要求/tmp目录大小至少:1GB安装GridInfrastracture所需空间:6.6GB安装OracleDatabase所需空间:4GB此外安装过程中分析、收集、跟踪文件所需空间:10GB建议总共至少30GB,放心!(此处不包含ASM或NFS的空间需求)II.服务器内存要求内存大小:至少2.5GBSwap大小:当内存为2.5GB-16GB时,Swap需要大于等于系统内存。当内存大于16GB时,Swap等于16GB即可。III.检查和调试代码查看内存及Swap大小的命令如下。点击(此处)折叠或打开1.#grepMemTotal/proc/meminfo2.#grepSwapTotal/proc/meminfo查看/tmp目录以及配置单独lv的命令如下。点击(此处)折叠或打开1.#df-h/tmp2.#lvcreate-L2G-nlv_tmpvg_temp3.#mount/dev/vg_temp/lv_tmp/tmp4.#df-h/tmp4.设置操作系统相关参数这一项在非OracleLinux的操作系统中算是一项比较繁琐的工作,然而我们这次安装的版本是OracleLinux6.4withUnbreakableEnterpriseKernel,因此我们有了更简单的办法,就是通过安装OraclePreinstallationRPM来实现相关操作系统参数的调整和软件包的安装。这个安装包主要完成以下工作:AutomaticallydownloadsandinstallsanyadditionalRPMpackagesneededforinstallingOracleGridInfrastructureandOracleDatabase,andresolvesanydependenciesCreatesanoracleuser,andcreatestheoraInventory(oinstall)andOSDBA(dba)groupsforthatuserAsneeded,setssysctl.confsettings,systemstartupparameters,anddriverparameterstovaluesbasedonrecommendationsfromtheOraclePreinstallationRPMprogramSetshardandsoftresourcelimitsSetsotherrecommendedparameters,dependingonyourkernelversion此安装包位于操作系统安装盘的Packages目录下。点击(此处)折叠或打开1.#cd/mnt/install_DVD2.#cdPackages3.#ll|greppreinstall4.-rw-r--r--1rootroot15524Jan162013oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64.rpm5.#rpm-ivhoracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64.rpm安装包修改/etc/sysctl.conf的内容如下:其中标有oracle-rdbms-server-11gR2-preinstall字样注释的便是安装包所添加的参数。点击(此处)折叠或打开1.#cat/etc/sysctl.conf2.#KernelsysctlconfigurationfileforRedHatLinux3.#4.#Forbinaryvalues,0isdisabled,1isenabled.Seesysctl(8)and5.#sysctl.conf(5)formoredetails.6.7.#ControlsIPpacketforwarding8.net.ipv4.ip_forward=09.10.#Controlssourcerouteverification11.net.ipv4.conf.default.rp_filter=112.13.#Donotacceptsourcerouting14.net.ipv4.conf.default.accept_source_route=015.16.#ControlstheSystemRequestdebuggingfunctionalityofthekernel17.kernel.sysrq=018.19.#ControlswhethercoredumpswillappendthePIDtothecorefilename.20.#Usefulfordebuggingmulti-threadedapplications.21.kernel.core_uses_pid=122.23.#ControlstheuseofTCPsyncookies24.net.ipv4.tcp_syncookies=125.26.#Disablenetfilteronbridges.27.net.bridge.bridge-nf-call-ip6tables=028.net.bridge.bridge-nf-call-iptables=029.net.bridge.bridge-nf-call-arptables=030.31.#Controlsthedefaultmaxmimumsizeofamesagequeue32.kernel.msgmnb=6553633.34.#Controlsthemaximumsizeofamessage,inbytes35.kernel.msgmax=6553636.37.#Controlsthemaximumsharedsegmentsize,inbytes38.39.#Controlsthemaximumnumberofsharedmemorysegments,inpages40.41.#oracle-rdbms-server-11gR2-preinstallsettingforfs.file-maxis681574442.fs.file-max=681574443.44.#oracle-rdbms-server-11gR2-preinstallsettingforkernel.semis'25032000100128'45.kernel.sem=2503200010012846.47.#oracle-rdbms-server-11gR2-preinstallsettingforkernel.shmmniis409648.kernel.shmmni=409649.50.#oracle-rdbms-server-11gR2-preinstallsettingforkernel.shmallis1073741824onx86_6451.#oracle-rdbms-server-11gR2-preinstallsettingforkernel.shmallis2097152oni38652.kernel.shmall=107374182453.54.#oracle-rdbms-server-11gR2-preinstallsettingforkernel.shmmaxis4398046511104onx86_6455.#oracle-rdbms-server-11gR2-preinstallsettingforkernel.shmmaxis4294967295oni38656.kernel.shmmax=439804651110457.58.#oracle-rdbms-server-11gR2-preinstallsettingfornet.core.rmem_defaultis26214459.net.core.rmem_default=262
本文标题:Oracle11gR2“加”RAC“加”ASM“加”OracleLinux64安装详解
链接地址:https://www.777doc.com/doc-9433 .html