Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca
Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca
In this article we will look at creating Oracle RAC and RAC ONE Node database using dbca. For
install/upgrade to Oracle 11.2.0.2 look here.
Start dbca and select Oracle RAC One Node database and press Next to continue.
Select Admin-Managed, enter database global name, SID prefix and service name and press Next to
continue. DBCA will create one database with one instance which can be migrated across the nodes
selected.
Specify storage type and storage location and press Next to continue.
Specify the Fast recovery area (formerly flash recovery area) and press Next to continue.
Select the database components and component location and press Next to continue.
Select the init parameters. In this case use AMM is selected and the memory size is specified. Press Next to
continue.
Select the options for dbca to generate a template and generation scripts and press Next to continue.
Optionally choose the password management to change the passwords and unlock the accounts and once
done press Exit to exit from dbca.
Start dbca and select Oracle RAC database and press Next to continue.
Select General Purpose or Transaction Processing Database and press Next to continue.
Select Admin-Managed, enter database global name, SID prefix and press Next to continue. DBCA will
create one database with two instances on each node respectively.
Select Configure Enterprise Manager and select Automatic Maintenance Tasks Tab.
Specify storage type and storage location and press Next to continue.
Specify the Fast recovery area (formerly flash recovery area) and press Next to continue.
Select the database components and component location and press Next to continue.
Select the init parameters. In this case use AMM is selected and the memory size is specified. Press Next to
continue.
Select the options for dbca to generate a template and generation scripts and press Next to continue.
Wait for the dbca to complete. Optionally choose the password management to change the passwords and
unlock the accounts and once done press Exit to exit from dbca.
view source
print?
001
002
003 [oracle@raclinux1 ~]$ srvctl status database -d RACDB
004
005
006 Instance RACDB1 is not running on node raclinux1
007
008
009 Instance RACDB2 is not running on node raclinux2
010
011
012 [oracle@raclinux1 ~]$ srvctl start database -d RACDB
013
014
015 [oracle@raclinux1 ~]$ srvctl status database -d RACDB
016
017
018 Instance RACDB1 is running on node raclinux1
019
020
021 Instance RACDB2 is running on node raclinux2
022
023
024 [oracle@raclinux1 ~]$ srvctl config database -d RACDB
025
026
027 Database unique name: RACDB
028
029
030 Database name: RACDB
031
032
033 Oracle home: /u01/app/oracle/product/11.2.0/db_10
034
035
036 Oracle user: oracle
037
038
039 Spfile: +DGDUP/RACDB/spfileRACDB.ora
040
041
042 Domain:
043
044
045 Start options: open
046
047
048 Stop options: immediate
049
050
051 Database role: PRIMARY
052
053
054 Management policy: AUTOMATIC
055
056
057 Server pools: RACDB
058
059
060 Database instances: RACDB1,RACDB2
061
062
063 Disk Groups: DGDUP,DATA
064
065
066 Mount point paths:
067
068
069 Services:
070
071
072 Type: RAC
073
074
075 Database is administrator managed
076
077
078 [oracle@raclinux1 ~]$
079
080
081
082
083
084 [oracle@raclinux1 ~]$ sqlplus system/sys1@racdb
085
086
087
088
089
090 SQL*Plus: Release 11.2.0.2.0 Production on Tue Oct 5 14:26:32 2010
091
092
093
094
095
096 Copyright (c) 1982, 2010, Oracle. All rights reserved.
097
098
099
100
101
102
103
104
105 Connected to:
106
107
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit
108
Production
109
110
With the Partitioning, Real Application Clusters, Automatic Storage
111
Management, OLAP,
112
113
114 Data Mining and Real Application Testing options
115
116
117
118
119
120 SQL> select * from gv$instance;
121
122
123
124
125
126 INST_ID INSTANCE_NUMBER INSTANCE_NAME
127
128
129 ---------- --------------- ----------------
130
131
132 HOST_NAME
133
134
135 ----------------------------------------------------------------
136
137
VERSION STARTUP_T STATUS PAR THREAD# ARCHIVE
138
LOG_SWITCH_WAIT
139
140
----------------- --------- ------------ --- ---------- -------
141
---------------
142
143
144 LOGINS SHU DATABASE_STATUS INSTANCE_ROLE ACTIVE_ST BLO
145
146
147 ---------- --- ----------------- ------------------ --------- ---
148
149
150 1 1 RACDB1
151
152
153 raclinux1.gj.com
154
155
156 11.2.0.2.0 05-OCT-10 OPEN YES 1 STOPPED
157
158
159 ALLOWED NO ACTIVE PRIMARY_INSTANCE NORMAL NO
160
161
162
163
164
165
166
167
168 INST_ID INSTANCE_NUMBER INSTANCE_NAME
169
170
171 ---------- --------------- ----------------
172
173
174 HOST_NAME
175
176
177 ----------------------------------------------------------------
178
179
VERSION STARTUP_T STATUS PAR THREAD# ARCHIVE
180
LOG_SWITCH_WAIT
181
182
----------------- --------- ------------ --- ---------- -------
183
---------------
184
185
186 LOGINS SHU DATABASE_STATUS INSTANCE_ROLE ACTIVE_ST BLO
187
188
189 ---------- --- ----------------- ------------------ --------- ---
190
191
192 2 2 RACDB2
193
194
195 raclinux2.gj.com
196
197
198 11.2.0.2.0 05-OCT-10 OPEN YES 2 STOPPED
199
200
201 ALLOWED NO ACTIVE PRIMARY_INSTANCE NORMAL NO
202
203
204
205
206
207
208
209
210 SQL>
211
212
213
view source
print?
01
02
03 [oracle@raclinux2 admin]$ srvctl status database -d rone
04
05 Instance RONE_1 is running on node raclinux2
06
07 Online relocation: INACTIVE
08
09 [oracle@raclinux2 admin]$ srvctl config database -d rone
10
11 Database unique name: RONE
12
13 Database name: RONE
14
15 Oracle home: /u01/app/oracle/product/11.2.0/db_20
16
17 Oracle user: oracle
18
19 Spfile: +DATA/RONE/spfileRONE.ora
20
21 Domain:
22
23 Start options: open
24
25 Stop options: immediate
26
27 Database role: PRIMARY
28
29 Management policy: AUTOMATIC
30
31 Server pools: RONE
32
33 Database instances:
34
35 Disk Groups: DATA
36
37 Mount point paths:
38
39 Services: RACONE
40
41 Type: RACOneNode
42
43 Online relocation timeout: 30
44
45 Instance name prefix: RONE
46
47 Candidate servers: raclinux2,raclinux1
48
49 Database is administrator managed
50
51 [oracle@raclinux2 admin]$
52
53 [oracle@raclinux2 admin]$ sqlplus system/sys1@ronetaf
54
55 SQL*Plus: Release 11.2.0.2.0 Production on Tue Oct 5 14:21:50 2010
56
57 Copyright (c) 1982, 2010, Oracle. All rights reserved.
58
59 Connected to:
60
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit
61
Production
62
With the Partitioning, Real Application Clusters, Automatic Storage
63
Management, OLAP,
64
65 Data Mining and Real Application Testing options
66
67 SQL> select * from gv$instance;
68
69 INST_ID INSTANCE_NUMBER INSTANCE_NAME
70
71 ---------- --------------- ----------------
72
73 HOST_NAME
74
75 ----------------------------------------------------------------
76
VERSION STARTUP_T STATUS PAR THREAD# ARCHIVE
77
LOG_SWITCH_WAIT
78
----------------- --------- ------------ --- ---------- -------
79
---------------
80
81 LOGINS SHU DATABASE_STATUS INSTANCE_ROLE ACTIVE_ST BLO
82
83 ---------- --- ----------------- ------------------ --------- ---
84
85 1 1 RONE_1
86
87 raclinux2.gj.com
88
89 11.2.0.2.0 05-OCT-10 OPEN YES 1 STOPPED
90
91 ALLOWED NO ACTIVE PRIMARY_INSTANCE NORMAL NO
92
93 SQL>
94
95
Summary
We looked at creating RAC and RAC ONE Node databases using dbca in Oracle 11gR2 11.2.0.2. We
verified that the databases was successfully created.