expect

Setting password for Oracle listener in the script

Friday, March 3rd, 2006

Oracle listener control utility doesn’t allow to set the password non-interactively.
In this case the small Perl script, using Expect, could help.

#!/usr/bin/perl
use Expect;
my $exp = new Expect;
my $command = ‘lsnrctl’;
my $PROMPT=’LSNRCTL>’;

Keep on coding