停止监听服务进程记录日志
[oracle@strong ~]$ lsnrctl set log_status off
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 04-MAY-2023 15:17:13
Copyright (c) 1991, 2019, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=strong)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
LISTENER parameter "log_status" set to OFF
The command completed successfully
保存配置信息
[oracle@strong ~]$ lsnrctl save_config
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 04-MAY-2023 15:17:43
Copyright (c) 1991, 2019, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=strong)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
Saved LISTENER configuration parameters.
Listener Parameter File /u01/app/oracle/product/19.3.0/db_1/network/admin/listener.ora
Old Parameter File /u01/app/oracle/product/19.3.0/db_1/network/admin/listener.bak
The command completed successfully
[oracle@strong ~]$
修改后listener.ora文件中就会多一条配置:LOGGING_LISTENER = OFF
[oracle@strong admin]$ more listener.ora
# listener.ora Network Configuration File: /u01/app/oracle/product/19.3.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.