Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 29884 invoked from network); 10 Oct 2007 18:00:39 -0500
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by 69.64.49.119 with SMTP; 10 Oct 2007 18:00:39 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 66FB9795427;
 Wed, 10 Oct 2007 19:00:39 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 12298-08; Wed, 10 Oct 2007 19:00:39 -0400 (EDT)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id D2244794C20;
 Wed, 10 Oct 2007 19:00:38 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Wed, 10 Oct 2007 18:14:40 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 92738794818
 for <oracle-l@freelists.org>; Wed, 10 Oct 2007 18:14:40 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 20713-04 for <oracle-l@freelists.org>;
 Wed, 10 Oct 2007 18:14:40 -0400 (EDT)
Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.238])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 0C374794DFC
 for <oracle-l@freelists.org>; Wed, 10 Oct 2007 18:14:34 -0400 (EDT)
Received: by nz-out-0506.google.com with SMTP id s18so280177nze
        for <oracle-l@freelists.org>; Wed, 10 Oct 2007 15:14:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=beta;
        h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references;
        bh=BTNHgBxama+xxIysXH7npVd2Oiv2G068qcIDKc33VTQ=;
        b=eFOg05on9PCXLgS3xsndJxvxtGEX3E1+mOEVTLmMGxMSb0G4C9wQkz+dtMyZNhwPOw4rRmRyPxlzONWxNWwGhcb07Z8Xbfo9f692E63AOaX/PtAp9UBoV3xJbkxV/0zats8RBAb/w2NOdcX+eMzTj7WA6tC1QquibTd7PzekN3s=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=beta;
        h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references;
        b=TS2rPT1EQj1V5Tn3+1G7warH1M6048NDeV97LeRHFKD2OiOC9XSgPdgixHEGfDoeIhFdHRh1hsInXsPg25rs3nQgJkWK8sPqrFnTbN48eA80fw5+9gtonYo+aZuAAOaWPy0/PACMOc3aO9OyFqGjJE7SWTs0rAQWP5A/s9KSlQc=
Received: by 10.142.112.5 with SMTP id k5mr425987wfc.1192054469093;
        Wed, 10 Oct 2007 15:14:29 -0700 (PDT)
Received: by 10.142.103.9 with HTTP; Wed, 10 Oct 2007 15:14:29 -0700 (PDT)
Message-ID: <a85d265d0710101514g14c370e3v4335c2b5aa15ed29@mail.gmail.com>
Date: Wed, 10 Oct 2007 18:14:29 -0400
From: "arun chakrapani rao" <arunchakrapanirao@gmail.com>
To: jkstill@gmail.com
Subject: Re: lsnrctl pwd in script
Cc: joe_dba@hotmail.com, oracle-l@freelists.org
In-Reply-To: <bf46380710101134h1daac5dj1d7f3321842664aa@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_11118_18865568.1192054469087"
References: <BLU108-W24F10EACF1CC56EF9E20E997A60@phx.gbl>
	 <bf46380710101134h1daac5dj1d7f3321842664aa@mail.gmail.com>
X-archive-position: 2261
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: arunchakrapanirao@gmail.com
Precedence: normal
Reply-to: arunchakrapanirao@gmail.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain
------=_Part_11118_18865568.1192054469087
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Thanks for this input.
I was looking for a way to move my listener logs instead of doing a dev null
everytime before copying it across.
Was wondering how to get this done.
this helps me a lot.
thanks
Arun



On 10/10/07, Jared Still <jkstill@gmail.com> wrote:
>
>
> On 10/10/07, Joe Smith <joe_dba@hotmail.com> wrote:
> >
> >  Has anybody scripted out changing the LISTENER password and got it to
> > work?
> >
> > I have tried a number of ways  and still get errors.  I can do it by
> > hand. So, I know it works.
> >
> > ${ORACLE_HOME}/bin/lsnrctl <<EOF
> > set current_listener LISTENER
> > start
> > change_password
> > ${PASSWORD}
> > ${PASSWORD}
> > ${PASSWORD}
> > save_config
> > EOF
> >
> >
> That will not work from a shell script.
>
> The EOF operator allows the shell to take input from the script (a 'here'
> document)
> but does not allow passing data to an interactive command, which is what
> the
> change_password command is.
>
> The EOF redirects STDIN from the script, but the change_password command
> does
> not read STDIN, it reads from a terminal. (unix experts feel free to
> clarify or correct
> this.  This means you Tim G. :)
>
> There are packages designed to mimic interactive input to make this kind
> of thing possible.
> Expect was originally written in TCL.  There is also a Perl version, an
> example of which is
> provided as a text attachment.
>
> I just tested this on an 8i listener, worked fine.
>
> The script requires Perl (of course) and the Expect.pm module.
>
> --
> Jared Still
> Certifiable Oracle DBA and Part Time Perl Evangelist
>
>
>


-- 
thanks
Arun

------=_Part_11118_18865568.1192054469087
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Thanks for this input.<br>
I was looking for a way to move my listener logs instead of doing a dev null everytime before copying it across.<br>
Was wondering how to get this done.<br>this helps me a lot.<br>
thanks<br>
Arun<br><br><br><br><div><span class="gmail_quote">On 10/10/07, <b class="gmail_sendername">Jared Still</b> &lt;<a href="mailto:jkstill@gmail.com">jkstill@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<span class="q"><br><div><span class="gmail_quote">On 10/10/07, <b class="gmail_sendername">Joe Smith</b> &lt;<a href="mailto:joe_dba@hotmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">joe_dba@hotmail.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div>
Has anybody scripted out changing the LISTENER password and got it to work?<br>
&nbsp;<br>
I have tried a number of ways &nbsp;and still get errors.&nbsp; I can do it by hand. So, I know it works.<br>&nbsp;<br>
${ORACLE_HOME}/bin/lsnrctl &lt;&lt;EOF<br>set current_listener LISTENER<br>start<br>change_password<br>${PASSWORD}<br>${PASSWORD}<br>${PASSWORD}<br>save_config<br>EOF<br>
<br></div></blockquote></div><br></span>That will not work from a shell script.<br><br>The EOF operator allows the shell to take input from the script (a &#39;here&#39; document)<br>but does not allow passing data to an interactive command, which is what the
<br>change_password command is.<br><br>The EOF redirects STDIN from the script, but the change_password command does<br>not read STDIN, it reads from a terminal. (unix experts feel free to clarify or correct <br>this.&nbsp; This means you Tim G. :)
<br><br>There are packages designed to mimic interactive input to make this kind of thing possible.<br>Expect was originally written in TCL.&nbsp; There is also a Perl version, an example of which is<br>provided as a text attachment.
<br><br>I just tested this on an 8i listener, worked fine. <br><br>The script requires Perl (of course) and the <a href="http://Expect.pm" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Expect.pm</a>
 module.<br><span class="sg"><br>-- <br>Jared Still<br>Certifiable Oracle DBA and Part Time Perl Evangelist
<br><br>
</span><br clear="all"></blockquote></div><br><br clear="all"><br>-- <br>thanks<br>Arun

------=_Part_11118_18865568.1192054469087--
--
http://www.freelists.org/webpage/oracle-l


