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: Mark Leith <mark_at_cool-tools.co.uk>
Date: Wed, 21 Feb 2001 09:55:32 -0800
Message-ID: <F001.002B996C.20010221072118@fatcity.com>

how about a script that simply does a connect dummy/user and issues a select ping from dual;

This way, you are connecting to the database (through the listener) and you even know the database is up..

Nothing fancy, no bells and whistles..

HTH Mark

-----Original Message-----
Maheswara
Sent: Wednesday, February 21, 2001 02:11 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: Mark Leith
  INET: mark_at_cool-tools.co.uk

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 - 11:55:32 CST

Original text of this message

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