Operating System - HP-UX
1847237 Members
2958 Online
110263 Solutions
New Discussion

Oracle Script template for Cluster

 
SOLVED
Go to solution
Geetha_1
Regular Advisor

Oracle Script template for Cluster

Could somebody point me in the right direction -

I need a template for Startup, Shutdown and Monitor Script for ORACLE for putting an Oracle 9.2 database in MC/ServiceGuard. I have a template for 8i db but this doesn't seem to work for 9i. I don't know how the previous admin got the 7/8i template.

I am running MC/ServiceGuard v.A.11.12.

Thanks.
Geetha.
5 REPLIES 5
Kent Ostby
Honored Contributor

Re: Oracle Script template for Cluster

You can get the oracle toolkit information from here:

http://docs.hp.com/en/ha.html
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Julio Yamawaki
Esteemed Contributor

Re: Oracle Script template for Cluster

Hi,

This template for Oracle 8i can be changed for using with Oracle 9i.
Simply change the command svrmgrl by sqlplus /nolog and connect internal by connect / as sysdba.
All the other commands are basically the same.
Geetha_1
Regular Advisor

Re: Oracle Script template for Cluster

Kent - Thx for the info.

Julio,
I am going to try this out. Will keep you posted. Do you have a sample script please?
Thanks.
Geetha.
Julio Yamawaki
Esteemed Contributor
Solution

Re: Oracle Script template for Cluster

Hi,

I will show you two pieces:
1. First, the shutdown function:
function shutdown_cmds
{

su oracle -c ${ORACLE_HOME}/bin/sqlplus /nolog <connect / as sysdba
shutdown immediate
EOF

2. Second, the startup function:
su oracle -c ${ORACLE_HOME}/bin/sqlplus /nolog <connect / as sysdba
startup pfile=${PFILE}
exit
EOF

In my case, oracle is the user for Oracle, please change for your own name, if it is differente from oracle.
Geetha_1
Regular Advisor

Re: Oracle Script template for Cluster

Julio,
Thanks.
Geetha.