阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

AIX 7.1安装Oracle 11.2相关配置

254次阅读
没有评论

共计 4821 个字符,预计需要花费 13 分钟才能阅读完成。

一. 操作系统安装
    1. 开机, 放入系统光盘
    2. 选择 1.SMS Menu->5.Select Boot Options->2.Select Boot Devices->3.CD/DVD
    3. 选择 F1 enter system console
    4. 选择 2.Change/Show Installation Settings and Install
    5. 选择 1.System Settings
    6. 选择 1.New and Complete Overwrite
    7. 选择 1.hdisk0
    8. 选择 0.Install with the current settings listed above
    9. 选择 1.continue with Install
    10. 选择 vt100
    11. 选择 Accept License Agreements
    12. 选择 Tasks Completed – Exit to login
二. 安装系统其它软件
    1. 安装 CDE
        smitty install->Install and Update Software->Install Software Bundle
    2. 常用软件包安装
        smitty install_latest
    3. 系统补订安装
        smit install_update
    4. 安装多路径软件 SDDPCM
        #inutoc.
        #grep -i devices.fcp.disk.ibm.toc
        #smitty install_update
            devices.fcp.disk.ibm.mpio.rte
            删除 devices.fcp.disk.ibm.toc
            devices.sddpcm.71.rte
        #lslpp -l *sddpcm*
        #lssrc -s pcmsrv
        #startpcmsrv
        #pcmpath query device
        #pcmpath query adapter
三. 环境配置
    1. 设定时区
        #smitty chtz
            BEIST-8
    2. 设定系统时间
        #smitty date
    3. 修改变换分区大小
        #lsps -s
        #lsvg rootvg
        #smit chps
            NUMBER of additional logical partitions
    4. 修改用户资源限制
        #vi /etc/security/limits
            fsize=-1
            core=-1
            cpu=-1
            rss=-1
            stack=-1
            nofiles=-1
        #ulimit -a
    5. 设定系统用户数
        #chlicense -u 100
    6. 设定 rootvg 镜像
        #chdev -l hdisk1 -a pv=yes
        #extendvg rootvg hdisk1
        #chvg -Qn rootvg
        #mirrorvg rootvg hdisk1
        #lsvg -l rootvg
        #blotlist -m normal -o
        #bosboot -ad /dev/hdisk1
        #bootlist -m normal hdisk0 hdisk1
        #bootlist -m normal -o
    7. 网络参数配置
        #smit tcpip
            Mininum Configureation & Statup
            en0
            HOSTNAME,Internet ADDRESS,Network Mask,Default Gateway
        #hostname |xargs ping
        #netstat -in
    8. 双网卡绑定
        #smitty etherchannel
            Add An EtherChannel /Link Aggregation
            ent0
            Backup Adapter ent1
        #smitty mktcpip
            en8
    9. 安装 bash
        #rpm -ivh gettet-0.17-7.aix6.1.ppc.rpm –nodeps
        #rpm -ivh libiconv-1.14-1.aix6.1.ppc.rpm
        #rpm -ivh bash-4.2-9.aix6.1.ppc.rpm
        #vi /etc/profile
            PS1='[\u@\h \W]$’
            if[“$LOGNAME”=”root”]
            then
                PS1='[\u@\h \W]#’   
            fi
        #vi /etc/security/login.cfg
            shells=/bin/bash,/bin/sh,/bin/bsh…
        #vi /etc/passwd
            root:!:0:0::/:/bin/bash   
