Oracle12cR1RACfororaclelinux64X86_64install

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

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

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

资源描述

Oracle12cR1RACforOracleLinux6.4X86_64install物理机配置:Corei3CPU(64位、VT技术支持即可),Win7X86_64位系统(64位系统即可),6G内存(全安装完后,内存利用率为95%),300G硬盘虚拟机配置(1,2机同配):1CPU,2.5G内存,50G硬盘,双网卡软件:VirtualBox4.3.8,OracleLinux6.4X86_64,Oracle12CR1X86_64(包含四个文件),oracleasm驱动(包含一个文件,X86_64),详见下面:安装OracleLinux6.4系统,安装时选择Desktop,因为要用Oracle12c图形安装,避免麻烦,具体安装包如下:BaseSystemBaseBaseSystemCompatibilitylibrariesBaseSystemHardwaremonitoringutilitiesBaseSystemLargeSystemsPerformanceBaseSystemNetworkfilesystemclientBaseSystemPerformanceToolsBaseSystemPerlSupportBaseSystemJavaPlatformServersServerPlatformServersSystemadministrationtoolsServersoracle-rdbms-server-11gR2-Serversoracleasm-support-DesktopsDesktopDesktopsDesktopPlatformDesktopsFontsDesktopsGeneralPurposeDesktopDesktopsGraphicalAdministrationToolsDesktopsInputMethodsDesktopsXWindowSystemApplicationsInternetBrowserDevelopmentAdditionalDevelopmentDevelopmentDevelopmentTools检测硬件环境:grepMemTotal/proc/meminfo内存4GgrepSwapTotal/proc/meminfo交换分区2.5Gdf–m/tmp/tmp目录空闲区2Gfree查看可用内存和交换空间df–m硬盘空闲空间30Guname–m;uname–a查看系统提醒架构cat/etc/oracle-release;lsb_release–id查看系统发行版本一、oraclelinux6yum服务器的搭建备份/etc/yum.repos.d/下其他repo文件mount/dev/cdrom/mntrpm-ivhcreaterepo-0.9.9-17.el6.noarch.rpmdeltarpm-3.5-0.5.20090913git.el6.x86_64.rpmpython-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm然后建立以下内容local.repo文件[Server]name=Serverbaseurl=file:///mnt/Servergpgcheck=0enabled=1gpgkey=file:///mnt/RPM-GPG-KEY-oracle然后yumcleanall然后就可以yum-yinstall了二、依赖包yuminstallbinutils-yyuminstallcompat-libcap1-yyuminstallcompat-libstdc++-33-yyuminstallcompat-libstdc++-33.i686-yyuminstallgcc-yyuminstallgcc-c++-yyuminstallglibc-yyuminstallglibc.i686-yyuminstallglibc-devel-yyuminstallglibc-devel.i686-yyuminstallksh-yyuminstalllibgcc-yyuminstalllibgcc.i686-yyuminstalllibstdc++-yyuminstalllibstdc++.i686-yyuminstalllibstdc++-devel-yyuminstalllibstdc++-devel.i686-yyuminstalllibaio-yyuminstalllibaio.i686-yyuminstalllibaio-devel-yyuminstalllibaio-devel.i686-yyuminstalllibXext-yyuminstalllibXext.i686-yyuminstalllibXtst-yyuminstalllibXtst.i686-yyuminstalllibX11-yyuminstalllibX11.i686-yyuminstalllibXau-yyuminstalllibXau.i686-yyuminstalllibxcb-yyuminstalllibxcb.i686-yyuminstalllibXi-yyuminstalllibXi.i686-yyuminstallmake-yyuminstallsysstat-yyuminstallunixODBC-yyuminstallunixODBC-devel-ybinutils-2.20.51.0.2-5.11.el6(x86_64)compat-libcap1-1.10-1(x86_64)compat-libstdc++-33-3.2.3-69.el6(x86_64)compat-libstdc++-33-3.2.3-69.el6(i686)gcc-4.4.4-13.el6(x86_64)gcc-c++-4.4.4-13.el6(x86_64)glibc-2.12-1.7.el6(i686)glibc-2.12-1.7.el6(x86_64)glibc-devel-2.12-1.7.el6(x86_64)glibc-devel-2.12-1.7.el6(i686)kshlibgcc-4.4.4-13.el6(i686)libgcc-4.4.4-13.el6(x86_64)libstdc++-4.4.4-13.el6(x86_64)libstdc++-4.4.4-13.el6(i686)libstdc++-devel-4.4.4-13.el6(x86_64)libstdc++-devel-4.4.4-13.el6(i686)libaio-0.3.107-10.el6(x86_64)libaio-0.3.107-10.el6(i686)libaio-devel-0.3.107-10.el6(x86_64)libaio-devel-0.3.107-10.el6(i686)libXext-1.1(x86_64)libXext-1.1(i686)libXtst-1.0.99.2(x86_64)libXtst-1.0.99.2(i686)libX11-1.3(x86_64)libX11-1.3(i686)libXau-1.0.5(x86_64)libXau-1.0.5(i686)libxcb-1.5(x86_64)libxcb-1.5(i686)libXi-1.3(x86_64)libXi-1.3(i686)make-3.81-19.el6sysstat-9.0.4-11.el6(x86_64)检查软件包的安装[root@oradata12C~]#rpm-qa|grepbinutils[root@oradata12C~]#rpm-qa|grepcompat[root@oradata12C~]#rpm-qa|grepgcc[root@oradata12C~]#rpm-qa|grepcompat-libstdc++[root@oradata12C~]#rpm-qa|grepglibc[root@oradata12C~]#rpm-qa|grepksh[root@oradata12C~]#rpm-qa|greplibgcc[root@oradata12C~]#rpm-qa|greplibstdc++[root@oradata12C~]#rpm-qa|greplibaio[root@oradata12C~]#rpm-qa|greplibX[root@oradata12C~]#rpm-qa|greplibXext[root@oradata12C~]#rpm-qa|greplibXtst[root@oradata12C~]#rpm-qa|greplibXext[root@oradata12C~]#rpm-qa|greplibXtst[root@oradata12C~]#rpm-qa|greplibX11[root@oradata12C~]#rpm-qa|greplibXau[root@oradata12C~]#rpm-qa|greplibXi[root@oradata12C~]#rpm-qa|greplibxcb[root@oradata12C~]#rpm-qa|grepmake[root@oradata12C~]#rpm-qa|grepsysstat三、内核参数(RAC时,01、02机相同)vi/etc/sysctl.confkernel.shmmni=4096kernel.sem=25032000100128kernel.shmmax=4398046511104kernel.shmall=1073741824fs.file-max=6815744net.ipv4.ip_local_port_range=900065500net.core.rmem_default=262144net.core.wmem_default=262144net.core.rmem_max=4194304net.core.wmem_max=1048576fs.aio-max-nr=1048576查看上面参数值:/sbin/sysctl–a|grep参数名使内核参数即时生效:/sbin/sysctl–p四、设置grid和oracle用户shell限制(RAC时,01、02机相同)Vi/etc/security/limits.conf加入gridsoftnproc2047(确认左边参数#ulimit–Su)gridhardnproc16384(确认左边参数#ulimit–Hu)gridsoftnofile1024(确认左边参数#ulimit–Sn)gridhardnofile65536(确认左边参数#ulimit–Hn)gridsoftstack10240(确认左边参数#ulimit–Ss)gridhardstack32768(确认左边参数#ulimit–Hs)oraclesoftnproc2047oraclehardnproc16384oraclesoftnofile1024oraclehardnofile65536oraclesoftstack10240oraclehardstack32768vi/etc/pam.d/login加入(RAC时,01、02机相同)sessionrequired/lib/security/pam_limits.so(X64系统用/lib64/security/pam_limits.so)sessionrequiredpam_limits.so$source/.bash_profile使环境变量生效解压zip包:unzip*.zip更改主机名:vi/etc/sysconfig/network和/etc/hostsHOSTNAME=XXX.com(最好是全域名)RAC时,/etc/hosts(RAC时,01、02机相同)IP-addressfully-qualified-machine-name

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

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

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

×
保存成功