• ORACLE-12C-RAC INSTALL


    OS:

    Oracle Linux Server release 5.7

    DB:

    12.1.0.1.0

    挂载镜像:
    mkdir /media/disk
    mount /dev/cdrom /media/disk

    安装oracle-linux依赖的所有包:
    vi /etc/yum.repos.d/public-yum-el5.repo
    [oel5]
    name = Enterprise Linux 5.7 DVD
    baseurl=file:///media/disk/Server/
    gpgcheck=0
    enabled=1

    yum install oracle-validated --执行并安装依赖的包

    修改hosts,配置域名:
    vi /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    #127.0.0.1 rac1 localhost.localdomain localhost
    #::1 localhost6.localdomain6 localhost6
    127.0.0.1 localhost
    192.168.228.161 rac1
    192.168.228.168 rac1-vip
    1.1.1.161 rac1-priv
    192.168.228.162 rac2
    192.168.228.169 rac2-vip
    1.1.1.162 rac2-priv
    192.168.228.170 rac-scan

    创建用户和组:

    groupadd -g 5000 asmadmin
    groupadd -g 5001 asmdba
    groupadd -g 5002 asmoper
    groupadd -g 6000 oinstall
    groupadd -g 6001 dba
    groupadd -g 6002 oper


    useradd -g oinstall -G asmadmin,asmdba,asmoper grid 
    useradd -g oinstall -G dba,asmdba              oracle

    配置信息:

    [root@rac1 u01]# su - grid

    [root@rac1 u01]# more .bash_profile

    CRS_HOME=/u02/grid/app/11.2.0/grid
    ORACLE_HOME=/u02/grid/app/11.2.0/grid
    ORACLE_BASE=/orabase
    ORACLE_SID=+ASM1

    PATH=$CRS_HOME/bin:$PATH:$HOME/bin

    export PATH CRS_HOME ORACLE_BASE ORACLE_SID ORACLE_HOME

    [root@rac2 CVU_12.1.0.1.0_grid]# su - grid

    [grid@rac2 ~]$ more .bash_profile

    CRS_HOME=/u02/grid/app/11.2.0/grid
    ORACLE_HOME=/u02/grid/app/11.2.0/grid
    ORACLE_BASE=/orabase
    ORACLE_SID=+ASM2


    PATH=$CRS_HOME/bin:$PATH:$HOME/bin

    export PATH CRS_HOME ORACLE_BASE ORACLE_SID ORACLE_HOME

    [root@rac1 u01]# su - oracle
    [oracle@rac1 ~]$ more .bash_profile
    # .bash_profile

    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
            . ~/.bashrc
    fi

    # User specific environment and startup programs

    PATH=$PATH:$HOME/bin

    export PATH


    ORACLE_BASE=/u01
    ORACLE_HOME=/u01/oracle/app/oracle/product/11.2.0/dbhome_1
    ORACLE_SID=yoon_1


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

    export PATH ORACLE_BASE ORACLE_HOME ORACLE_SID

    [root@rac2 ~]# su - oracle
    [oracle@rac2 ~]$ more .bash_profile
    # .bash_profile

    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
            . ~/.bashrc
    fi

    # User specific environment and startup programs

    PATH=$PATH:$HOME/bin

    export PATH


    ORACLE_BASE=/u01
    ORACLE_HOME=/u01/oracle/app/oracle/product/11.2.0/dbhome_1
    ORACLE_SID=yoon_2


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

    export PATH ORACLE_BASE ORACLE_HOME ORACLE_SID

    安装grid:

    ORACLE-12C-RAC <wbr>INSTALL

    ORACLE-12C-RAC <wbr>INSTALL

    ORACLE-12C-RAC <wbr>INSTALL

    ORACLE-12C-RAC <wbr>INSTALL

    ORACLE-12C-RAC <wbr>INSTALL

    ORACLE-12C-RAC <wbr>INSTALL

    ORACLE-12C-RAC <wbr>INSTALL

    ORACLE-12C-RAC <wbr>INSTALL

    ORACLE-12C-RAC <wbr>INSTALL

    ORACLE-12C-RAC <wbr>INSTALL

    ORACLE-12C-RAC <wbr>INSTALL

    ORACLE-12C-RAC <wbr>INSTALL

    ORACLE-12C-RAC <wbr>INSTALL

    ORACLE-12C-RAC <wbr>INSTALL

    ORACLE-12C-RAC <wbr>INSTALL

    ORACLE-12C-RAC <wbr>INSTALL

    ORACLE-12C-RAC <wbr>INSTALL

    ORACLE-12C-RAC <wbr>INSTALL

    ORACLE-12C-RAC <wbr>INSTALL

    ORACLE-12C-RAC <wbr>INSTALL
    ORACLE-12C-RAC <wbr>INSTALL

    ORACLE-12C-RAC <wbr>INSTALL

    安装数据库,步骤如同11G-RAC,下面就不写了,可以参照我的11G-RAC.

    热爱学习oracle的可以看看ML微博:http://weibo.com/liumaclean

    在这也感谢ML为热爱oracle的童鞋做的贡献.

  • 相关阅读:
    对应于 算法原型 中的“纸条”
    Hive 实际上对于所存储的文件的完整性以及数据内容是否和表结构一致无支配力
    kettle
    regularexpression_action
    Consumer Group Example
    Neural Task Programming: Learning to Generalize Across Hierarchical Tasks
    dm层 集市层 四层 Build a multi-level data strategy
    图片服务器 sns 加爬虫 免上云
    不等式放缩 维时间戳是数据仓库无时间维度的事实表的灾难 度表 事实表
    MaLoc: a practical magnetic fingerprinting approach to indoor localization using smartphones
  • 原文地址:https://www.cnblogs.com/hankyoon/p/5174630.html
Copyright © 2020-2023  润新知