lsnrctl中,SET PASSWORD和CHANGE_PASSWORD命令
CHANGE_PASSWORD
Use the CHANGE_PASSWORD command to establish an encrypted password or change an encrypted password set with the PASSWORDS_listener_name parameter in the listener.ora file.
CHANGE_PASSWORD命令用於建立和修改密碼!
如建立口令的簡單過程如下:
LSNRCTL> change_password
Old password:
New password:
Reenter new password:
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=liuxiaohui)(PORT=1521)))
Password changed for LISTENER
The command completed successfully
LSNRCTL> save_config
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=liuxiaohui)(PORT=1521)))
Saved LISTENER configuration parameters.
Listener Parameter File E:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Old Parameter File E:\oracle\product\10.2.0\db_1\network\admin\listener.bak
The command completed successfully
--===============================================================
修改口令:
LSNRCTL> set password
Password:
The command completed successfully
LSNRCTL> change_password
Old password:
New password:
Reenter new password:
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=liuxiaohui)(PORT=1521)))
Password changed for LISTENER
The command completed successfully
LSNRCTL> save_config
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=liuxiaohui)(PORT=1521)))
Saved LISTENER configuration parameters.
Listener Parameter File E:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Old Parameter File E:\oracle\product\10.2.0\db_1\network\admin\listener.bak
The command completed successfully
SET PASSWORD
Use the command SET PASSWORD prior to privileged Listener Control utility commands, such as SAVE_CONFIG and STOP.
The password entered should match the one established for the PASSWORDS_listener_name parameter in the listener.ora file or set by the CHANGE_PASSWORD command.
SET PASSWORD命令用於設定當前環境密碼,以便能夠執行如SAVE_CONFIG和STOP這類重要操作。這裡輸入的密碼要和listener.ora檔案中PASSWORDS_listener_name引數指定的密碼一致,或者和CHANGE_PASSWORD命令設定的密碼一致。
這樣做的目的是保護LISTENER不被非法的關閉,而不是限制非法使用者啟用監聽。如,當其他使用者、或遠端使用者關閉LISTENER時,必須SET PASSWORD,才能執行STOP,否則會收到錯誤:
[oracle@boypoo2
~]$ lsnrctl
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 09-OCT-2006 22:02:22
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Welcome to LSNRCTL, type "help" for information.
LSNRCTL> set current_listener listener1
Current Listener is listener1
LSNRCTL> stop
Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.100)(PORT=1521)))
TNS-01169: The listener has not recognized the
password
TNS-01189: The listener could not authenticate the user
LSNRCTL>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25744374/viewspace-732001/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Django中的函式make_password、set_password和check_passwordDjango函式
- 為oracle listener set passwordOracle
- 【Oracle】lsnrctl reload 命令操作Oracle
- 【Oracle】lsnrctl reload 命令簡介Oracle
- No need to set a listener password in ORACLE 10GOracle 10g
- 3 、lsnrctl> reload L1命令
- shell中set命令詳解(轉)
- javascript中的Map和SetJavaScript
- RAC中lsnrctl和srvctl的區別(監聽狀態異常)
- SQL*PLUS命令, set命令大全SQL
- set -o vi 命令
- MySQL中ENMU和SET的使用MySql
- [備忘]Redis執行出現Client sent AUTH, but no password is setRedisclient
- 通過telnet登入交換機:password required, but none setUINone
- LSNRCTL start error!Error
- mysql 中set和enum的區別MySql
- Oracle SET 命令總結Oracle
- oracle set 使用命令Oracle
- sqlplus set命令SQL
- Redis 中的 set 和 sorted set 如何使用,原始碼實現分析Redis原始碼
- Msfconsole中set payload命令最新改進
- RMAN說,我能備份(16)--RMAN中的SET命令
- RMAN中SET命令的常見用法的小結 (ZT)
- 【PROFILE】PASSWORD_REUSE_TIME和PASSWORD_REUSE_MAX引數在Oracle不同版本中的差別Oracle
- 翻譯:SET PASSWORD語句(已提交到MariaDB官方手冊)
- Oracle OCP(44):LSNRCTLOracle
- Bash 指令碼 set 命令教程指令碼
- 基本命令& network set
- sqlplus set命令使用SQL
- Set autotrace命令及解釋
- JavaScript中的new map()和new set()使用詳細(new map()和new set()的區別)JavaScript
- remote_listener和listener passwordREM
- Oracle LISTENER監聽檔案引數詳解及Lsnrctl命令綜述Oracle
- 理解 oracle 的 “lsnrctl status”Oracle
- java中list、set和map 的區別(轉)Java
- BASH shell set命令詳解(轉)
- linux中file命令和find命令Linux
- 理解 oracle 的 “lsnrctl status”(ZT)Oracle