安装Oracle11gR2 - RAC(2)

2019-03-28 15:30

chown grid:oinstall /g01 mkdir /g01/orabase mkdir /s01/orabase

chown oracle:oinstall /s01/orabase chown grid:oinstall /g01/orabase

1.6修改系统参数(所有节点)

[root@node1 ~]# vi /etc/security/limits.conf

#ORACLE SETTING

grid soft nproc 2047 grid hard nproc 16384 grid soft nofile 1024 grid hard nofile 65536 oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536

[root@node2 app]# vi /etc/security/limits.conf #ORACLE SETTING

grid soft nproc 2047 grid hard nproc 16384 grid soft nofile 1024 grid hard nofile 65536 oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536

1.7 配置时间同步(所有节点)

在11gR2 中,RAC 在安装的时候,时间同步可以用两种方式来实现: (1) NTP (2) CTSS。

当安装程序发现 NTP 协议处于非活动状态时,安装集群时间同步服务将

以活动模式自动进行安装并通过所有节点的时间。如果发现配置了 NTP,则以

6

观察者模式启动集群时间同步服务,Oracle Clusterware 不会在集群中进行活 动的时间同步。

Oracle 集群时间同步服务 (ctssd) 旨在为那些 Oracle RAC 数据库 无法访问 NTP 服务的组织提供服务。目前建议配置NTP。

本文档采用CTSS

使用集群时间同步服务在集群中提供同步服务,需要卸载网络时间协 议 (NTP) 及其配置。

要停用 NTP 服务,必须停止当前的 ntpd 服务,从初始化序列中禁用 该服务,并删除 ntp.conf 文件。

要在Linux 上完成这些步骤,以 root 用户身份在两个 Oracle RAC 节 点上运行以下命令:

[root@node1 ~]# /sbin/service ntpd stop

关闭 ntpd: [失败] [root@node1 ~]# chkconfig ntpd off

[root@node1 ~]# mv /etc/ntp.conf /etc/ntp.conf.original [root@ node1 ~]# chkconfig ntpd --list

ntpd 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭 [root@node1 ~]# rm /var/run/ntpd.pid

rm: 无法删除\没有那个文件或目录

[root@ node2 ~]# /sbin/service ntpd stop

关闭 ntpd: [失败] [root@ node2 ~]# chkconfig ntpd off

[root@ node2 ~]# mv /etc/ntp.conf /etc/ntp.conf.original [root@ node2 ~]# chkconfig ntpd --list

ntpd 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭 [root@ node2 ~]# rm /var/run/ntpd.pid

rm: 无法删除\没有那个文件或目录

在安装集群软件完成后,要确认 ctssd 处于活动状态,用grid 所有者输入以下命令:

[grid@node1 ~]$ crsctl check ctss

CRS-4701: The Cluster Time Synchronization Service is in Active mode. CRS-4702: Offset (in msec): 0

[grid@node2 ~]$ crsctl check ctss

CRS-4701: The Cluster Time Synchronization Service is in Active mode. CRS-4702: Offset (in msec): 0

7

1.8安装依赖包(所有节点)

将系统镜像文件OracleLinux-R6-U3-Server-x86_64-dvd.iso挂载。执行以下命令:

[root@node1 ~]# cd /etc/yum.repos.d

[root@node1 yum.repos.d]#mv public-yum-ol6.repo public-yum-ol6.repo.bak

[root@node1 yum.repos.d]# touch public-yum-ol6.repo [root@node1 yum.repos.d]# vi public-yum-ol6.repo 设置其内容为:

[oel6]

name = Enterprise Linux 6.3 DVD

baseurl=file:///media/\gpgcheck=0 enabled=1

然后执行安装命令进行相关依赖软件的安装: [root@node1 ~]# yum install

oracle-rdbms-server-11gR2-preinstall-1.0-6.el6 [root@node1 ~]# yum install xterm

1.9配置用户环境变量(所有节点)

1.9.1 grid 用户

node1配置环境变量 [root@node1 ~]# su - grid

[grid@node1 ~]$ vi .bash_profile

# .bash_profile

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

# User specific environment and startup programs

export GRID_HOME=/g01/11ggrid/app/11.2.0/grid export ORACLE_HOME=/g01/11ggrid/app/11.2.0/grid

export PATH=$GRID_HOME/bin:$GRID_HOME/OPatch:/sbin:/bin:/usr/sbin:/usr/bin

8

export ORACLE_SID=+ASM1

export LD_LIBRARY_PATH=$GRID_HOME/lib:$GRID_HOME/lib32

export ORACLE_BASE=/g01/orabase

export ORA_NLS10=$ORACLE_HOME/nls/data

export NLS_LANG=\~

node2配置环境变量 [root@node2 ~]# su grid

[grid@node2 ~]$ vi .bash_profile

# .bash_profile

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

# User specific environment and startup programs

export GRID_HOME=/g01/11ggrid/app/11.2.0/grid export ORACLE_HOME=/g01/11ggrid/app/11.2.0/grid

export PATH=$GRID_HOME/bin:$GRID_HOME/OPatch:/sbin:/bin:/usr/sbin:/usr/bin

export ORACLE_SID=+ASM2

export LD_LIBRARY_PATH=$GRID_HOME/lib:$GRID_HOME/lib32

export ORACLE_BASE=/g01/orabase

export ORA_NLS10=$ORACLE_HOME/nls/data

export NLS_LANG=\ ~ ~ ~ ~

1.9.2 oracle 用户

node1配置环境变量

[oracle@node1 ~]$ cat .bash_profile # .bash_profile

# Get the aliases and functions

9

if [ -f ~/.bashrc ]; then . ~/.bashrc fi

# User specific environment and startup programs

export ORACLE_HOME=/s01/oracle/app/oracle/product/11.2.0/dbhome_1

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

export ORACLE_SID=ORCL1

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32

export ORACLE_BASE=/s01/orabase

export ORA_NLS10=$ORACLE_HOME/nls/data

export NLS_LANG=\

node2配置环境变量

[oracle@node2 ~]$ cat .bash_profile # .bash_profile

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

# User specific environment and startup programs

export ORACLE_HOME=/s01/oracle/app/oracle/product/11.2.0/dbhome_1

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

export ORACLE_SID=ORCL2

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32

export ORACLE_BASE=/s01/orabase

export ORA_NLS10=$ORACLE_HOME/nls/data

export NLS_LANG=\

1.10使用UDEV 进行持久化(两个节点)

配置共享存储 for i in b ;

10


安装Oracle11gR2 - RAC(2).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:《设计心理学》讲义 - 图文

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

马上注册会员

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