43
Create Oracle RAC and Oracle RAC ONE Node Database using dbca in Oracle 11g R2 (11.2.0.2) 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 . Create Oracle RAC ONE Node database using dbca Start dbca and select Oracle RAC One Node database and press Next to continue. Select ‘Create a Database’ and press Next to continue.

Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

Embed Size (px)

Citation preview

Page 1: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

Create Oracle RAC and Oracle RAC ONE Node Database using dbca in Oracle 11g R2 (11.2.0.2)  

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.  

Create Oracle RAC ONE Node database using dbca  

Start dbca and select Oracle RAC One Node database and press Next to continue.  

  

Select ‘Create a Database’ and press Next to continue.  

Page 2: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Select Custom Database and press Next to continue.  

Page 3: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

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.  

Page 4: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Enter and confirm the password(s) and press Next to continue.  

Page 5: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Specify storage type and storage location and press Next to continue.  

Page 6: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Specify the Fast recovery area (formerly flash recovery area) and press Next to continue.  

Page 7: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Select the database components and component location and press Next to continue.  

Page 8: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Select the init parameters. In this case use AMM is selected and the memory size is specified. Press Next to continue.  

Page 9: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Keep the defaults and press Next to continue.  

Page 10: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Select the options for dbca to generate a template and generation scripts and press Next to continue.  

Page 11: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Review the summary and press OK to continue.  

Page 12: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Wait for the dbca to complete.  

Page 13: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Optionally choose the password management to change the passwords and unlock the accounts and once done press Exit to exit from dbca.  

Page 14: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Create Oracle RAC database using dbca  

Start dbca and select Oracle RAC database and press Next to continue.  

Page 15: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Select ‘Create a Database’ and press Next to continue.  

Page 16: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Select General Purpose or Transaction Processing Database and press Next to continue.  

Page 17: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

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.  

Page 18: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Select Configure Enterprise Manager and select Automatic Maintenance Tasks Tab.  

Page 19: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Select Enable automatic maintenance tasks and press Next to continue.  

Page 20: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Enter and confirm the password(s) and press Next to continue.  

Page 21: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Specify storage type and storage location and press Next to continue.  

Page 22: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Specify the Fast recovery area (formerly flash recovery area) and press Next to continue.  

Page 23: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Select the database components and component location and press Next to continue.  

Page 24: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Select the init parameters. In this case use AMM is selected and the memory size is specified. Press Next to continue.  

Page 25: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Keep the defaults and press Next to continue.  

Page 26: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Select the options for dbca to generate a template and generation scripts and press Next to continue.  

Page 27: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Review the summary and press OK to continue.  

Page 28: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Wait for the dbca to complete.  

Page 29: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Wait for the dbca to complete.  

Page 30: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

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.  

Page 31: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

  

Verify RACDB installation  

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    

Page 32: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

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   

Page 33: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

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    

Page 34: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

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    

Page 35: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

107   

108 Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production

109    

110   

111 With the Partitioning, Real Application Clusters, Automatic Storage 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   

Page 36: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

138 VERSION           STARTUP_T STATUS       PAR    THREAD# ARCHIVE 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

Page 37: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

169    

170   

171 ---------- --------------- ----------------

172    

173   

174 HOST_NAME

175    

176   

177 ----------------------------------------------------------------

178    

179   

180 VERSION           STARTUP_T STATUS       PAR    THREAD# ARCHIVE 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    

Page 38: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

200   

201 ALLOWED    NO  ACTIVE            PRIMARY_INSTANCE   NORMAL    NO

202    

203   

204    205    

206   

207    208    

209   

210 SQL>

211    

212   

213   

 

 

  

   

   

   

   

   

Verify RONE installation  

   

view source

print ?

Page 39: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

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   

Page 40: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

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   

61 Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production 

62   

63 With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, 

Page 41: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

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   

77 VERSION           STARTUP_T STATUS       PAR    THREAD# ARCHIVE 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   

Page 42: Create Oracle RAC and Oracle RAC ONE Node Database Using Dbca

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.