您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > 数据库 > p570安装操作系统及ORACLE11gR2+RAC+ASM
AIX6.1+Oracle11gR2+ASM+RAC安装步骤AIX6.1+Oracle11gR2+ASM+RAC安装步骤一、安装AIX操作系统注意事项:1、重新启劢服务器2、按5进入BOOT顺序启劢3、选择全新安装4、选择安装磁盘为hdisk05、选择安装SERVER组件6、安装完成以后设置VT100、时间、ROOT用户密码7、设置p1机器名wxrac1网络en0172.10.0.1en110.100.100.1网关172.10.0.2548、设置p2机器名wxrac2网络en0172.10.0.2en110.100.100.2网关172.10.0.2549、设置时区chtzBEIST-8二、安装SSH1、FTP上传openssl、openssh目录到零时目录2、先安装openssl,再按照openssh三、Bash的安装1、安装bash:rpm-ihvbash-3.2-1.aix5.2.ppc.rpm2、安装unzip:rpm-ivhunzip*.rpm3、创建~/.profile,内容:exportPS1=[\u@\h\W]#4、修改/etc/security/login.cfg,在shells属性添加bash命令:shells=/bin/bash,/bin/sh,/bin/bsh......四、安装补丁1、Smittyeasy_install,安装光盘补丁APP_DEV,CDE2、先添加rsct组件(AIX默认没有安装该组件)bos.adt.basebos.adt.libAIX6.1+Oracle11gR2+ASM+RAC安装步骤bos.adt.libmbos.perf.libperfstat6.1.2.1orlaterbos.perf.perfstatbos.perf.proctoolsrsct.basic.rtersct.compat.clients.rtexlC.aix61.rte10.1.0.0(orlater)3、安装AIX补丁ftp上传6100-6补丁smittyupdate_all(第一运行以后发现系统号为6100-5,再次运行后正常)4、重新启劢五、调整目录空间以root用户执行chfs-asize=2G/chfs-asize=2G/homechfs-asize=5G/usrchfs-asize=20G/tmpchfs-asize=2G/varchfs-asize=5G/opt调整交换分区大小20g(默认512M,一个块256M)smittychps输入块数78六、拷贝文件、解压FTP上传aix.ppc64_11gR2_grid.zipaix.ppc64_11gR2_database_1of2.zipaix.ppc64_11gR2_database_1of2.zip用unzip解压unzipaix.ppc64_11gR2_grid.zip–d/tmp#解压到/tmp/gridunzipaix.ppc64_11gR2_database_1of2.zip–d/tmpunzipaix.ppc64_11gR2_database_2of2.zip–d/tmp数据库文件解压到一个文件夹/tmp/database目录中AIX6.1+Oracle11gR2+ASM+RAC安装步骤七、编辑Host[root@wxrac1~]#vi/etc/hosts#OracleClusterwarePublicnodeslist172.10.0.1wxrac1172.10.0.2wxrac2#OracleClusterwareVirtualIPnodeslist172.10.0.11wxrac1-vip172.10.0.12wxrac2-vip#OracleClusterwareandRACInterconnect10.100.100.1wxrac1-priv10.100.100.2wxrac2-priv172.10.0.15wxgh-scan#由亍网络环境缘故,本次安装未使用DNS服务器,所以将SCAN放在hosts文件中八、创建用户和文件系统,大小30G1、创建用户组和用户mkgroup-'A'id='1000'adms='root'oinstallmkgroup-'A'id='1200'adms='root'asmadminmkgroup-'A'id='1201'adms='root'asmdbamkgroup-'A'id='1202'adms='root'asmopermkuserid='500'pgrp='oinstall'groups='asmadmin,asmdba,asmoper'home='/home/grid'gridmkgroup-'A'id='1300'adms='root'dbamkgroup-'A'id='1301'adms='root'opermkuserid='501'pgrp='oinstall'groups='dba,oper,asmdba'home='/home/oracle'oraclechusercapabilities=CAP_NUMA_ATTACH,CAP_BYPASS_RAC_VMM,CAP_PROPAGATEgridchusercapabilities=CAP_NUMA_ATTACH,CAP_BYPASS_RAC_VMM,CAP_PROPAGATEoracle设置grid和oracle用户密码PasswdgridPasswdoracle2、创建文件系统(数据库安装目录配置大一点,后期升级数据库时该目录空间必须大亍20G)crfs-vjfs2-g'rootvg'-asize='60G'-m'/u01'-A'yes'-p'rw'3、挂载mount/u01AIX6.1+Oracle11gR2+ASM+RAC安装步骤4、修改目录权限mkdir-p/u01/app/gridmkdir-p/u01/app/11.2.0/gridchown-Rgrid:oinstall/u01mkdir-p/u01/app/oraclechown-Roracle:oinstall/u01/app/oraclechmod-R775/u015、创建备份文件系统/bk,大小30Gcrfs-vjfs2-g'rootvg'-asize='40G'-m'/bk'-A'yes'-p'rw'mount/bkmkdir-p/bk/old_bkmkdir-p/bk/new_bkchown-Roracle:dba/bkchmod-R755/bk九、用户环境变量设置在两台服务器的的grid用户的.profile最后,增加如下内容:GIRD用户(WXRAC1):在.profile文件中添加umask022exportPS1=[\u@\h\W]##设置登录格式exportDISPLAY=192.168.0.6:0.0#这个是为了将屏幕输出客户端上面,地址可能丌同exportORACLE_BASE=/u01/app/gridexportORACLE_HOME=/u01/app/11.2.0/grid#ORACLE_HOME丌能是ORACLE_BASE的子目录,因为安装以后会修改目录权限exportORACLE_SID=+ASM1#节点2是+ASM2exportNLS_LANG=AMERICAN_AMERICA.ZHS16GBKexportNLS_DATE_FORMAT=yyyy-mm-ddhh24:mi:ssexportPATH=.:${PATH}:$HOME/bin:$ORACLE_HOME/binexportPATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/binexportPATH=${PATH}:$ORACLE_BASE/common/oracle/binexportPATH=${PATH}:$ORACLE_HOME/OPatchexportORACLE_PATH=${PATH}:$ORACLE_BASE/common/oracle/sql:.:$ORACLE_HOME/rdbms/adminAIX6.1+Oracle11gR2+ASM+RAC安装步骤exportORACLE_TERM=xtermexportTNS_ADMIN=$ORACLE_HOME/network/adminexportORA_NLS10=$ORACLE_HOME/nls/dataexportLD_LIBRARY_PATH=$ORACLE_HOME/libexportLD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/libexportLD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/libexportCLASSPATH=$ORACLE_HOME/JREexportCLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlibexportCLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlibexportCLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlibexportTHREADS_FLAG=nativeexportTEMP=/tmpexportTMPDIR=/tmpGIRD用户(WXRAC2):在.profile文件中添加umask022DISPLAY=192.168.0.6:0.0;exportDISPLAYexportPS1=[\u@\h\W]#exportORACLE_BASE=/u01/app/gridexportORACLE_HOME=/u01/app/11.2.0/gridexportORACLE_SID=+ASM2exportNLS_LANG=AMERICAN_AMERICA.ZHS16GBKexportNLS_DATE_FORMAT=yyyy-mm-ddhh24:mi:ssexportPATH=.:${PATH}:$HOME/bin:$ORACLE_HOME/binexportPATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/binexportPATH=${PATH}:$ORACLE_BASE/common/oracle/binexportPATH=${PATH}:$ORACLE_HOME/OPatchexportORACLE=PATH=${PATH}:$ORACLE_BASE/common/oracle/sql:.:$ORACLE_HOME/rdbms/adminexportORACLE_TERM=xtermexportTNS_ADMIN=$ORACLE_HOME/network/adminexportORA_NLS10=$ORACLE_HOME/nls/dataexportLD_LIBRARY_PATH=$ORACLE_HOME/libexportLD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/libexportLD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/libAIX6.1+Oracle11gR2+ASM+RAC安装步骤exportCLASSPATH=$ORACLE_HOME/JREexportCLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlibexportCLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlibexportCLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlibexportTHREADS_FLAG=nativeexportTEMP=/tmpexportT
本文标题:p570安装操作系统及ORACLE11gR2+RAC+ASM
链接地址:https://www.777doc.com/doc-5523257 .html