您好,欢迎访问三七文档
Oracle12安装记录整理分享By小蚂蚁爱share2014年7月9日星期三v1.0Oracle12CRAConSuse11SP3InstallitionGuideV1.0环境说明Grid:OracleGridInfrastructure12c12.1.0.1.0Database:OracleDatabase12cEnterpriseEditionRelease12.1.0.1.0-64bitProductionPlatform&OS:SUSELinuxEnterpriseServer11SP3(x86_64)Kernelvsersion:3.0.76-0.11-defaultIP规划192.168.150.165rac01192.168.150.167rac01-vip192.168.150.166rac02192.168.150.168rac02-vip192.168.56.11rac01-priv192.168.56.12rac02-priv192.168.56.21rac01-asmOracle12安装记录整理分享By小蚂蚁爱share2014年7月9日星期三v1.0192.168.56.22rac02-asm192.168.150.169scan-ip注意:此处规划多了两块asm网卡,这个是12cRAC中配置FlexASM用到的,当然也可以用私有网卡兼职充当,不过在这里我单独为其分配了一块网卡,后续截图中会有体现安装前准备系统软件包CheckPackage:make-3.81libaio-0.3.104binutils-2.19gcc(x86_64)-4.3gcc-c++(x86_64)-4.3glibc-2.9glibc-devel-2.9ksh-93tlibaio-devel-0.3.104libstdc++33-3.3.3libstdc++43-devel-4.3.3_20081022libstdc++-devel(x86_64)-4.3Oracle12安装记录整理分享By小蚂蚁爱share2014年7月9日星期三v1.0libstdc++46-4.6.1_20110701libgcc46-4.6.1_20110701sysstat-8.1.5libcap1-1.10nfs-kernel-server-1.2.1-2.24.1系统参数调整1、SWAP调整官方建议标准RAMSwapSpace1024Mbto2048Mb1.5xRAM2049Mbto16Gb1xRAMgreaterthan16Gb16Gb若已经装好系统,swap大小不合理,可以用以下方式调整ddif=/dev/zeroof=/var/swapfilebs=1Mcount=3096--创建一个swapfile(若有空余磁盘,可以用磁盘解决,此处是文件方式解决)mkswap/var/swapfile--制作为swap形式swapon/var/swapfile--激活swap文件vim/etc/fstab修改/etc/fstab文件,增加下一行内容,设置开机启动/var/swapswapswapdefaults00Oracle12安装记录整理分享By小蚂蚁爱share2014年7月9日星期三v1.0rac01:~/Desktop#freetotalusedfreesharedbufferscachedMem:42556564134344121312014761444004-/+buffers/cache:26888641566792Swap:5049336635250429842、KernelParameters官方建议值kernel.shmall=physicalRAMsize/pagesizeFormostsystems,thiswillbethevalue2097152.SeeNote301830.1formoreinformation.kernel.shmmax=1/2ofphysicalRAM.Thiswouldbethevalue2147483648forasystemwith4GbofphysicalRAM.kernel.shmmni=4096kernel.sem=25032000100128fs.file-max=512xprocesses(forexample6815744for13312processes)fs.aio-max-nr=1048576net.ipv4.ip_local_port_range=900065500net.core.rmem_default=262144net.core.rmem_max=4194304net.core.wmem_default=262144net.core.wmem_max=1048576vm.hugetlb_shm_group=oinstallgroupidnumber(forexample1000if/etc/grouplineforoinstallis1000)Oracle12安装记录整理分享By小蚂蚁爱share2014年7月9日星期三v1.0本次实际值kernel.shmall=2097152kernel.shmmax=1073741824kernel.shmmni=4096kernel.sem=25032000100128fs.file-max=6815744fs.aio-max-nr=1048576net.ipv4.ip_local_port_range=900065500net.core.rmem_default=262144net.core.rmem_max=4194304net.core.wmem_default=262144net.core.wmem_max=1048576vm.hugetlb_shm_group=501注意:以上参数要求必须有,但是数值不需要太纠结,可以借助之后./runcluvfy.sh脚本来改正,后边会贴出整个脚本输出3、修改/etc/security/limits.conf文件gridsoftnproc2047gridhardnproc16384gridsoftnofile1024gridhardnofile65536gridhardstack10240oraclesoftnproc2047oraclehardnproc16384Oracle12安装记录整理分享By小蚂蚁爱share2014年7月9日星期三v1.0oraclesoftnofile1024oraclehardnofile65536oraclehardstack102404、AddUsersandGroups完整复制粘贴即可/usr/sbin/groupadd-g501oinstall/usr/sbin/groupadd-g502dba/usr/sbin/groupadd-g503oper/usr/sbin/groupadd-g504asmadmin/usr/sbin/groupadd-g506asmdba/usr/sbin/groupadd-g507asmoper/usr/sbin/useradd-u501-goinstall-Gasmadmin,asmdba,asmoper,dbagrid/usr/sbin/useradd-u502-goinstall-Gdba,oper,asmdbaoraclemkdir/home/oraclemkdir/home/gridchown-Roracle:oinstall/home/oraclechown-Rgrid:oinstall/home/gridusermod-d/home/oracleoracleusermod-d/home/gridgridOracle12安装记录整理分享By小蚂蚁爱share2014年7月9日星期三v1.05、NTP配置文件#vi/etc/sysconfig/ntpdSYNC_HWCLOCK=yesOPTIONS=-x-untp:ntp-p/var/run/ntpd.pidNTPD_OPTIONS=-g-x-untp:ntp注意:RAC安装时需要检测的-x参数6、创建安装目录完整复制粘贴即可mkdir-p/u02/app/oraclemkdir-p/u02/app/12.1.0/gridchown-Rgrid:oinstall/u02chmod-R775/u02mkdir-p/u01/app/oracle/product/12.1.0/db_1chown-Roracle:oinstall/u01chmod-R775/u01Oracle12安装记录整理分享By小蚂蚁爱share2014年7月9日星期三v1.07、配置ssh等效性--oracle用户--节点1mkdir~/.sshchmod755~/.ssh/usr/bin/ssh-keygen-trsacat~/.ssh/id_rsa.pub~/.ssh/authorized_keyssshoracle@rac02-pubcat~/.ssh/id_rsa.pub~/.ssh/authorized_keyschmod644~/.ssh/authorized_keys节点2mkdir~/.sshchmod755~/.ssh/usr/bin/ssh-keygen-trsacat~/.ssh/id_rsa.pub~/.ssh/authorized_keyssshoracle@rac01-pubcat~/.ssh/id_rsa.pub~/.ssh/authorized_keyschmod644~/.ssh/authorized_keysOracle12安装记录整理分享By小蚂蚁爱share2014年7月9日星期三v1.0----grid用户节点1mkdir~/.sshchmod755~/.ssh/usr/bin/ssh-keygen-trsacat~/.ssh/id_rsa.pub~/.ssh/authorized_keyssshgrid@rac02-pubcat~/.ssh/id_rsa.pub~/.ssh/authorized_keyschmod644~/.ssh/authorized_keys节点2mkdir~/.sshchmod755~/.ssh/usr/bin/ssh-keygen-trsacat~/.ssh/id_rsa.pub~/.ssh/authorized_keyssshgrid@rac01-pubcat~/.ssh/id_rsa.pub~/.ssh/authorized_keyschmod644~/.ssh/authorized_keys注意:互信配置结束后,需要分别用oracle和grid对/etc/hosts中的所有记录做一次ssh远程登录操作,包含自身和对方Oracle12安装记录整理分享By小蚂蚁爱share2014年7月9日星期三v1.08、环境变量--grid用户exportORACLE_SID=+ASM1exportORACLE_BASE=/u02/app/oracleexportORACLE_HOME=/u02/app/12.1.0/gridexportPATH=$ORACLE_HOME/bin:$PATHexportORACLE_SID=+ASM2exportORACLE_BASE=/u02/app/oracleexportORACLE_HOME=/u02/app/12.1.0/gridexportPATH=$ORACLE_HOME/bin:$PATH--oracle用户exportORACLE_SID=orcl_1--注意此处是下划线,这是12c不同的地方exportORACLE_BASE=/u01/app/oracleexportORACLE_HOME=$ORACLE_BASE/product/12.1.0/db_1exportPATH=$ORACLE_HOME/bin:$PATHex
本文标题:Oracle 12C RAC on Suse 11 SP3 Installition Guide
链接地址:https://www.777doc.com/doc-3883734 .html