• CentOS Linux上安装Oracle11g笔记


    CentOS Linux上安装Oracle11g
    
    到 otn.oracle.com 网站上下载 Linux版的oracle 11g
    
    编辑 /etc/sysctl.conf :
    
    kernel.shmall = 2097152
    kernel.shmmax = 2147483648
    kernel.shmmni = 4096
    kernel.sem = 250 32000 100 128
    fs.file-max = 65536
    net.ipv4.ip_local_port_range = 1024 65000
    net.core.rmem_default = 4194304
    net.core.rmem_max = 4194304
    net.core.wmem_default = 262144
    net.core.wmem_max = 262144
    
    生效  /sbin/sysctl -p
    
    编辑 /etc/security/limits.conf file:
    
    oracle soft nproc 2047
    oracle hard nproc 16384
    oracle soft nofile 1024
    oracle hard nofile 65536
    
    编辑 /etc/pam.d/login
    
    session required /lib/security/pam_limits.so
    session required pam_limits.so
    
    编辑 /etc/profile :
    
    if [ $USER = "oracle" ]; then
    if [ $SHELL = "/bin/ksh" ]; then
    ulimit -p 16384
    ulimit -n 65536
    else
    ulimit -u 16384 -n 65536
    fi
    fi
    
    
    创建相关的用户和组:
    
    /usr/sbin/groupadd oinstall
    /usr/sbin/groupadd dba
    /usr/sbin/useradd -g oinstall -G dba oracle 
    passwd oracle
    
    创建目录:
    
    mkdir -p /u01/app/
    chown -R oracle:oinstall /u01/app/
    chmod -R 775 /u01/app/
    
    从windows网络邻居中mount oracle 11g的安装软件到linux
    mount //192.168.2.1/database /mnt
     
    切换成ORACLE用户
     
    修改/home/oracle/.bash_profile,加入:
    
    umask 022
    ORACLE_BASE=/u01/app/oracle
    ORACLE_SID=street
    ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1 
    PATH=$PATH:$ORACLE_HOME/bin
    export ORACLE_BASE ORACLE_SID ORACLE_HOME
    
    运行runInstaller 运行安装。
    
    在安装过程中,会提示缺少下面的包,从Centos的安装盘中安装:
    
    rpm -ivh libaio-0.3.105-2.i386.rpm
    rpm -ivh libaio-devel-0.3.105-2.i386.rpm
    rpm -ivh elfutils-libelf-devel-0.97.1-4.i386.rpm
    rpm -ivh unixODBC-devel-2.2.11-1.RHEL4.1.i386.rpm     
    rpm -ivh unixODBC-2.2.11-1.RHEL4.1.i386.rpm
    rpm -ivh sysstat-5.0.5-14.rhel4.i386.rpm    
    
    运行netca创建listener,选一路选默认即可
    
    用dbca创建数据库,注意密码的大小写,选sample schema,字符集要选unicode
    
    
    遥远老师博客:street.loveunix.cn
    小布老师的博客:wilson66.cublog.cn
  • 相关阅读:
    Spring 让 LOB 数据操作变得简单易行
    让Apache Shiro保护你的应用
    MongoDB、Java及ORM
    Spring 的优秀工具类盘点,第 1 部分: 文件资源操作和 Web 相关工具类
    Spring 的优秀工具类盘点,第 2 部分: 特殊字符转义和方法入参检测工具类
    SpringMVC:上传与下载
    Web数据挖掘在电子商务中的应用
    Mongodb快速入门之使用Java操作Mongodb
    Mongodb数据库入门之Spring Mongodb
    基于综合兴趣度的协同过滤推荐算法
  • 原文地址:https://www.cnblogs.com/huangbiquan/p/8001725.html
Copyright © 2020-2023  润新知