- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- DB monitor 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
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
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
тАО12-26-2006 09:15 PM
тАО12-26-2006 09:15 PM
I need to put in place a script to monitor:
1. if the databse is up and running
2. if the listener is up and running
3. to how tablepscae over a passed percentage
I go back to perform some DBA activities and I'm quite rusty with new feature in 9i as lke as autoextend and so on.
Someone do already have something?
TIA.
Happy 2007!
Art
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2006 09:28 PM
тАО12-26-2006 09:28 PM
Re: DB monitor script
you don't state your preferred solution (shell,perl,C etc...) or database type (Oracle, Sybase...), so here a few starters:
1. and 2. http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=813741
3.
You can modify:
http://www.oracle.com/technology/oramag/code/tips2006/050106.html
or
http://forums.oracle.com/forums/thread.jspa?messageID=1475295шЛЯ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2006 10:04 PM
тАО12-26-2006 10:04 PM
Re: DB monitor script
1:
check wheter the db is down:
ps -ef | grep ora_pmon_${ORACLE_SID}$
otherwise
select status from v$instance
2:
lsnrctl status
3:
i wouldn't look for the percentage. the difference of a 100MB tablespace and a 200GB tablespace is too much if you look for the percentage. i have a query with section --> see attachement
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2006 11:40 PM
тАО12-26-2006 11:40 PM
Solution1) # cat check_pmon.sh
#!/usr/bin/sh
[[ -z "$(UNIX95= ps -C ora_pmon_
exit 0
2) # cat check_pmon.sh
#!/usr/bin/sh
[[ -z "$(UNIX95= ps -C tnslsnr -o pid=)" ]] && mailx -m -s "tnslsnr is not running!" your@email.addr < /dev/null
exit 0
3) See 'free.sql' located on this page:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:438818052470
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2007 12:05 AM
тАО01-02-2007 12:05 AM