首页 > 代码库 > linux下安装oracle需要的配置

linux下安装oracle需要的配置

1.检查系统包安装情况rpm -qa|grep binutilsrpm -ivh sysstat-7.0.2.rpmbinutils-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)libaio-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.2unixODBC-2.2.11 (32-bit) or laterunixODBC-devel-2.2.11 (64-bit) or laterunixODBC-2.2.11 (64-bit) or laterlibXplibXp-devel2.修改网络配置vi /etc/sysconfig/network-scripts/ifcfg-eth0----------------------------DEVICE=eth0BOOTPROTO=noneHWADDR=00:0c:29:d4:f5:b4ONBOOT=yesTYPE=EthernetUSERCTL=yesIPV6INIT=noPEERDNS=yesNETMASK=255.255.255.0IPADDR=192.168.91.100GATEWAY=192.168.91.1----------------------------vi /etc/hosts-----------------------------127.0.0.1               localhost.localdomain localhost192.168.91.100          RHL5-----------------------------3.添加oracle用户groupadd oinstallgroupadd dbauseradd -g oinstall -G dba oraclepasswd oracle4.添加初始化参数vi /etc/sysctl.confsysctl -p-----------------------------fs.aio-max-nr = 1048576fs.file-max = 6815744#kernel.shmall = 2097152#kernel.shmmax = 536870912kernel.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-----------------------------5.关闭强制访问控制,避免路由访问失败vi /etc/selinux/config-----------------------SELINUX=disabled-----------------------6.设置oracle软硬件进程数vi /etc/security/limits.conf-----------------------oracle     soft    nproc    2047oracle     hard    nproc    16384oracle       soft       nofile   1024oracle     hard    nofile   65536-----------------------7.全局进程,线程配置vi /etc/profile----------------------if [$USER = ‘oracle‘]; then    ulimit -u 16384    ulimit -n 65536fi----------------------8.创建oracle根目录,并设置目录权限mkdir /u01/app/oracle -pchown -R oracle:oinstall /u01chmod -R 755 /u019.设置oracle用户环境变量su - oraclevi .bash_profile----------------------export ORACLE_BASE=/u01/app/oracleexport ORACLE_HOME=/u01/app/oracle/product/11.2/db_1export ORACLE_SID=oracle11gexport NLS_LANG=american_america.zhs16gbkexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/libexport PATH=$PATH:$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/binumask 022----------------------让其生效. ./.bash_profile检验是否设置成功echo $ORACLE_HOME