11g下给监听设置口令 三
更新时间: 2015-07-07 13:31
给监听设置口令
listener的密码策略对start无效,目的是防止恶意stop(start ,如果有在运行,则不成功,所以也就不需要保护了)
LSNRCTL> set current_listener listener<-- 设置当前监听器的配置名称
Current Listener is listener
LSNRCTL> change_password
Old password: <原来的口令> <-- 如果原来没有设置口令就直接回车,否则输入原来的口令
New password: <新口令>
Reenter new password: <新口令>
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.133.120)(PORT=1521)))
Password changed for listener
The command completed successfully
LSNRCTL> set password
Password: <新口令>
The command completed successfully
LSNRCTL> save_config(此步重要,保存当前设置)
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.133.120)(PORT=1521)))
Saved LISTENER configuration parameters.
Listener Parameter File /oracle/app/oracle/product/11.2.0.1/db_1/network/admin/listener.ora
Old Parameter File /oracle/app/oracle/product/11.2.0.1/db_1/network/admin/listener.bak
The command completed successfully
LSNRCTL>