zoukankan      html  css  js  c++  java
  • oracle11G静默安装步骤

    oracle 11gR2

    1、数据库安装环境准备

    1)编辑/etc/sysctl.con

    fs.aio-max-nr = 1048576
    fs.file-max = 6815744
    kernel.shmall = 2097152
    kernel.shmmax = 536870912
    kernel.shmmni = 4096
    kernel.sem = 250 32000 100 128
    net.ipv4.ip_local_port_range = 9000 65500
    net.core.rmem_default = 262144
    net.core.rmem_max = 4194304
    net.core.wmem_default = 262144
    net.core.wmem_max = 1048586

    Enter the following command to change the current values of the kernel parameters:

    # /sbin/sysctl -p
    

    2)编辑/etc/security/limits.conf

    oracle soft nproc 2047
    oracle hard nproc 16384
    oracle soft nofile 1024
    oracle hard nofile 65536
    oracle soft stack 10240
    3)创建oracle用户,组

    groupadd install;

    groupadd oper;

    groupadd dba;

    useradd -g oinstall -G dba,oper oracle

    passwd oracle

    4) oracle相关 环境变量设置

    .bash_profile文件中加入如下内容:

    export ORACLE_SID=orcl
    export ORACLE_BASE=/opt/app/oracle
    export ORACLE_HOME=$ORACLE_BASE/product/11.2/db_1

    PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin

    保存后使环境变量生效。

    . .bash_profile

    5)创建安装目录

    # mkdir /opt/app

    #chown -R oracle:oinstall /opt/app

    2、准备静默安装响应文件

    1)利用图形化界面生成rsp文件

    运行到oracle 安装目录下

    ./runInstaller &

    到最后快filish的时候点击 Save Response File 按钮制定db.rsp文件存放路径;最后cancel安装界面。

    2)如果不能执行图形化界面录制,可以通过编辑现有的rsp文件

    打开安装文件路径找到response文件夹里面的 db_install.rsp文件。

    根据文件提示修改相关内容,一般是安装组,ORACLE_HOME,ORACLE_BASE 路径等信息。

    3、执行静默安装操作

    1)开始静默安装

    $ ./runInstaller -silent -noconfig -ignorePrereq -responseFile /home/oracle/db.rsp

    2)查看安装过程

    可以到/opt/app/oraInventory/logs 目录下查看安装进度。

    tail -100f installActions2012-03-13_10-36-42AM.log

    3)安装成功提示执行脚本

    到最后提示:

    /opt/app/oracle/oraInventory/orainstRoot.sh

    /opt/app/oracle/product/11.2.0/db_1/root.sh

    To execute the configuration scripts:

    1. Open a terminal window 

    2. Log in as "root" 

    3. Run the scripts 

    4. Return to this window and hit "Enter" key to continue 

    Successfully Setup Software.

  • 相关阅读:
    河北省科技创新年报统计系统分析
    《软件需求十步走》阅读笔记06
    《软件需求十步走》阅读笔记05
    《软件需求十步走》阅读笔记04
    河北科技创新平台年报统计
    《软件需求十步走》阅读笔记03
    《软件需求十步走》阅读笔记02
    《软件需求十步走》阅读笔记01
    案例分析
    2017秋季个人阅读计划
  • 原文地址:https://www.cnblogs.com/ylqmf/p/2450683.html
Copyright © 2011-2022 走看看