系统版本redhat5.6一 安装前环境配置查看内存grep MemTotal /proc/meminfogrep SwapTotal /proc/meminfo(或者free -m同时查看内存和swap空间,一般需要内存2G,swap空间2G即可)修改用户的SHELL限制,修改/etc/security/limits.conf文件oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024oracle hard nofile 65536oracle soft stack 10240修改/etc/pam.d/login 文件session required /lib/security/pam_limits.sosession required pam_limits.so修改linux内核,修改/etc/sysctl.conf文件,输入命令: vi /etc/sysctl.conf fs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 4294967295kernel.shmmni = 4096kernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048576执行sysctl -p 使sysctl.conf文件生效编辑 /etc/profile 将下列内容加入该文件。if [ $USER = "oracle" ]; thenif [ $SHELL = "/bin/ksh" ]; thenulimit -p 16384 ulimit -n 65536elseulimit -u 16384 -n 65536fifi创建相关的用户和组groupadd -g 1000 oinstallgroupadd -g 1001 dbagroupadd -g 1002 operuseradd -u 1001 oracle -d /home/oracle -g oinstall -G dba,oper创建相关的目录并且更改目录的属主mkdir /u01chown -R oracle:oinstall /u01chmod -R 755 /u01设置oracle的环境变量 .bash_profileexport ORACLE_BASE=/u01/app/oracleexport ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1export ORACLE_SID=ORA11GR2export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin安装Linux下的依懒包(建议先用rpm安装,然后再尝试用yum)配置yum/etc/yum.repo.d/yum.repo[redhat5u6]name=redhat5u6baseurl=file:///test/Server/enabled=1gpgcheck=0yum clean allyum list按照官方文档要求安装binutils-2.17.50.0.6compat-libstdc++-33-3.2.3compat-libstdc++-33-3.2.3 (32 bit)elfutils-libelf-0.125elfutils-libelf-devel-0.125gcc-4.1.2gcc-c++-4.1.2glibc-2.5-24glibc-2.5-24 (32 bit)glibc-common-2.5glibc-devel-2.5glibc-devel-2.5 (32 bit)glibc-headers-2.5ksh-20060214libaio-0.3.106libaio-0.3.106 (32 bit)libaio-devel-0.3.106libaio-devel-0.3.106 (32 bit)libgcc-4.1.2libgcc-4.1.2 (32 bit)libstdc++-4.1.2libstdc++-4.1.2 (32 bit)libstdc++-devel 4.1.2make-3.81sysstat-7.0.2二、安装过程:解包 unzip生成一个database文件夹配置图形界面./runInstaller--->装软件dbca建库
原文链接:https://www.f2er.com/oracle/211836.html