- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Oracle control script
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
Forums
Discussions
Discussions
Discussions
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
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
07-16-2002 12:26 AM
07-16-2002 12:26 AM
in the Oracle control script of my HA cluster, ther is the halt function for the Ora application with the "shutdown abort" command.
Can be this substituted with "shutdown immediate" command?
When the halt function is recalled?
Thanks a lot
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 06:35 AM
07-16-2002 06:35 AM
Re: Oracle control script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 08:59 AM
07-16-2002 08:59 AM
Solutionsorry to contradict, but there are situations, where a shutdown immediate will not be able to shut down the database.
So even if a HA detects there is need to switchover and decides for a shutdown, it might be that the reason for the switchover will not allow to do a shutdown immediate.
Example: If you loose the disk-controller that writes to the rollback tablespace, a shutdown immediate is not possible, because a shutdown immediate will not be able to do the rollback for the transactions to be closed. The only way out is a shutdown abort and do the rollback upon instance startup on the failover node.
Although I'd prefer to do this only in case of a switch. For administration purposes I suggest to have additional scripts to do a shutdown immediate.
Hope this helps
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 11:11 PM
07-16-2002 11:11 PM
Re: Oracle control script
shutdown abort is only a last resort.
eg.
# call shutdown script
$MYLOCALBIN/oracle_shutdown $ORACLE_SID immediate &
sleep 120
# check if shutdown script still running
ps -ef | grep $MYLOCALBIN/oracle_shutdown | grep -v grep
# if it is call with abort sledgehammer
if [ $? -ne 0 ]
then
$MYLOCALBIN/oracle_shutdown $ORACLE_SID abort
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 11:27 PM
07-16-2002 11:27 PM
Re: Oracle control script
The reasoning for this treatment is seen in the accompanying toolkit README
file:
# Stops the database with a "shutdown abort" versus use of the command
# call "ORACLE_TEST0.sh shutdown" which uses "shutdown immediate" for a clean
# database shutdown. Stop must use "abort" to guarantee the database stops
# in time to be able to startup on another node.
Should a graceful shutdown of Oracle be required, the Oracle.sh script can
be exercised using the "shutdown" option. Prior to this however, package
switching for the Oracle package must be disabled. The "shutdown"
performs a "shutdown immediate", terminating all Oracle PIDs the monitor
version of the script is watching for. When this happens, it will be
interpreted as a package failure, and ServiceGuard will attempt to move
the package to the adoptive node. A sample cmmodpkg command:
# cmmodpkg -d ora_pkg
End quote
Essentially, what would possibly happen is that your package may fail to switch and start in the event of a failure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2006 04:09 AM
02-10-2006 04:09 AM
Re: Oracle control script
To avoid from control script execute "fuser -k" and kill oracle process after try "shutdown immediate" without finish sucessfully, I made this changes:
immediate)
shutdown_oracle immediate
check_status=$?
if [ $check_status -ne 0 ] ; then
shutdown_oracle abort
check_status=$?
fi
return $check_status
;;