码迷,mamicode.com
首页 > 数据库 > 详细

Solaris 10(x86)构建Oracle 11gR2 RAC之--配置系统环境(2)

时间:2015-01-23 18:32:46      阅读:382      评论:0      收藏:0      [点我收藏+]

标签:oracle

Solaris 10(x86)构建Oracle 11gR2 RAC之--配置系统环境(2)

系统环境:

操作系统:Solaris 10(x86-64)

Cluster: Oracle GRID 11.2.0

Oracle:  Oracle 11.2.0.1.0

如图所示:RAC 系统架构

技术分享


对于Oracle 11G构建RAC首先需要构建GI(Grid Infrastructure)的架构

三、安装相关软件和补丁包(所有node)

1、检查软件包:

[root@node2:/]# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWlibms SUNWsprot SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt

system      SUNWarc   Lint Libraries (usr)
system      SUNWbtool CCS tools bundled with SunOS
system      SUNWhea   SunOS Header Files
system      SUNWi1of  ISO-8859-1 (Latin-1) Optional Fonts
system      SUNWlibm  Math & Microtasking Library Headers & Lint Files (Usr)
system      SUNWlibms Math & Microtasking Libraries (Usr)
system      SUNWsprot Solaris Bundled tools
system      SUNWtoo   Programming Tools
system      SUNWxwfnt X Window System platform required fonts
ERROR: information for "SUNWi1cs" was not found
ERROR: information for "SUNWi15cs" was not found

2、安装软件:

挂载Solaris 10系统安装盘

[root@node1:/]# ls /cdrom
cdrom0          sol_10_910_x86

[root@node1:/cdrom/sol_10_910_x86/Solaris_10/Product]# pkgadd /cdrom/sol_10_910_x86/Solaris_10/Product SUNWi1cs
pkgadd: ERROR: no packages were found in </var/spool/pkg>
[root@node1:/cdrom/sol_10_910_x86/Solaris_10/Product]# pkgadd -d /cdrom/sol_10_910_x86/Solaris_10/Product SUNWi1cs
Processing package instance <SUNWi1cs> from </cdrom/sol_10_910_x86/Solaris_10/Product>
X11 ISO8859-1 Codeset Support(i386) 2.0,REV=2004.10.17.15.04
Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Using </> as the package base directory.
## Processing package information.
## Processing system information.
   8 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
This package contains scripts which will be executed with super-user
permission during the process of installing this package.
Do you want to continue with the installation of <SUNWi1cs> [y,n,?] y
Installing X11 ISO8859-1 Codeset Support as <SUNWi1cs>
## Installing part 1 of 1.
232 blocks
Installation of <SUNWi1cs> was successful.

[root@node1:/cdrom/sol_10_910_x86/Solaris_10/Product]# pkgadd -d /cdrom/sol_10_910_x86/Solaris_10/Product SUNWi15cs
Processing package instance <SUNWi15cs> from </cdrom/sol_10_910_x86/Solaris_10/Product>
X11 ISO8859-15 Codeset Support(i386) 2.0,REV=2004.10.17.15.04
Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Using </> as the package base directory.
## Processing package information.
## Processing system information.
   6 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
This package contains scripts which will be executed with super-user
permission during the process of installing this package.
Do you want to continue with the installation of <SUNWi15cs> [y,n,?] y
Installing X11 ISO8859-15 Codeset Support as <SUNWi15cs>
## Installing part 1 of 1.
1460 blocks
Installation of <SUNWi15cs> was successful.
[root@node1:/cdrom/sol_10_910_x86/Solaris_10/Product]#

3、检查安装结果:

[root@node2:/]# pkginfo -i SUNWi1cs SUNWi15cs
system      SUNWi15cs X11 ISO8859-15 Codeset Support
system      SUNWi1cs  X11 ISO8859-1 Codeset Support

4、系统补丁需求:

技术分享

四、建立主机间信任关系(所有node)

在Solaris 10通过RSH系列工具,可以建立主机间的信任关系。

[root@node1:/]# cat /etc/hosts.equiv 
node1  oracle
node1  root
node1-vip root
node1-vip oracle
node1-priv root
node1-priv oracle
node1      grid
node1-vip  grid
node1-priv grid
node2  root
node2  oracle
node2-vip  root
node2-vip  oracle
node2-priv  root
node2-priv  oracle
node2       grid
node2-vip   grid
node2-priv  grid

[oracle@node1:/export/home/oracle]$ cat .rhosts 
node1  root
node1  oracle
node1-vip root
node1-vip oracle
node1-priv root
node1-priv oracle
node1      grid
node1-vip  grid
node1-priv grid
node2  root
node2  oracle
node2-vip  root
node2-vip  oracle
node2-priv  root
node2-priv  oracle
node2       grid
node2-vip   grid
node2-priv  grid

[grid@node1:/export/home/grid]$ cat .rhosts 
node1  root
node1  oracle
node1-vip root
node1-vip oracle
node1-priv root
node1-priv oracle
node1      grid
node1-vip  grid
node1-priv grid
node2  root
node2  oracle
node2-vip  root
node2-vip  oracle
node2-priv  root
node2-priv  oracle
node2       grid
node2-vip   grid
node2-priv  grid

启动相关的服务:
[root@node1:/]# svcadm enable svc:/network/login:rlogin
[root@node1:/]# svcadm enable svc:/network/rexec:default
[root@node1:/]# svcadm enable svc:/network/shell:default

验证:
[oracle@node1:/export/home/oracle]$ rsh node2 date
Fri Jan 23 11:11:24 CST 2015
[oracle@node1:/export/home/oracle]$ rsh node2-priv date
Fri Jan 23 11:11:27 CST 2015
[oracle@node1:/export/home/oracle]$ su - grid
Password: 
Oracle Corporation      SunOS 5.10      Generic Patch   January 2005
[grid@node1:/export/home/grid]$ rsh node2 date
Fri Jan 23 11:11:39 CST 2015
[grid@node1:/export/home/grid]$ rsh node2-priv date
Fri Jan 23 11:11:42 CST 2015
[grid@node1:/export/home/grid]$


五、配置时间同步(所有node)

   对于Oracle 11gR2中,可以采用Oracle Cluster Time Synchronization daemon (ctssd) 服务,来进行时间的同步,不需要采用系统的NTP服务进行同步,需要关闭系统的NTP服务。

[root@node1:/]# svcs -a |grep ntp
disabled        9:38:42 svc:/network/ntp:default
disabled        9:38:43 svc:/network/ntp4:default

  ----默认已经被关闭

本文出自 “天涯客的blog” 博客,请务必保留此出处http://tiany.blog.51cto.com/513694/1607506

Solaris 10(x86)构建Oracle 11gR2 RAC之--配置系统环境(2)

标签:oracle

原文地址:http://tiany.blog.51cto.com/513694/1607506

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!