- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Serviceguard to monitor Oracle Listener in RAC Con...
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
08-20-2008 11:53 AM
08-20-2008 11:53 AM
Serviceguard to monitor Oracle Listener in RAC Configuration (HP-UX 11.23)
I have a two node HP-UX 11.23 cluster running Serviceguard 11.17, with SGeRAC installed and the Enterprise Cluster Toolkit.
There is a single RAC database running with an instance on each node.
My question is how do I get Servicguard to monitor the listeners on the two nodes (LISTENER_8A and LISTENER_8B) and restart them if they fail?
All I've seen referenced is having a package for each listener, but am uncertain how to set this up.
Would I be better off letting CRS monitor the listeners as Oracle suggests?
Thanks again, and let me know if I've left out any information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2008 12:04 PM
08-20-2008 12:04 PM
Re: Serviceguard to monitor Oracle Listener in RAC Configuration (HP-UX 11.23)
yes, let clusterware monitor them. oracle provide a listener script for clusterware, which restarts the listener if it fail.
script page 22, act_listener.pl:
http://www.oracle.com/technology/products/database/clusterware/pdf/SI_DB_Failover_11g.pdf
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2008 12:06 PM
08-20-2008 12:06 PM
Re: Serviceguard to monitor Oracle Listener in RAC Configuration (HP-UX 11.23)
SERVICE_NAME LISTENER
SERVICE_FAIL_FAST_ENABLED NO
SERVICE_HALT_TIMEOUT 240
In the package script I have the following:
SERVICE_NAME[1]="LISTENER"
SERVICE_CMD[1]="/etc/cmcluster/odsp-cfs/toolkit.sh monitor_listener"
SERVICE_RESTART[1]="-r 2"
When I start up the package, the package log file records this:
########### Node "sodb8a": Starting package at Wed Aug 20 14:02:11 MDT 2008 ###########
Aug 20 14:02:12 - Node "sodb8a" *** /etc/cmcluster/odsp-cfs/toolkit_dbi.sh called with start argument. ***
Aug 20 14:02:12 - Node "sodb8a" : Starting Oracle RAC Instance at Wed Aug 20 14:02:11 MDT 2008
Aug 20 14:02:12 - Node "sodb8a" srvctl start instance -d odsitlab -i odsitlab1 -o open -c "/ as sysdba"
Aug 20 14:02:30 - Node "sodb8a" Successfully started instance.
Aug 20 14:02:30 - Node "sodb8a": Starting service ORACLE_ODS_RAC using
"/etc/cmcluster/odsp-cfs/toolkit_dbi.sh check"
Aug 20 14:02:30 - Node "sodb8a": Starting service LISTENER using
"/etc/cmcluster/odsp-cfs/toolkit.sh monitor_listener"
########### Node "sodb8a": Package start completed at Wed Aug 20 14:02:30 MDT 2008 ###########
Aug 20 14:02:30 - Node "sodb8a" *** /etc/cmcluster/odsp-cfs/toolkit.sh called with monitor_listener argument. ***
Aug 20 14:02:30 - Node "sodb8a" Oracle Listener LISTENER_SODB8A Restart Failed!
Aug 20 14:02:30 - Node "sodb8a" *** /etc/cmcluster/odsp-cfs/toolkit.sh called with monitor_listener argument. ***
Aug 20 14:02:31 - Node "sodb8a" Oracle Listener LISTENER_SODB8A Restart Failed!
Aug 20 14:02:31 - Node "sodb8a" *** /etc/cmcluster/odsp-cfs/toolkit.sh called with monitor_listener argument. ***
Aug 20 14:02:31 - Node "sodb8a" *** /etc/cmcluster/odsp-cfs/toolkit_dbi.sh called with check argument. ***
Aug 20 14:02:31 - Node "sodb8a" Oracle Listener LISTENER_SODB8A Restart Failed!
########### Node "sodb8a": Halting package at Wed Aug 20 14:02:31 MDT 2008 ###########
Aug 20 14:02:31 - Node "sodb8a": Halting service ORACLE_ODS_RAC
Aug 20 14:02:31 - Node "sodb8a": Halting service LISTENER
cmhaltserv: Service name LISTENER is not running.
Aug 20 14:02:32 - Node "sodb8a" *** /etc/cmcluster/odsp-cfs/toolkit_dbi.sh called with stop argument. ***
Aug 20 14:02:32 - Node "sodb8a" : Stopping Oracle RAC Instance at Wed Aug 20 14:02:31 MDT 2008
Aug 20 14:02:32 - Node "sodb8a" srvctl stop instance -d odsitlab -i odsitlab1 -o immediate -c "/ as sysdba"
CSS appears healthy
Aug 20 14:03:03 - Node "sodb8a" Successfully stopped instance.
It appears that the monitor thinks the listener isn't running and attempts to restart it multiple times before halting the package.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2008 12:15 PM
08-20-2008 12:15 PM
Re: Serviceguard to monitor Oracle Listener in RAC Configuration (HP-UX 11.23)
try to debug the toolkit.sh script. to get debug information set "set -x" in the script.
and start it with the "monitor_listener" parameter.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2008 05:24 AM
08-21-2008 05:24 AM
Re: Serviceguard to monitor Oracle Listener in RAC Configuration (HP-UX 11.23)
Aug 20 14:02:30 - Node "sodb8a" Oracle Listener LISTENER_SODB8A Restart Failed!
package config is ok.
All you need to debug the error details in
toolkit.sh script.
If possible can you attach it here..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2008 07:48 AM
08-21-2008 07:48 AM
Re: Serviceguard to monitor Oracle Listener in RAC Configuration (HP-UX 11.23)
Here is the output when I run ./toolkit.sh monitor_listener with the above set.
Thanks
[root@sodb8a]# ./toolkit.sh monitor_listener
+ ACT=monitor_listener
+ PKG_DIR=.
+ HA_SERVER=ORACLE
+ HA_SCRIPT=./haoracle.sh
+ invoke_app
+ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/lbin
+ ORA_ver=9i
+ + hostname
HOST=sodb8a
+ + date
DATE=Wed Aug 20 15:56:52 MDT 2008
+ PKG_DIR=.
+ MAINTENANCE_FILE=./oracle.debug
+ exit_code=0
+ [[ -f ./haoracle.conf ]]
+ . ./haoracle.conf
+ ORACLE_HOME=/u00/oracle/product/10.2.0/db
+ ORACLE_ADMIN=oracle
+ SID_NAME=odsitlab1
+ LISTENER=yes
+ LISTENER_NAME=LISTENER_SODB8A
+ LISTENER_PASS=
+ PFILE=/u00/oracle/product/10.2.0/db/dbs/initodsitlab1.ora
+ set -A MONITOR_PROCESSES
+ MONITOR_PROCESSES[0]=ora_pmon_odsitlab1
+ MONITOR_PROCESSES[1]=ora_dbw0_odsitlab1
+ MONITOR_PROCESSES[2]=ora_ckpt_odsitlab1
+ MONITOR_PROCESSES[3]=ora_smon_odsitlab1
+ MONITOR_PROCESSES[4]=ora_lgwr_odsitlab1
+ MONITOR_PROCESSES[5]=ora_reco_odsitlab1
+ MAINTENANCE_FLAG=yes
+ MONITOR_INTERVAL=30
+ TIME_OUT=30
+ [ -z /u00/oracle/product/10.2.0/db ]
+ [ ! -d /u00/oracle/product/10.2.0/db ]
+ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/lbin:/u00/oracle/product/10.2.0/db/bin:
+ [ -z oracle ]
+ [ -z odsitlab1 ]
+ + check_yes_no LISTENER yes yes
LISTENER=yes
+ check_status=0
+ [ 0 -ne 0 ]
+ [ yes = yes -a -z LISTENER_SODB8A ]
+ [ -z /u00/oracle/product/10.2.0/db/dbs/initodsitlab1.ora ]
+ [ ! -f /u00/oracle/product/10.2.0/db/dbs/initodsitlab1.ora ]
+ + check_yes_no MAINTENANCE_FLAG yes ./oracle.debug
MAINTENANCE_FILE=./oracle.debug
+ check_status=0
+ [ 0 -ne 0 ]
+ [ -z 30 ]
+ [ -z 30 ]
+ log_message *** ./toolkit.sh called with monitor_listener argument. ***
Aug 20 15:56:52 - Node "sodb8a" *** ./toolkit.sh called with monitor_listener argument. ***
+ . ./halistener.mon
+ set -x
+ [ yes = yes ]
+ listener_monitor
Aug 20 15:56:53 - Node "sodb8a" Oracle Listener LISTENER_SODB8A Restart Failed!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2008 08:17 AM
08-21-2008 08:17 AM
Re: Serviceguard to monitor Oracle Listener in RAC Configuration (HP-UX 11.23)
+ [ -z odsitlab1 ]
+ + check_yes_no LISTENER yes yes
LISTENER=yes
+ check_status=0
I thinks "check_yes_no" is a function, please have a look at this function, this sould not return 0.
attach the whole script...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2008 08:29 AM
08-21-2008 08:29 AM
Re: Serviceguard to monitor Oracle Listener in RAC Configuration (HP-UX 11.23)
Here are the 3 scripts that I referenced above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2008 08:45 AM
08-21-2008 08:45 AM
Re: Serviceguard to monitor Oracle Listener in RAC Configuration (HP-UX 11.23)
su - ${ORACLE_ADMIN} -c /usr/bin/sh <
to
su - ${ORACLE_ADMIN} -c /usr/bin/sh <
in halistener.mon
and after starting the package again provide the /tmp/listener_debug.log file.
and check also your listener.ora whether there is a listener configured called LISTENER_SODB8A.
can you manually start the database and listener without starting the package?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2008 09:26 AM
08-21-2008 09:26 AM
Re: Serviceguard to monitor Oracle Listener in RAC Configuration (HP-UX 11.23)
After that when the package would fail, the listener would still be running:
oracle 4561 1 0 15:55:32 ? 0:00 /u00/oracle/product/10.2.0/db/bin/tnslsnr LISTENER_SODB8A -inherit
I can start and stop the database and listener manually outside of the package without a problem.
Attached is the requested .log file.
Thanks for all your help to this point.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2008 12:17 PM
08-21-2008 12:17 PM
Re: Serviceguard to monitor Oracle Listener in RAC Configuration (HP-UX 11.23)
su - ${ORACLE_ADMIN} -c /usr/bin/sh <
in halistener.mon to get more debug infos. and post the log file again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2008 12:36 PM
08-21-2008 12:36 PM
Re: Serviceguard to monitor Oracle Listener in RAC Configuration (HP-UX 11.23)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2008 01:17 PM
08-21-2008 01:17 PM
Re: Serviceguard to monitor Oracle Listener in RAC Configuration (HP-UX 11.23)
function listener_monitor
{
set -x #<--here
local maintenance=0;
if [ -z "$MAINTENANCE_FILE" ] || [ ! -f "$MAINTENANCE_FILE" ]; then
su - ${ORACLE_ADMIN} -c /usr/bin/sh <
set -x #<--here
exit_code=0
export ORACLE_HOME=${ORACLE_HOME}
export ORACLE_SID=${SID_NAME}
then if error occurs provide listener_debug.log and the output of ./toolkit.sh monitor_listener
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2008 01:59 PM
08-21-2008 01:59 PM
Re: Serviceguard to monitor Oracle Listener in RAC Configuration (HP-UX 11.23)
Thanks again for your time and effort on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2008 03:25 AM
08-22-2008 03:25 AM
Re: Serviceguard to monitor Oracle Listener in RAC Configuration (HP-UX 11.23)
Can you copy paste scripts in txt files and attach here as I am not able to open tar file...
I want to debug it at my place...
regds...Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2008 04:33 AM
08-24-2008 04:33 AM
Re: Serviceguard to monitor Oracle Listener in RAC Configuration (HP-UX 11.23)
SERVICE_NAME[1]="LISTENER"
SERVICE_CMD[1]="/etc/cmcluster/odsp-cfs/haoracle.sh monitor_listener"
SERVICE_RESTART[1]="-r 2"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2008 07:05 AM
08-25-2008 07:05 AM
Re: Serviceguard to monitor Oracle Listener in RAC Configuration (HP-UX 11.23)
Sorry I didn't get back earlier, but I had a long weekend. I'm assuming that you were able to open up the .tar, if not let me know. I tried changing it to the haoracle.sh script but the same thing happened.
I opened up a case with HP early last week and they are finally getting back to me, I'll let you know what I find out. In the mean time, any other help is greatly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 08:15 PM
08-28-2008 08:15 PM
Re: Serviceguard to monitor Oracle Listener in RAC Configuration (HP-UX 11.23)
have you heard anything from support yet?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2008 08:06 AM
08-29-2008 08:06 AM
Re: Serviceguard to monitor Oracle Listener in RAC Configuration (HP-UX 11.23)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2008 05:05 PM
09-10-2008 05:05 PM