Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: How to find a listener service without running lsnrctl servic

RE: How to find a listener service without running lsnrctl servic

From: Smith, Ron L. <rlsmith_at_kmg.com>
Date: Wed, 21 Feb 2001 10:07:47 -0800
Message-ID: <F001.002B981C.20010221062627@fatcity.com>

I believe what Rao meant was to do a 'PS' command and grep for the listener. We found that for some reason this fails every once in a while. Instead, we put a script in place that actually issues a select on V$Database. This way we know the listener and database are up and we are able to connect.

Ron Smith
Database Administration
rlsmith_at_kmg.com

-----Original Message-----
Sent: Wednesday, February 21, 2001 8:11 AM To: Multiple recipients of list ORACLE-L servic

Hi Djordje,

Thank you for the suggestion.

Doing grep for a specific service on an output produced by lsnrctl services, yes, I could get the answer. However, I am trying to create a shell script through which the user will find whether a specific listener service is up or not. The problem is I do not want to give the password of listener. Also, by greping the output of lsnrctl --- this output could have been produced some time back but at the time the user is querying the service might be down.

Please suggest a way to do the above.

Thanks,

Rao
Maheswara.Rao_at_SunGardP3.com

-----Original Message-----
Sent: Tuesday, February 20, 2001 6:50 PM To: Multiple recipients of list ORACLE-L

Why not running it from a script, and grep and awk from output wht you need to see ?

Djordje

> Hi DBAs,
>
> I would like to find out whether a specific listener service is up or not
without running the command ---> lsnrctl services. Is there any way I can do this through a shell script or unix command?
>
> My environment : Solaris 2.7 : Oracle 8.0.4
>
> Thanks for your help,
>
> Rao
>
> Maheswara.Rao_at_SunGardP3.com
>
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rao, Maheswara
  INET: Maheswara.Rao_at_Sungardp3.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Smith, Ron L.
  INET: rlsmith_at_kmg.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed Feb 21 2001 - 12:07:47 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US