Install Oracle 11g on Redhat Enterprise Linux 5 (x

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

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

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

资源描述

InstallOracle11gonRedhatEnterpriseLinux5x86_64jililijilili@aliyun.com修订历史:2010-10-25byjilili+添加自动启动服务部分。+添加CentOS5u4的支持。+添加CentOS6的支持。2011-06-07byjilili+添加从Yum安装需要的依赖包。+修改作者邮件为jilili@aliyun.com内容目录1文档说明............................................................................................................................21.1术语和定义.................................................................................................................21.2参考资料.....................................................................................................................22环境说明............................................................................................................................22.1操作系统.....................................................................................................................22.2网络配置.....................................................................................................................22.3安全配置.....................................................................................................................22.3.1更新操作系统......................................................................................................22.3.2selinux.................................................................................................................32.3.3防火墙设置..........................................................................................................32.4内核参数.....................................................................................................................32.5需求包安装.................................................................................................................42.5.1从CD安装..........................................................................................................42.5.2从YUM安装........................................................................................................53用户配置............................................................................................................................53.1创建用户和组..............................................................................................................53.2创建目录.....................................................................................................................63.3配置shell限制............................................................................................................63.4设置环境变量..............................................................................................................64安装步骤............................................................................................................................75启动设置............................................................................................................................75.1检查/etc/oratab配置...................................................................................................75.2编制启动脚本(方法一)...........................................................................................75.3建立系统服务(方法二)...........................................................................................86安装测试............................................................................................................................87常见问题............................................................................................................................91文档说明1.1术语和定义rhel5——指RedhatEnterpriseLinux5.0,本文档默认采用的是5.4版。同样适用于CentOS5系列。已经测试过的版本rhel5.4,centos5.6。不建议11g生产环境部署在6系列上1.2参考资料2环境说明1)Oracle11g需要最少1G物理内存,建议2G2)在32位系统中进行安装时默认只认识3G内存,需要安装带有PAE的内核,在rhel的安装盘中有。2.1操作系统1)使用默认安装选项(其实默认安装挺讨厌,安装了好多在这里用不到的软件,如:OpenOffice等)。2)交换分区至少1G,使用如下命令检查#grepMemTotal/proc/meminfo2.2网络配置1)在/etc/hosts文件中添加一个完整的host记录,格式如下IP-addressfully-qualified-machine-namemachine-name/alias127.0.0.1localhostloopback192.168.1.30ora11g.dev.openzones.orgora11g#注:127.0.0.1不能缺少否则,lsnrctlstart不能成功执行,hostname对应的ip要是正确的。Listener会在由主机名翻译到的地址上建立侦听。2)修改主机名修改/etc/sysconfig/network中的主机名为HOSTNAME=ora11g.dev.openzones.org使用hostname临时修改主机名(下次启动将从/etc/sysconfig/network读取)hostnameora11g.dev.openzones.org2.3安全配置2.3.1更新操作系统安装完成后,建议先对操作系统进行更新(如果不想更新或者没有外网可以跳过此步骤)#yumupdate2.3.2selinux修改/etc/selinux/config以关闭selinux,修改文件中的SELINUX=disabled(需要重新启动才可以生效),使用setenforce0来临时关闭selinux(下次启动将从/etc/selinux/config读取)2.3.3防火墙设置1)添加规则[CentOS/RHEL5]#iptables-ARH-Firewall-1-INPUT-mstate--stateNEW-mtcp-ptcp--dport1521-jACCEPT#iptables-ARH-Firewall-1-INPUT-mstate--stateNEW-mtcp-ptcp--dport1158-jACCEPT#iptables-ARH-Firewall-1-INPUT-mstate--stateNEW-mtcp-ptcp--dport5901-jACCEPT注意:要放到如下项目之前。-ARH-Firewall-1-INPUT-jREJECT--reject-withicmp-host-prohibited[CentOS/RHEL6]#iptables-AINPUT-mstate--stateNEW-mtcp-ptcp--dport1521-jACCEPT#iptables-AINPUT-mstate--stateNEW-mtcp-ptcp--dport1158-jACCEPT#iptables-AINPUT-mstate--stateNEW-mtcp-ptcp--dport5901-jACCEPT也可以直接修改文件/etc/sysconfig/iptables使用/etc/init.d/iptablesrestart使配置生效3)保存配置#/etc/init.d/iptablessave2.4内核参数需要设置如下linux参数,如果操作系统中已经设置的值大于如下设置请保留系统设置。kernel.shmall=2097152kerne

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

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

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

×
保存成功