The following was taken from "dbcontrol" available at http://www.appsdba.com/scripts_unix.htm#dbcontrol.
Assumes that the Oracle environment has been set, and that a listener alias is specified (normally it's LISTENER) and that the password is set in the variable lsnpwd. Note that there are differences between using the clear text password and the encrypted password. For more details look at http://www.appsdba.com/dbconfig_network.htm.
$ORACLE_HOME/bin/lsnrctl <<-EON > $CMDLOG set current_listener ${LALIAS} set password $lsnpwd stop ${LALIAS} exit EON # Andy Rivenes Email: arivenes@xxxxxxxx -- //www.freelists.org/webpage/oracle-l