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: shutdown password protected listener

RE: shutdown password protected listener

From: Kerber, Andrew <Andrew.Kerber_at_umb.com>
Date: Tue, 2 Jan 2007 15:23:18 -0600
Message-ID: <D40740337A3B524FA81DB598D2D7EBB305776FD7@x6009a.umb.corp.umb.com>


Try putting the listener name in the command line,

su - oracle -c "/oracle_home/bin/lsnrctl stop LISTENER_ORCL"

Andrew W. Kerber
Oracle DBA
UMB "If at first you dont succeed, dont take up skydiving"

-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Joe Smith Sent: Tuesday, January 02, 2007 3:19 PM
To: oracle-l_at_freelists.org
Subject: shutdown password protected listener

How do I shutdown the LISTENER with a password in a script. I have this

default script called "oracle".

It starts and stops the databases and listener. When I changed the default
listener settings for security reasons starting the listener is easy, it

does not require the password. However shutting down down the listener is
the problem.

PWD=${2} case "$1" in

'start')

                su - oracle -c "/oracle_home/bin/lsnrctl start LISTENER_ORCL"
'stop')

                su - oracle -c "/oracle_home/bin/lsnrctl set current_listener
LISTENER_ORCL"
                su - oracle -c "/oracle_home/bin/lsnrctl set password ${2}"

                su - oracle -c "/oracle_home/bin/lsnrctl stop"

this last command fails. It points to the default listener LISTENER. Not
the correct listener,
i.e. LISTENER_ORCL.

How do I shutdown a password protected listener thru a shell script?

thanks.



Fixing up the home? Live Search can help http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&loca le=en-US&source=hmemailtaglinenov06&FORM=WLMTAG
--
http://www.freelists.org/webpage/oracle-l



------------------------------------------------------------------------------
NOTICE:  This electronic mail message and any attached files are confidential.  The information is exclusively for the use of the individual or entity intended as the recipient.  If you are not the intended recipient, any use, copying, printing, reviewing, retention, disclosure, distribution or forwarding of the message or any attached file is not authorized and is strictly prohibited.  If you have received this electronic mail message in error, please advise the sender by reply electronic mail immediately and permanently delete the original transmission, any attachments and any copies of this message from your computer system. Thank you.

==============================================================================

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Jan 02 2007 - 15:23:18 CST

Original text of this message

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