HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- service to monitor oracle instance in package
Operating System - HP-UX
1837305
Members
3471
Online
110115
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-10-2007 02:36 AM
07-10-2007 02:36 AM
I am configuring the package to start and stop the oracle instance in a 2 node mc service guard. I don't have the extra toolkit installed.
Initially, I just leave those service entry empty like this:
SERVICE_NAME[0]=ora_pkg
SERVICE_CMD[0]=””
SERVICE_RESTART[0]=””
then put the db start and stop scripts into the function customer_defined_run_cmds and function customer_defined_halt_cmds respectively.
then I find out my db started then stopped immediately and my package started and halted immediately. After I read through the forums, I realized that I need to put monitoring script into SERVICE_CMD to keep monitoring the db instance.
Could someone explain to me why it behaved like that? If possible, any one can provide me a simple monitoring script for the oracle instance?
thanks a lot
Initially, I just leave those service entry empty like this:
SERVICE_NAME[0]=ora_pkg
SERVICE_CMD[0]=””
SERVICE_RESTART[0]=””
then put the db start and stop scripts into the function customer_defined_run_cmds and function customer_defined_halt_cmds respectively.
then I find out my db started then stopped immediately and my package started and halted immediately. After I read through the forums, I realized that I need to put monitoring script into SERVICE_CMD to keep monitoring the db instance.
Could someone explain to me why it behaved like that? If possible, any one can provide me a simple monitoring script for the oracle instance?
thanks a lot
wang & wang
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2007 03:09 AM
07-10-2007 03:09 AM
Solution
Shalom,
Your entries for SERVICE_CMD and SERVICE_RESTART have unreadable characters on the end.
Your package behaved like it did due to an error in the start and stop commands. Probably placement, you probably have the start and stop running sequentially.
I'd suggest uploading the package control script.
To properly monitor your database you have two choices:
Bad choice: process monitoring. A simple ps -fu oracle or ps -ef | grep oracle
Why is it a bad choice? Because the database can halt and leave the processes running.
Better choice: A sql script run in batch mode to log onto the database with sqlplus and do a simple read of a table, even dual is sufficient.
If the read suceeds the database is running.
You need to watch the frequency with which you run it because the processes can back up causing a performance issue.
These links may be of help in creating or finding decent monitor code:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1000669
http://www.education.hp.com/datasheets/h4310s.pdf
http://techsolutions.hp.com/en/T1859-90043/ch03s19.html
SEP
Your entries for SERVICE_CMD and SERVICE_RESTART have unreadable characters on the end.
Your package behaved like it did due to an error in the start and stop commands. Probably placement, you probably have the start and stop running sequentially.
I'd suggest uploading the package control script.
To properly monitor your database you have two choices:
Bad choice: process monitoring. A simple ps -fu oracle or ps -ef | grep oracle
Why is it a bad choice? Because the database can halt and leave the processes running.
Better choice: A sql script run in batch mode to log onto the database with sqlplus and do a simple read of a table, even dual is sufficient.
If the read suceeds the database is running.
You need to watch the frequency with which you run it because the processes can back up causing a performance issue.
These links may be of help in creating or finding decent monitor code:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1000669
http://www.education.hp.com/datasheets/h4310s.pdf
http://techsolutions.hp.com/en/T1859-90043/ch03s19.html
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2007 02:37 AM
07-11-2007 02:37 AM
Re: service to monitor oracle instance in package
Protter,
You are right. Once I commented out those service entries, the package works as I expected.
Do you know how this Service_CMD affect the package behavior when it detects that the the db instance is not normal.
thanks,
You are right. Once I commented out those service entries, the package works as I expected.
Do you know how this Service_CMD affect the package behavior when it detects that the the db instance is not normal.
thanks,
wang & wang
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP