oracle11g+asm+rac安装指南linux(2)

2019-01-19 13:19

#Add by RAC install

if [ $USER = \ if [ $SHELL = %ulimit -p 16384 ulimit -n 65536 else

ulimit -u 16384 -n 65536 fi umask 022 fi

节点2

[root@tpps-ora02 ~]# vi /etc/pam.d/login # Add by RAC install

session required pam_limits.so

[root@tpps-ora02 ~]# vi /etc/profile #Add by RAC install

if [ $USER = \ if [ $SHELL = %ulimit -p 16384 ulimit -n 65536 else

ulimit -u 16384 -n 65536 fi umask 022 fi

6系统RPM检查 ○

2.安装准备

1相关组、用户创建 ○

节点1

[root@tpps-ora01 ~]# groupadd -g 501 oinstall [root@tpps-ora01 ~]# groupadd -g 502 dba

[root@tpps-ora01 ~]# groupadd -g 504 asmadmin [root@tpps-ora01 ~]#groupadd -g 506 asmdba [root@tpps-ora01 ~]# groupadd -g 507 asmoper

[root@tpps-ora01 ~]#useradd -u 501 -g oinstall -G asmadmin,asmdba,asmoper grid [root@tpps-ora01 ~]# useradd -u 502 -g oinstall -G dba,asmdba oracle

[root@tpps-ora01 ~]# passwd grid Changing password for user grid. New UNIX password:

BAD PASSWORD: it is based on a dictionary word Retype new UNIX password:

passwd: all authentication tokens updated successfully. [root@tpps-ora01 ~]# passwd oracle Changing password for user oracle. New UNIX password:

BAD PASSWORD: it is based on a dictionary word Retype new UNIX password:

passwd: all authentication tokens updated successfully. 节点2,相同 2创建相关目录 ○

节点1

[root@tpps-ora01 ~]#mkdir -p /oracle/u01/app/oraInventory

[root@tpps-ora01 ~]# chown -R grid:oinstall /oracle/u01/app/oraInventory [root@tpps-ora01 ~]# chmod -R 775 /oracle/u01/app/oraInventory [root@tpps-ora01 ~]#

[root@tpps-ora01 ~]# mkdir -p /oracle/u01/11.2.0.1/grid

[root@tpps-ora01 ~]# chown -R grid:oinstall /oracle/u01/11.2.0.1/grid [root@tpps-ora01 ~]#chmod -R 775 /oracle/u01/11.2.0.1/grid [root@tpps-ora01 ~]#

[root@tpps-ora01 ~]#mkdir -p /oracle/u01/app/grid

[root@tpps-ora01 ~]#chown -R grid:oinstall /oracle/u01/app/grid [root@tpps-ora01 ~]#chmod -R 755 /oracle/u01/app/grid [root@tpps-ora01 ~]#

[root@tpps-ora01 ~]#mkdir -p /oracle/u01/app/oracle

[root@tpps-ora01 ~]# mkdir /oracle/u01/app/oracle/cfgtoollogs

[root@tpps-ora01 ~]# chown -R oracle:oinstall /oracle/u01/app/oracle [root@tpps-ora01 ~]# chmod -R 775 /oracle/u01/app/oracle [root@tpps-ora01 ~]#

[root@tpps-ora01 ~]# mkdir -p /oracle/u01/app/oracle/product/11.2.0.1/db_1

[root@tpps-ora01 ~]# chown -R oracle:oinstall /oracle/u01/app/oracle/product/11.2.0.1/db_1 [root@tpps-ora01 ~]# chmod -R 775 /oracle/u01/app/oracle/product/11.2.0.1/db_1 节点2,相同 3环境变量设置 ○

节点1

[grid@tpps-ora01 ~]$ vi .bash_profile export TMP=/tmp export TMPDIR=/tmp

export ORACLE_BASE=/oracle/u01/app/grid

export ORACLE_HOME=/oracle/u01/11.2.0.1/grid export ORACLE_SID=+ASM1

export PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH

[oracle@tpps-ora01 ~]$ vi .bash_profile export TMP=/tmp export TMPDIR=/tmp

export ORACLE_BASE=/oracle/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/11.2.0.1/db_1 export ORACLE_SID=orcl1

export ORACLE_HOSTNAME=tpps-ora01 export ORACLE_UNQNAME=orcl

export PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH

节点2

[grid@tpps-ora02 ~]$ vi .bash_profile export TMP=/tmp export TMPDIR=/tmp

export ORACLE_BASE=/oracle/u01/app/grid

export ORACLE_HOME=/oracle/u01/11.2.0.1/grid export ORACLE_SID=+ASM2

export PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH

[oracle@tpps-ora02 ~]$ vi .bash_profile export TMP=/tmp export TMPDIR=/tmp

export ORACLE_BASE=/oracle/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/11.2.0.1/db_1 export ORACLE_SID=orcl2

export ORACLE_HOSTNAME=tpps-ora02 export ORACLE_UNQNAME=orcl

export PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH 4HOSTS主机名设置 ○

节点1

[root@tpps-ora01 ~]# vi /etc/hosts

# add by RAC install

# public bind0

192.100.65.19 tpps-ora01 192.100.65.20 tpps-ora02

#vip

192.100.65.21 tpps-ora01-vip 192.100.65.22 tpps-ora02-vip

#private

172.16.65.19 tpps-ora01-priv 172.16.65.20 tpps-ora02-priv

#scan

192.100.65.23 orascan

节点2,相同

[root@tpps-ora01 ~]# ping tpps-ora01 [root@tpps-ora01 ~]# ping tpps-ora01-priv [root@tpps-ora01 ~]# ping tpps-ora02 [root@tpps-ora01 ~]# ping tpps-ora02-priv

[root@tpps-ora02 ~]# ping tpps-ora01 [root@tpps-ora02 ~]# ping tpps-ora01-priv [root@tpps-ora02 ~]# ping tpps-ora02 [root@tpps-ora02 ~]# ping tpps-ora02-priv

3.ASM安装

[root@tpps-ora01 ~]# rpm -qa|greporacleasm 按顺序打下面三个包 节点1

[root@tpps-ora01 tmp]# rpm -ivh oracleasm-support-2.1.7-1.el5.x86_64.rpm

[root@tpps-ora01 tmp]# rpm -ivh oracleasm-2.6.18-274.el5-2.0.5-1.el5.x86_64.rpm [root@tpps-ora01 tmp]# rpm -ivh oracleasmlib-2.0.4-1.el5.x86_64.rpm 节点2,相同 包如下,

检查

[root@tpps-ora01 ~]# rpm -qa|grep oracleasm oracleasm-support-2.1.7-1.el5

oracleasm-2.6.18-274.el5-2.0.5-1.el5 oracleasmlib-2.0.4-1.el5

准备存储,参考asm配置 节点1

[root@tpps-ora01 ~]#iscsiadm -m discovery -t sendtargets -p 10.10.11.51 10.10.11.51:3260,1 iqn.2006-01.com.openfiler:tsn.54527546e345

[root@tpps-ora01 ~]# iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.54527546e345 -p 10.10.11.51 -l

Logging in to [iface: default, target: iqn.2006-01.com.openfiler:tsn.54527546e345, portal: 10.10.11.51,3260]

iscsiadm: Could not login to [iface: default, target: iqn.2006-01.com.openfiler:tsn.54527546e345, portal: 10.10.11.51,3260].

iscsiadm: initiator reported error (24 - iSCSI login failed due to authorization failure) iscsiadm: Could not log into all portals

[root@tpps-ora01 ~]#iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.54527546e345 -o update -n node.session.auth.authmethod -v CHAP

[root@tpps-ora01 ~]# iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.54527546e345 -o update -n node.session.auth.username -v openfiler

[root@tpps-ora01 ~]# iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.54527546e345 -o update -n node.session.auth.password -v password

[root@tpps-ora01 ~]# iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.54527546e345 -p 10.10.11.51 -l

Logging in to [iface: default, target: iqn.2006-01.com.openfiler:tsn.54527546e345, portal: 10.10.11.51,3260]

Login to [iface: default, target: iqn.2006-01.com.openfiler:tsn.54527546e345, portal: 10.10.11.51,3260] successful. 成功后可以看到


oracle11g+asm+rac安装指南linux(2).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:朋友诗词集

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: