Step:1
======
Do following steps to implement encrypted listener password.
$ lsnrctl
LSNRCTL> set current_listener LISTENER
LSNRCTL>set save_config_on_stop on
LSNRCTL> change_password
Old password:
New password: e1
Reenter new password: e1
LSNRCTL> set password
Password: e1
LSNRCTL> stop
Step:2
======
Check your listener.ora file
Entries similar to the following should have been added to your listener.ora
automatically.
SAVE_CONFIG_ON_STOP_listener1 = ON
PASSWORDS_listener1 = 2D6C48144CF753AC
Step:3
======
Additionally, to prevent altering the running listener configuration, you can set the following parameter in the listener.ora file:
ADMIN_RESTRICTIONS_listener_name=ON
==========================
Script to stop listener using script.
————————————-
#!/bin/sh
lsnrctl < EOF
set current_listener listener_name
set password encrypted_password
stop
exit
EOF