zoukankan      html  css  js  c++  java
  • aix6.1安装oracle

    环境:aix6.1

    安装
    配置hosts
    cat /etc/hosts
    10.70.193.45 db1
    10.70.193.47 db2
    10.70.193.46 db1_vip
    10.70.193.48 db2_vip
    192.168.1.1 db1_priv
    192.168.1.2 db2_priv
    10.70.193.49 scanip

    创建组
    mkgroup -'A' id='501' oinstall
    mkgroup -'A' id='502' dba
    mkgroup -'A' id='505' asmdba
    mkgroup -'A' id='503' oper
    mkgroup -'A' id='504' asmadmin
    mkgroup -'A' id='506' asmoper

    创建用户
    useradd -g oinstall -d /home/grid -m grid
    useradd -g oinstall -d /home/oracle -m oracle
    passwd grid
    passwd oracle

    给用户加组
    usermod -G asmoper,asmadmin,oper,asmdba,oinstall,dba grid
    usermod -G asmoper,asmadmin,oper,asmdba,oinstall,dba oracle
    更改用户组
    chuser pgrp=dba grid

    建目录
    mkdir /oracle/oraInventory
    mkdir -p /oracle/oracle_grid
    chown -R grid:oinstall /oracle/oracle_grid
    chmod -R 775 /oracle/oracle_grid
    创建 Oracle Base 目录
    mkdir -p /oracle/oracle
    chown -R oracle:oinstall /oracle/oracle
    chmod -R 775 /oracle/oracle/
    mkdir -p /oracle/oracle/cfgtoollogs
    chown -R oracle:oinstall /oracle/oracle/cfgtoollogs
    chmod -R 775 /oracle/oracle/cfgtoollogs

    创建 Oracle RDBMS home 目录

    mkdir -p /oracle/oracle/product/11.2.4/db_1
    chown -R oracle:oinstall /oracle/oracle/product/11.2.4/db_1
    chmod -R 775 /oracle/oracle/product/11.2.4/db_1

    6 : 配置oracle和grid用户的环境变量
    Grid 用户

    su - grid
    vi .profile

    export ORACLE_BASE=/oracle/grid_base
    export ORACLE_HOME=/oracle/grid
    export ORACLE_SID=+ASM1
    THREADS_FLAG=native; export THREADS_FLAG
    PATH=$ORACLE_HOME/bin:$PATH; export PATH
    export LANG=en_us.UTF-8

    Oracle 用户

    su - oracle

    export ORACLE_SID=zyrkzyk1
    export ORACLE_BASE=/oracle/oracle
    export ORACLE_HOME=/oracle/oracle/product/11.2.0/dbhome_1
    export PATH=.:$HOME/bin:$ORACLE_HOME/bin:$ORACLE_BASE/11.2.0/dbhome_1/bin:${PATH}
    export ORACLE_PATH=.:$HOME/exasql:$ORACLE_PATH:$ORACLE_HOME/rdbms/admin
    export ORACLE_TERM=xterm
    export NLS_DATE_FORMAT="yyyy-mm-dd hh24:mi:ss"
    export NLS_LANG=AMERICAN_AMERICA.UTF8
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib
    export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib
    export CLASSPATH=$ORACLE_HOME/JRE
    export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib
    export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib
    export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib
    export THREADS_FLAG=native
    export TEMP=/tmp
    export TMPDIR=/tmp


    内存需求
    /usr/sbin/lsattr -E -l sys0 -a realmem
    交换空间
    /usr/sbin/lsps -a
    系统架构
    /usr/bin/getconf HARDWARE_BITMODE
    查看64位启动模式
    bootinfo -K
    磁盘需求
    df -k /tmp
    查看版本
    root@rkdb1:/oracle:>oslevel -r
    6100-07
    用户oinstall组
    root@rkdb1:/oracle:>more /etc/oraInst.loc
    inventory_loc=/oracle/oraInventory
    inst_group=oinstall
    dba组
    root@rkdb1:/oracle:>grep dba /etc/group
    dba:!:202:oracle,grid

    root@rkdb1:/oracle:>ioo -o aio_maxreqs
    aio_maxreqs = 65536

    配置user process
    chdev -l sys0 -a maxuproc='16380'
    lsattr -El sys0|grep maxuproc

    ntp
    vi /etc/rc.tcpip
    start /usr/sbin/xntpd "$src_running"
    改为
    start /usr/sbin/xntpd "$src_running" "-x"
    stopsrc -s xntpd ; startsrc -s xntpd -a "-x"

    网络参数配置
    #查看网络配置
    /usr/sbin/no -a|grep sb_max
    #查看系统设置的兼容性
    /usr/sbin/lsattr -E -l sys0 -a pre520tune
    pre520tune disable Pre-520 tuning compatibility mode True
    说明是不兼容方式,这样就可以用下面的方式调整
    ipqmaxlen 参数:
    no -r -o ipqmaxlen=512
    其他参数:
    no -p -o rfc1323=1
    no -p -o sb_max=1310720
    no -p -o tcp_recvspace=65536
    no -p -o tcp_sendspace=65536
    no -p -o tcp_recvspace=655360
    no -p -o udp_sendspace=65536

    chown grid:oinstall oraInventory

    执行/oracle/grid/root.sh报错
    User ignored Prerequisites during installation
    Installing Trace File Analyzer
    ksh: pwd: Cannot access parent directories.
    Run root.sh from a directory that has read/execute access to the grid owner 'grid'
    /oracle/grid/perl/bin/perl -I/oracle/grid/perl/lib -I/oracle/grid/crs/install /oracle/grid/crs/install/rootcrs.pl execution failed
    执行
    chmod 775 /oracle
    chown oracle:dba /oracle

    User grid is missing the following capabilities required to run CSSD in realtime:
    CAP_NUMA_ATTACH,CAP_BYPASS_RAC_VMM,CAP_PROPAGATE
    To add the required capabilities, please run:os
    /usr/bin/chuser capabilities=CAP_NUMA_ATTACH,CAP_BYPASS_RAC_VMM,CAP_PROPAGATE grid
    CSS cannot be run in realtime mode at /oracle/grid/crs/install/crsconfig_lib.pm line 11751.
    /oracle/grid/perl/bin/perl -I/oracle/grid/perl/lib -I/oracle/grid/crs/install /oracle/grid/crs/install/rootcrs.pl execution failed

    执行
    /usr/bin/chuser capabilities=CAP_NUMA_ATTACH,CAP_BYPASS_RAC_VMM,CAP_PROPAGATE grid

    --清理root脚本执行

    --节点2
    /oracle/grid/crs/install/rootcrs.pl -deconfig -force -verbose
    --节点1
    /oracle/grid/crs/install/rootcrs.pl -deconfig -force -verbose -lastnode
    /oracle/grid/crs/install/rootcrs.pl -deconfig -force
    /oracle/grid/root.sh

  • 相关阅读:
    C++ Builder XE2随意学习 (5) > 我的学习路线
    麻省理工公开课:电路和电子学 (2) > 基本电路分析法
    C++ Builder XE2随意学习 (4) > Delphi XE2官方视频教程31天
    日志收集系统elk
    mysql笔记第一天: 介绍和MySQL编译安装
    rsync服务搭建2018.5.8 [优化后最终版]
    docker基础使用和资源限制
    zabbix第一天 zabbix安装,添加监控项
    你好,测试markdown
    LVM扩容案例
  • 原文地址:https://www.cnblogs.com/wukc/p/14150603.html
Copyright © 2011-2022 走看看