Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: listener status checking
Try this. No warranties implied. I wrote it last year and all it does is login using a valid tnsnames.ora entry and does a:
SELECT INSTANCE_NAME, TO_CHAR(SYSDATE, 'YYYY-MM-DD HH24:MI:SS') FROM V$INSTANCE; And returns the results. It is written in Perl and requires the DBD::Oracle module.
Run it as follows:
dbping -i mydb -u system -p manager
-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org]
On Behalf Of Kerber, Andrew W.
Sent: Wednesday, June 13, 2007 10:59 AM
To: oracle-l_at_freelists.org
Subject: listener status checking
Hi, we have been using bmc patrol to monitor instance and listener status, but it has reached the point where the number of false alarms from patrol has made it unusable for this.
Does anyone have a shell script or even a stored procedure that uses external table definitions that will read the listener.ora, and preferably connect to each database using each listener, or even do a tnsping on each listener to verify that it is up? We have solaris and aix versions of Unix. Oracle versions run from 8.1.7 to 10.2.0.3
Andrew W. Kerber
Senior Oracle DBA
UMB
"If at first you dont succeed dont take up skydiving."
--
http://www.freelists.org/webpage/oracle-l
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.8.15/847 - Release Date: 6/12/2007
9:42 PM
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.8.15/847 - Release Date: 6/12/2007
9:42 PM
--
http://www.freelists.org/webpage/oracle-l
![]() |
![]() |