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 系统架构

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

四、建立主机间信任关系(node1)

   通过ssh建立信任关系

Oracle 用户:

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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
[oracle@node1:/export/home/oracle]$ ssh-keygen -t rsa
Generating  public / private  rsa key pair.
Enter file  in  which to save the key (/export/home/oracle/.ssh/id_rsa): 
Enter passphrase (empty  for  no passphrase): 
Enter same passphrase again: 
Your identification has been saved  in  /export/home/oracle/.ssh/id_rsa.
Your  public  key has been saved  in  /export/home/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
22 : 85 :5f: 22 : 01 : 97 :3b:f1:8a:8d:d2:aa: 87 : 30 :4c: 49  oracle@node1
 
[oracle@node1:/export/home/oracle]$ ssh-keygen -t dsa
Generating  public / private  dsa key pair.
Enter file  in  which to save the key (/export/home/oracle/.ssh/id_dsa): 
Enter passphrase (empty  for  no passphrase): 
Enter same passphrase again: 
Your identification has been saved  in  /export/home/oracle/.ssh/id_dsa.
Your  public  key has been saved  in  /export/home/oracle/.ssh/id_dsa.pub.
The key fingerprint is:
e2: 11 :e1:ed:4e:a4:e8:b1: 73 :8f:3e:e2:f2:e2:d8:0d oracle@node1
 
 
 
[oracle@node2:/export/home/oracle]$ ssh-keygen -t rsa
Generating  public / private  rsa key pair.
Enter file  in  which to save the key (/export/home/oracle/.ssh/id_rsa): 
Enter passphrase (empty  for  no passphrase): 
Enter same passphrase again: 
Your identification has been saved  in  /export/home/oracle/.ssh/id_rsa.
Your  public  key has been saved  in  /export/home/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
04 :a7:fd:b0:b3: 33 :6a:ab:7b:ae:f8: 08 : 93 : 32 : 05 : 96  oracle@node2
 
 
 
[oracle@node2:/export/home/oracle]$ ssh-keygen -t dsa
Generating  public / private  dsa key pair.
Enter file  in  which to save the key (/export/home/oracle/.ssh/id_dsa): 
Enter passphrase (empty  for  no passphrase): 
Enter same passphrase again: 
Your identification has been saved  in  /export/home/oracle/.ssh/id_dsa.
Your  public  key has been saved  in  /export/home/oracle/.ssh/id_dsa.pub.
The key fingerprint is:
af:3a:e7: 36 :f7:e2: 96 : 58 :9c:4d:f5:d8:d4: 47 : 32 :fe oracle@node2
 
 
[oracle@node1:/export/home/oracle]$ cat .ssh/id_rsa.pub >>.ssh/authorized_keys
[oracle@node1:/export/home/oracle]$ cat .ssh/id_dsa.pub >>.ssh/authorized_keys
[oracle@node1:/export/home/oracle]$ ssh node2 cat .ssh/id_rsa.pub >>.ssh/authorized_keys
Password: 
[oracle@node1:/export/home/oracle]$ ssh node2 cat .ssh/id_dsa.pub >>.ssh/authorized_keys
Password: 
[oracle@node1:/export/home/oracle]$ scp .ssh/authorized_keys node2:~/.ssh
Password: 
authorized_keys       100 % |*******************************************************************************|   1648        00 : 00    
验证信任关系:(所有node)
 
在node1验证:
[oracle@node1:/export/home/oracle]$ ssh node2 date
Mon Jan  26  11 : 43 : 43  CST  2015
[oracle@node1:/export/home/oracle]$ ssh node2-priv date
The authenticity of host  'node2-priv (10.10.10.12)'  can't be established.
RSA key fingerprint is e8:4f:7a: 13 :f7: 46 :8b:f8: 85 :7f:7f: 00 :6c:5c:0f: 66.
Are you sure you want to  continue  connecting (yes/no)? yes
Warning: Permanently added  'node2-priv,10.10.10.12'  (RSA) to the list of known hosts.
Mon Jan  26  11 : 43 : 49  CST  2015
[oracle@node1:/export/home/oracle]$ ssh node1-priv date
The authenticity of host  'node1-priv (10.10.10.11)'  can't be established.
RSA key fingerprint is e8:4f:7a: 13 :f7: 46 :8b:f8: 85 :7f:7f: 00 :6c:5c:0f: 66.
Are you sure you want to  continue  connecting (yes/no)? yes
Warning: Permanently added  'node1-priv,10.10.10.11'  (RSA) to the list of known hosts.
Mon Jan  26  11 : 43 : 53  CST  2015
[oracle@node1:/export/home/oracle]$ ssh node1 date
The authenticity of host  'node1 (192.168.8.11)'  can't be established.
RSA key fingerprint is e8:4f:7a: 13 :f7: 46 :8b:f8: 85 :7f:7f: 00 :6c:5c:0f: 66.
Are you sure you want to  continue  connecting (yes/no)? yes
Warning: Permanently added  'node1,192.168.8.11'  (RSA) to the list of known hosts.
Mon Jan  26  11 : 43 : 58  CST  2015
 
