This
document explains the step by step process of Creating Oracle 9iR2
Real Application Cluster (RAC) database on OCFS storage option.
In the Pre-Installation task, I have formated /dev/sda2 (mounted on
/u02/oradata/ocfs) with OCFS. I am going to use the same mount point to
create the CLustered Database RacDB on OCFS. If you want to create the
Clustered database on Raw Devices/partitions, Please goto Creating
Clustered Database using Raw Devices / LVM.
Creating Oracle 9iR2
(9.2.0.4) Real Application Cluster (RAC)
Database
on OCFS:
Before you begin, Please
make sure that ClusterManager (oracm), Global Service Daemon (gsd) is
running. Also initialize the
Server Configuration repository using srvconfig
-init command.
[oracle@node1-pub oracle]$ gsdctl start
Successfully started GSD on local node
NOTE:
Do not start the gsd as root. If you do this then you will get the
below error message when you use srvctl utility to start/stop
database/instances. If you get the below error then, stop the gsd and
restart it again using oracle user. Even after doing that if you
continue getting that error, contact Oracle Support for further
assistant.
[root@node2-pub root]# gsdctl start
Successfully started GSD on local node
[oracle@node2-pub oracle]# srvctl start database -d RacDB
PRKP-1007 : Failed to start all the listeners associated with all the
instances of cluster database RacDB
PRKP-1005 : Failed to start up cluster database RacDB
ORA-01031: insufficient privileges
uction on Tue Jan 3 19:18:47 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
ORA-01005: null password given; logon denied
connect_string>] | /
06
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
ORA-01031: insufficient privileges
uction on Tue Jan 3 19:18:55 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
ORA-01005: null password given; logon denied
connect_string>] | /
06
Now
initialize the Server Configuratio Repository on all the nodes.
srvconfig -init
Follow These Steps to Create Clustered
Database on OCFS using dbca.
If you do not see this screen, then you need to
make sure that oracm service is running under all the nodes.
Select "Oracle cluster
database" option and Click Next.
Select "Create a database" and Click Next.
Select All the nodes and then Click Next. Make sure that you see all
the Nodes in this window before
you continue to the further steps. If you see any missing nodes,
check that oracm is running on all those nodes.
Select whatever option you want that best fits your application. I
choose general purpose for the experimental
database.
I Entered RacDB, RacDB as Global Database name and SID Prefix.
I selected dedicated server mode and clicked Next.
Adjust the memory parameter as my server has only 512 MB ram, so I had
to adjusted these parameter to
set the SGA around 180MB.
Here you need to adjust the Server Parameter File path to one that you
have used for ocfs mountpoint.
It is '/u02/oradata/ocfs' in my case.
Check whether the datafiles, controlfiles and redologs will be created
under the right mountpoint and
so on the right file system (ocfs). In my case it should be /u02/oradata/ocfs.
Click Finish.
Enter the password for SYS, System oraclke database users and Click
Exit.
Confirm that database files are created
on the ocfs file system and has all the nodes registerd with all the
files.
Connect as root and execute ocfstool
command. You see that under the "File Listing" tab, a new folder RacDB
is created.
Open the RacDB folder and check whether all the files are assigned to
all the nodes in the cluster.
If any node is
missing, then the database will not be opened by that node and you will
get the below error message
wheh you try to open the database on that node. I got this error when
dbca tried to startup the database on the another node
at the very last step and could not open it and failed with this error.
I then looked at the database filed using ocfstool to
and found that the second node was not registered to these files. I
cleanly shutdown database, all the Cluster Services
and finally rebooted all the nodes. Then I restarted all the Cluster
Services (oracm, gsd) and then open the database manually using sqlplus
on all the nodes one by one. At this time, the missing nodes were
registered automatically to the database files and finally I was
successfully able to open the database without any kind of errors.
PRKP-1003: Startup operation
partially failed.
Check the status and configuration of the new database using srvctl
utility.
srvctl start database -d RacDB
srvctl status database -d RacDB