系统环境:
操作系统:RedHat EL5
Cluster: Oracle GI(Grid Infrastructure)
Oracle: Oracle 11.2.0.1.0
如图所示:RAC 系统架构
五、安装Oracle并建库
以oracle用户登录系统并安装Oracle软件和建立数据库
只安装软件,然后再建库
安装在RAC环境
安装软件
按照提示运行脚本(all nodes)
[root@node1 ~]# /u01/app/oracle/product/11.2.0/db_1/root.sh
1
2
3
4
5
6
7
|
Running Oracle 11g root.sh script...
The following environment variables are set
as
:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/
11.2.
0
/db_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
脚本运行成功后,即可完成Oracle的安装!
|
以grid运行asmca工具建立磁盘组:
建立dg1磁盘组用于存储database
建立dg1 磁盘组成功
创建rcy1 diskgroup用于存储recovery area
@至此,ASM磁盘组创建成功!
以oracle用户通过dbca建库:
建立RAC下的database
注意建立在所有node上
选择ASM存储,并通过OMF方式管理datafile
开始建库
建库完成后,即完成了Oracle 11g RAC的架构
验证:
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
|
[root
@node1
~]# crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.DG1.dg ora....up.type ONLINE ONLINE node1
ora.DG2.dg ora....up.type ONLINE ONLINE node1
ora....ER.lsnr ora....er.type ONLINE ONLINE node1
ora....N1.lsnr ora....er.type ONLINE ONLINE node1
ora....VOTE.dg ora....up.type ONLINE ONLINE node1
ora.RCY1.dg ora....up.type ONLINE ONLINE node1
ora.asm ora.asm.type ONLINE ONLINE node1
ora.eons ora.eons.type ONLINE ONLINE node1
ora.gsd ora.gsd.type OFFLINE OFFLINE
ora....network ora....rk.type ONLINE ONLINE node1
ora....SM1.asm application ONLINE ONLINE node1
ora....E1.lsnr application ONLINE ONLINE node1
ora.node1.gsd application OFFLINE OFFLINE
ora.node1.ons application ONLINE ONLINE node1
ora.node1.vip ora....t1.type ONLINE ONLINE node1
ora....SM2.asm application ONLINE ONLINE node2
ora....E2.lsnr application ONLINE ONLINE node2
ora.node2.gsd application OFFLINE OFFLINE
ora.node2.ons application ONLINE ONLINE node2
ora.node2.vip ora....t1.type ONLINE ONLINE node2
ora.oc4j ora.oc4j.type OFFLINE OFFLINE
ora.ons ora.ons.type ONLINE ONLINE node1
ora.prod.db ora....se.type ONLINE ONLINE node1
ora....taf.svc ora....ce.type ONLINE ONLINE node1
ora....ry.acfs ora....fs.type ONLINE ONLINE node1
ora.scan1.vip ora....ip.type ONLINE ONLINE node1
rac_web application ONLINE ONLINE node1
web_vip application ONLINE ONLINE node1
17
:
06
:
17
SYS@ prod1>select name from v$database;
NAME
---------
PROD
Elapsed:
00
:
00
:
00.38
17
:
06
:
30
SYS@ prod1>select instance_number,instance_name,status from gv$instance;
INSTANCE_NUMBER INSTANCE_NAME STATUS
--------------- ---------------- ------------
1
prod1 OPEN
2
prod2 OPEN
|
@至此,整个Oracle 11g RAC的部署和架构全部完成!
本文转自 客居天涯 51CTO博客,原文链接:http://blog.51cto.com/tiany/1425041,如需转载请自行联系原作者