第1页Oracle数据库安装实施方案第2页文档资料信息文档名称:Oracle数据库安装实施方案版本历史版本号:版本日期:修订者:描述:文件名:注意事项1系统基本要求................................................51.1OS及DB版本............................................5第3页1.2硬件要求................................................51.3LINUX/TMP文件系统要求.................................51.4LINUXJDK&JRE.........................................61.5磁盘要求................................................61.6时间同步(RAC)...........................................61.7时区设置................................................622.操作系统包及补丁等要求...................................72.1操作系统包..............................................72.1.1RHEL6、OEL6:........................................72.1.2RHEL5、OEL5:........................................72.1.3SUSE10:............................................82.1.4SUSE11:............................................82.2其他组件................................................93操作系统配置要求...........................................103.1用户和用户组...........................................103.2系统配置参数...........................................103.3用户limits配置........................................113.4配置profile...........................................113.5修改PAM...............................................113.6HUGEPAGE配置..........................................113.7禁用TransparentHugePages.............................123.8禁用AVAHIdaemon服务..................................143.9软件安装目录结构建议...................................143.10用户环境变量配置....................................143.11部署OSW............................................163.12主机其他相关的安全配置..............................164网络相关要求(RAC)..........................................174.1网卡需求...............................................174.2IP地址需求............................................17第4页5存储要求(RAC或HA)........................................186数据库配置.................................................196.1数据库参数.............................................196.1.1ASM实例参数.......................................196.1.2DB实例参数........................................196.2控制文件...............................................216.3redolog文件...........................................216.4数据库对象.............................................216.5关闭oracle_ocm用户job................................227数据库备份.................................................238数据库安全.................................................248.1DBA权限...............................................248.2SQLNET配置............................................24第5页1系统基本要求1.1OS及DB版本主机OS版本:RHEL4,OEL4-Update7以上(内核2.6.9-78)RHEL5,OEL5-5.2以上(内核2.6.18-92)RHEL6,OEL6SLES10-Kernel2.6.16.21SLES11如果是RAC,务必保证集群各节点的主机版本完全一致。ORACLE版本:oracle11.2.0.4及以上,PSU为oracle官方发布最新PSU1.2硬件要求RAM:只安装db软件,建议最小2GB安装GI组件,建议最小4GBSWAP:只安装db软件:内存为1GB至2GB,SWAP要求为物理内存的1.5倍内存为2GB至16GB,SWAP要求为等于物理内存大小内存为16GB以上,SWAP大小为16GB安装GI组件:内存为2GB至8GB,SWAP要求为内存的2倍内存为8GB至32GB,SWAP要求为内存的1.5倍内存为32GB以上,SWAP大小为32GB1.3LINUX/TMP文件系统要求1GB,或以上第6页1.4LINUXJDK&JREJDK1.5.0-06(64BIT)1.5磁盘要求建议独立挂载$ORACLE_HOME目录,建议大小50GB1.6时间同步(RAC)在11gR2中,要求所有集群节点配置时间同步服务,保证节点间的时间同步,可以采用NTP或者oracle自带的CTSS,一般建议使用前者,让数据库服务器与局域网内的时钟服务器同步,保持与大网时间一致。在11gR2中,在LINUX平台上调整NTP使用slew模式:1)、检查ntp/etc/init.d/ntpdstatus2)、调整NTP使用slew模式修改/etc/sysconfig/ntpd#Droproottoid'ntp:ntp'bydefault.OPTIONS=-untp:ntp-p/var/run/ntpd.pid-g找到这两行,并注释,再增加如下一行修改为:OPTIONS=-x-untp:ntp-p/var/run/ntpd.pid-g重启NTP生效#/etc/init.d/ntpdrestart1.7时区设置使用东八时区,检查指令:date-R例如:Fri,07Mar201415:17:34+0800如果时区不对,有如下2种设置方法:使用tzselect命令设置。修改配置文件rm-rf/etc/localtimeln-s/usr/share/zoneinfo/Asia/Shanghai/etc/localtime第7页2操作系统包及补丁等要求2.1操作系统包2.1.1RHEL6、OEL6binutils-2.20.51.0.2-5.11.el6(x86_64)compat-libstdc++-33-3.2.3-69.el6(x86_64)glibc-2.12-1.7.el6(x86_64)ksh-*.el6(x86_64)libaio-0.3.107-10.el6(x86_64)libgcc-4.4.4-13.el6(x86_64)libstdc++-4.4.4-13.el6(x86_64)make-3.81-19.el6(x86_64)compat-libcap1-1.10-1(x86_64)gcc-4.4.4-13.el6(x86_64)gcc-c++-4.4.4-13.el6(x86_64)glibc-devel-2.12-1.7.el6(x86_64)libaio-devel-0.3.107-10.el6(x86_64)libstdc++-devel-4.4.4-13.el6(x86_64)sysstat-9.0.4-11.el6(x86_64)2.1.2RHEL5、OEL5binutils-2.17.50.0.6-6.el5(x86_64)compat-libstdc++-33-3.2.3-61(x86_64)compat-libstdc++-33-3.2.3-61(i386)elfutils-libelf-0.125-3.el5(x86_64)glibc-2.5-24(x86_64)glibc-2.5-24(i686)glibc-common-2.5-24(x86_64)ksh-20060214-1.7(x86_64)libaio-0.3.106-3.2(x86_64)libaio-0.3.106-3.2(i386)libgcc-4.1.2-42.el5(i386)libgcc-4.1.2-42.el5(x86_64)libstdc++-4.1.2-42.el5(x86_64)libstdc++-4.1.2-42.el5(i386)make-3.81-3.el5(x86_64)elfutils-libelf-devel-0.125-3(x86_64)elfutils-libelf-devel-static-0.125-3(x86_64)elfutils-libelf-devel-0.125-3.el5(x86_64)elfutils-libelf-devel-static-0.125-3(x86_64)glibc-headers-2.5-24(x86_64)requireskernel-headers-2.6.18-92(x86_64)glibc-devel-2.5-24(x86_64).glibc-devel-2.5-24(i386)gcc-4.1.2-42.el5(x86_64)requireslibgomp-4.1.2-42(x86_64)第8页libstdc++-devel-4.1.2-42(x86_64)gcc-c++-4.1.2-42.el5(x86_64)libaio-devel-0.3.106-3.2(x86_64)libaio-devel-0.3.106-3.2(i386)sysstat-7.0.2-1(x86_64)unixODBC-2.2.12(x86_64)unixODBC-2.2.12(i386)unixODBC-devel-2.2.12