四. 配置 Oracle 安装
    1. 硬件环境检查
        #/usr/sbin/lsattr -E -l sys0 -a realmem
        #/usr/sbin/lsps -a
        #/usr/bin/getconf HARDWARE_BITMODE
        #bootinfo -K
        #df -k /tmp
    2. 软件环境检查
        #oslevel -s
        #lslpp -l
            bos.adt.base bos.adt.lib bos.adt.libm bos.perf.libperfstat bos.perf.perfstat bos.perf.proctools xlC.rte.11.1.0.2 or later
            gpfs.base 3.3.0.11 or later
            September 2010 Runtime for XL C/C++ for AIX,V11.1
            AIX is certified with ODBC DriverManager 2.2.12
            gcc 3.4.5
            openssh openssl
        #getconf KERNEL_BITMODE
        #/usr/sbin/instfix -i -k “IZ42940 IZ49516 IZ52331 IZ41855 IZ52319”
    3. 创建用户组和用户
        #mkgroup  oinstall
        #mkgroup  asmadmin
        #mkgroup  dba
        #mkgroup  asmdba
        #/useradd -u 1100 -g oinstall -G dba,asmdba -m oracle
        #useradd -u 1101 -g oinstall -G asmadmin,asmdba -m grid
        #lSUSEr -a capabilities grid
        #chuser capabilities=CAP_NUMA_ATTACH,CAP_BYPASS_RAC_VMM,CAP_PROPAGATE grid
        #lsuser -a capabilities oracle
        #chuser capabilities=CAP_NUMA_ATTACH,CAP_BYPASS_RAC_VMM,CAP_PROPAGATE oracle
    4. 配置核心参数
        #/usr/sbin/no -a | fgrep ephemeral
        #/usr/sbin/no -p -o tcp_ephemeral_low=32768 -o tcp_ephemeral_high=65535
        #/usr/sbin/no -p -o udp_ephemeral_low=32768 -o udp_ephemeral_high=65535
        #chdev -l sys0 -a ncargs=256
        #chdev -l sys0 -a maxuproc=16384
        #ioo -o aio_maxreqs=65536
        #vmo -p -o minperm%=3
        #vmo -p -o maxperm%=90
        #vmo -p -o maxclient%=90
        #vmo -p -o lru_file_repage=0
        #vmo -p -o strict_maxclient=1
        #vmo -p -o strict_maxperm=0
    5. 配置网络参数
        #lsattr -El sys0 -a pre520tune
            compatibility disable 则:
                #no -r -o ipqmaxlen=512       
                #no -p -o rfc1323=1           
                #no -p -o sb_max=1500000
                #no -p -o tcp_recvspace=65536
                #no -p -o tcp_sendspace=65536
                #no -p -o udp_recvspace=1351680
                #no -p -o udp_sendspace=65536
            compatibility enable 则:
                #vi /etc/rc.net
                    if [-f /usr/sbin/no] ; then
                    /usr/sbin/no -o udp_sendspace=65536
                    /usr/sbin/no -o udp_recvspace=655360
                    /usr/sbin/no -o tcp_sendspace=65536
                    /usr/sbin/no -o tcp_recvspace=65536
                    /usr/sbin/no -o rfc1323=1
                    /usr/sbin/no -o sb_max=2*655360
                    /usr/sbin/no -o ipqmaxlen=512
                    fi
    6. 配置安装目录
    7. 改变共享设备的属主
        # cd /dev
        # chown grid:oinstall /dev/rhdisk[2-10]
        # chmod 660 /dev/rhdisk[2-10]
    8. 修改 host 文件
    9. 配置 Grid 用户环境变量
        #su – grid
        #vi ~/.profile
            export ORACLE_SID=+ASM1
            export ORACLE_BASE=/u01/app/grid
            export ORACLE_HOME=/u01/app/11.2.0/grid
            export PATH=$PATH:$ORACLE_HOME/bin
        #. ~/.profile
    10. 配置 Oracle 用户环境变量
        #su – oracle
        #vi ~/.profile
            export ORACLE_SID=orcl1
            export ORACLE_UNQNAME=orcl
            export ORACLE_BASE=/u01/app/oracle
            export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
            export PATH=$PATH:$ORACLE_HOME/bin
        #. ~/.profile 
    11. 配置 NTP 服务(可选)
    12. 开始安装

更多 Oracle 相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12

本文永久更新链接地址:http://www.linuxidc.com/Linux/2016-04/130337.htm

正文完
星哥说事-微信公众号
post-qrcode
 
星锅
版权声明:本站原创文章,由 星锅 2022-01-22发表,共计4821字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中