You are on page 1of 10

http://www.hendrydba.

com
1

Install Oracle RAC 12c R1 on Oracle Linux
6.4 using VirtualBox 4.2.16


The following documents are a step by step guide to install Oracle Real Application Clusters
12c on Oracle Linux 6 using VirtualBox. The installation sequence below will get your 2
Node RAC running on your Laptop in a day or two.

1) Install Oracle RAC 12c R1 on Linux 6.4 using VirtualBox 4.2.16 checklist
2) Install VirtualBox 4.2.16 on Windows 7 64bit
3) Install Dual DHCP/DNS Server 7.10 on Windows 7
4) VirtualBox 4.2.16 setup and Linux 6.4 Installation for Oracle RAC 12c R1
5) Install Grid Infrastructure 12c R1 on Oracle Linux 6.4
6) Install Oracle RAC Database 12c R1 on Oracle Linux 6.4
7) Create Oracle RAC Database 12c R1 on Oracle Linux 6.4



Create Oracle RAC Database 12c R1 on
Oracle Linux 6.4

CREATE DATABASE
Run the dbca command
[oracle@ol6-121-rac1 ~]$ cd $ORACLE_HOME
[oracle@ol6-121-rac1 db_1]$ pwd
/u01/app/oracle/product/12.1.0.1/db_1
[oracle@ol6-121-rac1 db_1]$ cd bin
[oracle@ol6-121-rac1 bin]$ dbca
bash: dbca: command not found
[oracle@ol6-121-rac1 bin]$ ./dbca



http://www.hendrydba.com
2
Choose Create Database

Choose the default Create a database with default configuration. Enter the container
database name (cbdrac), pluggable database name (pdbrac) and administrator password.
Click Next



http://www.hendrydba.com
3

Click Finish



http://www.hendrydba.com
4

Click Finish

http://www.hendrydba.com
5



http://www.hendrydba.com
6





http://www.hendrydba.com
7

Enterprise Manager Database Express URL:
https://ol6-121-rac1.workgroup:5500/em

http://www.hendrydba.com
8




http://www.hendrydba.com
9
Check the status of RAC Database
[oracle@ol6-121-rac1 bin]$ srvctl config database -d cbdrac
Database unique name: cbdrac
Database name: cbdrac
Oracle home: /u01/app/oracle/product/12.1.0.1/db_1
Oracle user: oracle
Spfile: +DATA/cbdrac/spfilecbdrac.ora
Password file: +DATA/cbdrac/orapwcbdrac
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: cbdrac
Database instances: cbdrac1,cbdrac2
Disk Groups: DATA
Mount point paths:
Services:
Type: RAC
Start concurrency:
Stop concurrency:
Database is administrator managed
[oracle@ol6-121-rac1 bin]$
[oracle@ol6-121-rac1 bin]$
[oracle@ol6-121-rac1 bin]$ srvctl status database -d cbdrac
Instance cbdrac1 is running on node ol6-121-rac1
Instance cbdrac2 is running on node ol6-121-rac2

[oracle@ol6-121-rac1 bin]$ export ORACLE_SID=cbdrac1
[oracle@ol6-121-rac1 bin]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.1.0 Production on Wed Jul 24 18:36:19 2013

Copyright (c) 1982, 2013, Oracle. All rights reserved.


Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Advanced Analytics and Real Application Testing options

SQL> select banner from v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
PL/SQL Release 12.1.0.1.0 - Production
CORE 12.1.0.1.0 Production
TNS for Linux: Version 12.1.0.1.0 - Production
NLSRTL Version 12.1.0.1.0 - Production

SQL> select instance_name,host_name from gv$instance;

INSTANCE_NAME
----------------
HOST_NAME
----------------------------------------------------------------
cbdrac1

http://www.hendrydba.com
10
ol6-121-rac1.workgroup

cbdrac2
ol6-121-rac2.workgroup


SQL>
SQL> SELECT inst_name FROM v$active_instances;

INST_NAME
------------------------------------------------------------
ol6-121-rac1.workgroup:cbdrac1
ol6-121-rac2.workgroup:cbdrac2

Shalom

You might also like