06 agosto 2008

shutdown listener with password

#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# funct_shutdown_lsnr(): Shutdown Listener
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
funct_shutdown_lsnr(){
ENCRYPTED_PASSWORD=`grep -i PASSWORDS_LISTENER_${ORA_SID} ${ORACLE_HOME}/network/admin/listener.ora | awk -F='{print $2}' -`


${ORACLE_HOME}/bin/lsnrctl << face="courier new">set current_listener LISTENER_${ORA_SID}
set password $ENCRYPTED_PASSWORD
stop
EOF
}

No hay comentarios.: