- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Oracle start and stop
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2000 04:47 AM
тАО09-06-2000 04:47 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2000 04:53 AM
тАО09-06-2000 04:53 AM
SolutionLets pretend your package is called PKG1, and it runs an oracle database. Your SG cluster should have the following configuration dir;
/etc/cmcluster/PKG1
Check what you package is called with the cmviewcl command.
In the above dir you will find a file called;
PKG1.cntl
This is your configuration file. In it you will find 2 sections, 1 called;
function customer_defined_run_cmds
and one called;
function customer_defined_halt_cmds
In each section you put your oracle startup and orcale_shutdown scripts or commands. eg. in our run_cmds section we have;
su - oracle <
svrmgrl
connection internal
startup
EOF
and in our halt_cmds section we have;
su - oracle <
svrmgrl
connection internal
shutdown immediate
EOF
Thats it. Now when you do a cmrunpkg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2000 04:58 AM
тАО09-06-2000 04:58 AM
Re: Oracle start and stop
Have a look at the ones supplied by Oracle $ORACLE_HOME/bin/dbstart and dbshut. These are written to be called at system startup/shutdown.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2000 05:59 AM - last edited on тАО06-24-2021 06:48 AM by Ramya_Heera
тАО09-09-2000 05:59 AM - last edited on тАО06-24-2021 06:48 AM by Ramya_Heera
Re: Oracle start and stop
Remember the important thing about package control scripts is that they need to function correctly unattended, so you really have to look to cover as many situations as possible. Quite often with Oracle this can lead to a compromise bewteen being able to stop/switch the package quickly and avoiding any Oracle recovery action.
There are a few situations in Oracle where a 'shutdown immediate' will hang and not bring down the database - what can you do? all DBAs hate the mention of 'shutdown end', but at some point you have to make a call to make the database available.
These are the kind of things I have seen implemented:
a) Kick off a background monitor script just before doing the shutdown immediate - this will wait for x amount of time and then if the database processes are still active try a 'shutdown end'. The original shutdown script waits for the monitor script to complete before returning to the package control script.
b)Use ServiceGuard's HALT_SCRIPT_TIMEOUT parameter to just continue the package halt regardless of what Oracle is still doing after x amount of time. All oracle processes will get toasted when ServiceGuard does an fuser -k on the Oracle file systems.
Of course the chances are that if the database is switched to anothet node or restarted then things could go real slow for several minutes while oracle goes thro instance recovery, but a lsow database is better than no database.
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2000 05:39 AM
тАО09-26-2000 05:39 AM
Re: Oracle start and stop
I have Oracle in a ServiceGuard environment. Scripts to start and stop Oracle are available from HP, product no B5139A, the ServiceGuard enterprise master toolkit.
The script is much more complicated that the one proposed. It kicks off a child to monitor everything it does and take corrective action, and it regularly checks Oracle is OK and informs serviceguard if it detects any problems.
And no, Im not an HP salesman.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2000 06:28 AM
тАО09-26-2000 06:28 AM
Re: Oracle start and stop
When putting oracle in serviceguard you also need to start the listeners.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2006 03:40 PM
тАО07-04-2006 03:40 PM
Re: Oracle start and stop
oracle toolkit have: startup and shutdown script and monitoring oracle process.
with oracle toolkit, possible to run offline backup without shutdown your package.
But possible you can create script for that.
About comment from Chris Garman i think haoracle.sh have many option. ( stop, shutdown, start) if you using haoracle.sh stop, thats means shutdown abort at oracle. but if you using haoracle.sh shutdown it means shutdown immediate.