在node2验证:
[oracle@node2:/export/home/oracle]$ ssh node1 date
The authenticity of host  'node1 (192.168.8.11)'  can't be established.
RSA key fingerprint is e8:4f:7a: 13 :f7: 46 :8b:f8: 85 :7f:7f: 00 :6c:5c:0f: 66.
Are you sure you want to  continue  connecting (yes/no)? yes
Warning: Permanently added  'node1,192.168.8.11'  (RSA) to the list of known hosts.
Mon Jan  26  11 : 44 : 17  CST  2015
[oracle@node2:/export/home/oracle]$ ssh node1-priv date
The authenticity of host  'node1-priv (10.10.10.11)'  can't be established.
RSA key fingerprint is e8:4f:7a: 13 :f7: 46 :8b:f8: 85 :7f:7f: 00 :6c:5c:0f: 66.
Are you sure you want to  continue  connecting (yes/no)? yes
Warning: Permanently added  'node1-priv,10.10.10.11'  (RSA) to the list of known hosts.
Mon Jan  26  11 : 44 : 23  CST  2015
[oracle@node2:/export/home/oracle]$ ssh node2-priv date
The authenticity of host  'node2-priv (10.10.10.12)'  can't be established.
RSA key fingerprint is e8:4f:7a: 13 :f7: 46 :8b:f8: 85 :7f:7f: 00 :6c:5c:0f: 66.
Are you sure you want to  continue  connecting (yes/no)? yes
Warning: Permanently added  'node2-priv,10.10.10.12'  (RSA) to the list of known hosts.
Mon Jan  26  11 : 44 : 29  CST  2015
[oracle@node2:/export/home/oracle]$ ssh node2 date
The authenticity of host  'node2 (192.168.8.12)'  can't be established.
RSA key fingerprint is e8:4f:7a: 13 :f7: 46 :8b:f8: 85 :7f:7f: 00 :6c:5c:0f: 66.
Are you sure you want to  continue  connecting (yes/no)? yes
Warning: Permanently added  'node2,192.168.8.12'  (RSA) to the list of known hosts.
Mon Jan  26  11 : 44 : 35  CST  2015

grid 用户:

  操作步骤同oracle用户相同

五、配置时间同步(所有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

  ----默认已经被关闭










本文转自 客居天涯 51CTO博客,原文链接:http://blog.51cto.com/tiany/1607506,如需转载请自行联系原作者
目录
相关文章
|
7月前
|
Oracle 关系型数据库 流计算
flink cdc 同步oracle idea启动可以全量同步,服务器环境不同步。standalone模式
flink cdc 同步oracle idea启动可以全量同步,服务器环境不同步。standalone模式
|
1月前
|
存储 运维 Oracle
Oracle系列十八:Oracle RAC
Oracle系列十八:Oracle RAC
|
2月前
|
Oracle 关系型数据库
oracle Hanganalyze no RAC
oracle Hanganalyze no RAC
15 0
|
2月前
|
Oracle 关系型数据库
oracle rac 手工安装补丁,不适用auto
oracle rac 手工安装补丁,不适用auto
25 3
|
3月前
|
Oracle 关系型数据库 Linux
RHEL7.9系统下一键脚本安装Oracle 11gR2单机版本
RHEL7.9系统下一键脚本安装Oracle 11gR2单机版本
63 1
|
3月前
|
SQL Oracle 关系型数据库
Linux环境下oracle切换用户并查询数据库命令
Linux环境下oracle切换用户并查询数据库命令
|
3月前
|
Oracle 关系型数据库
【Oracle报错】[INS-13001] 环境不满足最低要求。
【Oracle报错】[INS-13001] 环境不满足最低要求。
|
5月前
Win10系统安装Oracle11g时遇到INS-13001环境不满足最低要求
Win10系统安装Oracle11g时遇到INS-13001环境不满足最低要求
|
6月前
|
Oracle 关系型数据库 Java
分享一个 Oracle RAC 模式下客户端建立JDBC初始连接时因ONS造成应用启动时卡顿30秒问题的排查分析案例
分享一个 Oracle RAC 模式下客户端建立JDBC初始连接时因ONS造成应用启动时卡顿30秒问题的排查分析案例
|
11月前
|
存储 Oracle 关系型数据库

推荐镜像

更多