- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Monitor Database
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
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
тАО01-02-2005 07:37 PM
тАО01-02-2005 07:37 PM
Monitor Database
I want to shutdown oracle database within the menu. There are two database running ORACLE_SID/ORACLE_SID1. For ORACLE_SID it is working ok, how do I define for ORACLE_SID1 in my script.
Thanks and regards
DB_processes=`ps -ef |grep -c $ORACLE_SID`
if [ $DB_processes -gt 10 ] ; then
echo "\n\t $ORACLE_SID Database is Running Now "
echo "\n\t You cannot Shutdown the system while Database is running.."
echo "\n\t First Shutdown the Database.."
- Tags:
- Oracle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2005 08:01 PM
тАО01-02-2005 08:01 PM
Re: Monitor Database
********************************************
DB_processes=`ps -ef |grep -c $ORACLE_SID`
DB_processes1=`ps -ef |grep -c $ORACLE_SID1`
if [ $DB_processes -gt 10 -a $DB_processes1 -gt 10 ]
then
echo "\n\t $ORACLE_SID Database & ORACLE_SID/ORACLE_SID is Running Now "
echo "\n\t You cannot Shutdown the system while Database is running.."
echo "\n\t First Shutdown the Database.."
*********************************************
Hope this helps
--
M
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2005 08:16 PM
тАО01-02-2005 08:16 PM
Re: Monitor Database
if [ $DB_processes -gt 10 -a $DB_processes1 -gt 10 ]
by this one :
if [ $DB_processes -gt 10 -o $DB_processes1 -gt 10 ]
One more point : better than counting processes like that would be to look at one background process. For example, monitoring smon process should be ok.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2005 08:45 PM
тАО01-02-2005 08:45 PM
Re: Monitor Database
http://www.orafaq.com/scripts/index.htm
Has other options to do this
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2005 09:23 PM
тАО01-02-2005 09:23 PM
Re: Monitor Database
Thanks Michael/Fred for your assistance. It is working perfectly.
Thanks again.