Operating System - HP-UX
1748139 Members
3737 Online
108758 Solutions
New Discussion юеВ

How to add new oracle instance in a failover cluster

 

How to add new oracle instance in a failover cluster

Hello !
We have failover cluster based on two rp7410 and va7410 disk array. The os version is hp-ux 11i. This system has worked some time with oracle 8i database. Now we have to add new database instance in this cluster but nobody knows how. Trivial "dbstart" works fine but it doesn't execute in switchover. I found script "oracle.sh". This script starts my first instance. AFAIK it's a part of the cluster package. Unfortunatelly this script is very complex. dbstart looks file /etc/oratab but this file doesn't affect on cluster package. Does package have own configuration file ?
How can I add new instance in the package ?
3 REPLIES 3
Slawomir Gora
Honored Contributor

Re: How to add new oracle instance in a failover cluster

If your second instance of database exist
on the same volume group as first instance
you have in /etc/cmcluster directory your database
package configuration ex. ORA
/etc/cmcluster/ORA
in this directory you have files:
/etc/cmcluster/ORA/ora.conf - configuration
/etc/cmcluster/ORA/ora.cntl - control
/etc/cmcluster/ORA/oracle1.sh - instance of oracle startup script
(names ORA, ora, oracle1 - are only examples !!)

If you want to add instance you have to:
1. cd /etc/cmcluster/ORA
2. copy startup script of your fist instance to new name
3. edit new file and change SID_NAME=oracle1, maby LISTENER_NAME=
4. edit control script in my example ora.cntl
and add to section:
a) customer_defined_run_cmds
b) customer_defined_halt_cmds
startup and shutdown of database
5. copy files ora.cntl and oracle2.sh to second cluster node
6. test package start and stop
Dieter Degrendele_1
Frequent Advisor

Re: How to add new oracle instance in a failover cluster

And do not forget to cp the /etc/oratab file.

Regards,
Dieter Degrendele
The possible we did, the unpossible we're doing but for a miracle you have to wait some time.
Sanjay_6
Honored Contributor

Re: How to add new oracle instance in a failover cluster

Hi,

By default dbstart looks at the /etc/oratab file and start all the databases that have the "Y" tag at the end. If you are adding a new instance of oracle, you can add the instance id and details in the /etc/oratab file. Do the same on the failover node and you should be able to start the database on the alternate node too in the case of failvoer.

Are you making sure the file / filesystems for the new oracle instance are getting mounted on the alternate node. Normally Cluster control / configuration files tell where to look for the scripts. To start the databases, we still call the oracle dba controlled oracle startup and shutdown scripts.

Hope this helps.

Regds