很多人都知道
相關示例
LSNRCTL for
Copyright (c)
正在連接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=
(CONNECT_DATA=(SERVICE_NAME=eygle)))
命令執行成功
大家可以發現
(ARGUMENTS=
為了更好的保證監聽器的安全
LSNRCTL for Linux: Version
Copyright (c)
Welcome to LSNRCTL
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=
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=
Saved LISTENER configuration parameters
Listener Parameter File /opt/oracle/product/
Old Parameter File /opt/oracle/product/
The command completed successfully
在我們設置密碼後
D:\>lsnrctl stop eygle
LSNRCTL for
Copyright (c)
正在連接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=
(PORT=
TNS
注意
Password:
The command completed successfully
LSNRCTL> stop
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=
The command completed successfully
LSNRCTL> start
Starting /opt/oracle/product/
TNSLSNR for Linux: Version
System parameter file is /opt/oracle/product/
Log messages written to /opt/oracle/product/
Trace information written to /opt/oracle/product/
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version
Start Date
Uptime
Trace Level support
Security ON
SNMP OFF
Listener Parameter File /opt/oracle/product/
Listener Log File /opt/oracle/product/
Listener Trace File /opt/oracle/product/
Listening Endpoints Summary
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=
Services Summary
Service
Instance
Service
Instance
The command completed successfully
另外
From:http://tw.wingwit.com/Article/program/Oracle/201311/17148.html