DBMNG数据库管理与应用

才能是来自独创性。独创性是思维、观察、理解和判断的一种独特的方式。
当前位置:首页 > Oracle > 基础知识

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

系统环境:

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

Cluster: Oracle GRID 11.2.0

Oracle:  Oracle 11.2.0.1.0

如图所示:RAC 系统架构

wKioL1TCBmLDm03UAAIfxyj414U232.jpg


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

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

1、检查软件包:

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

1
2
3
4
5
6
7
8
9
10
11
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系统安装盘

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[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、检查安装结果:

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

4、系统补丁需求:

wKiom1TCFKSjbFsCAALhrw1PVt4408.jpg

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

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[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服务。

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

  ----默认已经被关闭

本文出处http://tiany.blog.51cto.com/513694/1607506

本站文章内容,部分来自于互联网,若侵犯了您的权益,请致邮件chuanghui423#sohu.com(请将#换为@)联系,我们会尽快核实后删除。
Copyright © 2006-2023 DBMNG.COM All Rights Reserved. Powered by DEVSOARTECH            豫ICP备11002312号-2

豫公网安备 41010502002439号