zoukankan      html  css  js  c++  java
  • ubuntu 10.04 install oracle11g

    Ubuntu 安装Oracle 11g

    首先应该仔细阅读11g的document,但是当你读到软件要求的时候,你会发现ubuntu根本就不oracle支持的linux里面,能装oracle的linux版本太少了,难道就真的不行吗?不是的,请按以下步骤:(确保至少5G的空间)

    1.确保安装了以下程序:

    sudo apt-get install build-essential libaio1 gawk ksh libmotif3 alien libtool lsb-rpm

    2.

    cd /bin
    ln -sf bash /bin/sh

    3.增加用户和组

    addgroup oinstall
    addgroup dba
    addgroup nobody
    useradd -g oinstall -G dba -p passwd -d /home/oracle -s /bin/bash oracle
    usermod -g nobody nobody

    4. 
    mkdir /home/oracle
    chown -R oracle:dba /home/oracle

    ln -s /usr/bin/awk /bin/awk
    ln -s /usr/bin/rpm /bin/rpm
    ln -s /usr/bin/basename /bin/basename

    5. 
    mkdir /etc/rc.d
    for i in 0 1 2 3 4 5 6 S ; do ln -s /etc/rc$i.d /etc/rc.d/rc$i.d ; done

    mkdir -p /opt/ora11
    chown -R oracle:dba /opt

    6.编辑/etc/sysctl.conf,增加以下内容:

    fs.file-max = 65535
    kernel.shmall = 2097152
    kernel.shmmax = 2147483648
    kernel.shmmni = 4096
    kernel.sem = 250 32000 100 128
    net.ipv4.ip_local_port_range = 1024 65535
    net.core.rmem_default = 1048576
    net.core.rmem_max = 1048576
    net.core.wmem_default = 262144
    net.core.wmem_max = 262144

    7.编辑/etc/security/limits.conf,增加以下内容:

    oracle soft nproc 2047
    oracle hard nproc 16383
    oracle soft nofile 1023
    oracle hard nofile 65535

    8.编辑/etc/pam.d/login,增加以下内容:

    session required /lib/security/pam_limits.so
    session required pam_limits.so

    9.执行:

    sysctl -p

    10.

    su - oracle

    以上命令需以root用户执行,接下来切换至oracle用户.

    11.切换至安装目录,开始安装.我选择了英语作为安装时显示的语言.

    export LANG=en_CN
    ./runInstaller

    12.安装过程中提示运行以下两个脚本:

    orainstRoot.sh
    root.sh

    13.两个常用的工具:dbca和netca.

  • 相关阅读:
    String类的substring方法
    postman绕过登录,进行接口测试的方法
    Dubbo
    那些吊炸天的互联网名词
    版本控制工具git
    Ubunto20.04 sudo apt-get update 出现目标被重置多次!
    ubuntu环境下搭建Hadoop集群中必须需要注意的问题
    Python作业---内置数据类型
    python作业完成简单的文件操作
    python3实现计算器
  • 原文地址:https://www.cnblogs.com/adolfmc/p/2712741.html
Copyright © 2011-2022 走看看