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: Unix script to stop pwd-protected listener

Re: Unix script to stop pwd-protected listener

From: Michal Zaschke <zaschke_at_suas.cz>
Date: Fri, 11 Oct 2002 05:13:25 -0800
Message-ID: <F001.004E69A2.20021011051325@fatcity.com>


Hi,

we have lsnrctl with 750 and listener.ora with 600 permissions and everything runs fine. For "job stopping" process you can then use the encrypted password wirtten in listener.ora.

HTH,
         Mike

Long.Nguyen_at_csiro.au wrote:
>
> Hi,
> Solaris 8, Oracle 9i listener
>
> It seems that anyone who has a login on Solaris can shut the listener down. I have tried with a non-dba userid and could stop the listener.
>
> The default file permission for ORACLE_HOME/bin/lsnrctl is 751, and for ORACLE_HOME/network/admin/listener.ora file is 644. I asked Oracle if I could change them to 750 and 640 respectively and they said that you should not change the
> defaults since they are verified against the system.
>
> So I password protected it. However to stop a password-protect listener you need to do the following interactively: run lsnrctl, issue "set password" command, put in the password, issue "stop", issue "exit".
>
> I need to implement this stop in a Shell script so that I can call the script at the server reboot time. Do you know how to supply a password to lsnrctl set password command in a script? Have attempted with the script but have not got it
> worked yet.
>
> Thanks
> Long
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author:
> INET: Long.Nguyen_at_csiro.au
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> 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).

-- 
 Ing. Michal Zaschke
   DB Administrator
Sokolovska uhelna, a.s.
phone: +420 352 465417
e-mail: zaschke_at_suas.cz
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Michal Zaschke
  INET: zaschke_at_suas.cz

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Fri Oct 11 2002 - 08:13:25 CDT

Original text of this message

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