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函式
- Msfconsole中set payload命令最新改進
- Oracle OCP(44):LSNRCTLOracle
- 翻譯:SET PASSWORD語句(已提交到MariaDB官方手冊)
- Redis 中的 set 和 sorted set 如何使用,原始碼實現分析Redis原始碼
- 【PROFILE】PASSWORD_REUSE_TIME和PASSWORD_REUSE_MAX引數在Oracle不同版本中的差別Oracle
- [20211020]奇怪lsnrctl status顯示.txt
- JavaScript中的new map()和new set()使用詳細(new map()和new set()的區別)JavaScript
- Set 和Map
- dict和set
- linux中file命令和find命令Linux
- python:get和setPython
- Set<String>和JTextField
- oracle 資料庫lsnrctl監聽的日誌路徑和trace檔案Oracle資料庫
- alter system set event和set events的區別
- 解決安裝Redis之後設定密碼,報(error) ERR Client sent AUTH, but no password is setRedis密碼Errorclient
- Set介面和常用方法
- 訓練集(train set),驗證集(validation set)和測試集(test set)AI
- Linux系統中的管道命令、grep命令、sed命令和awk命令Linux
- redis--概述,下載&安裝,資料結構,命令操作--string&hash,list,set&sorted set,通用命令Redis資料結構
- python中的list,tuple,set和dict(參考python文件)Python
- Linux中dir和dirname命令Linux
- Redis 基本資料型別(Set) 的操作命令Redis資料型別
- no-wwwtl622com17008768000-password never prompt for password
- Redis系列(十一):資料結構Set原始碼解析和SADD、SINTER、SDIFF、SUNION、SPOP命令Redis資料結構原始碼
- 初學 PHP __set ( ) 和 __ get ( )PHP
- map和set對vector排序排序
- Redis 中 Sorted-Set時間複雜度和實戰Redis時間複雜度
- Redis 中 set 和 hset 有什麼不同,各自使用場景Redis
- map、unordered_map、set 和 unordered_set的小介紹
- shell中set指令的用法
- iOS Password AutoFilliOS
- Password Storage - UserDetailsAI
- MySQL 裡的 find_in_set () 和 in () 和 likeMySql
- C#中類的屬性訪問器--get和set分析C#
- Linux中內部命令和外部命令如何區分?Linux
- 504.3 Password and Access Attacks 密碼和訪問攻擊密碼
- Set和Map資料結構。資料結構
- 草根學Python(四) Dict 和 SetPython