In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article will explain in detail how to clean up and shut down listener log. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have some understanding of the relevant knowledge after reading this article.
By default, listener turns on log. In previous versions, if listener.log was greater than 2GB, it might cause listener to fail to respond to new connection requests.
Today, some netizens in the QQ group simply found that the space was not released through m listener.log, and finally solved it by restarting monitoring and instances (RAC environment). In fact, this is totally unnecessary.
So how should we properly clean up the listener log?
There are 2 ways:
1: violence point, direct cat / dev/null > listener.log
2: general approach: remove the listener.log by briefly closing the log of listener, and then turn on log.
LSNRCTL > help set
The following operations are available after set
An asterisk (*) denotes a modifier or extended command:
Password rawmode
Displaymode trc_file
Trc_directory trc_level
Log_file log_directory
Log_status current_listener
Inbound_connect_timeout startup_waittime
Save_config_on_stop dynamic_registration
Enable_global_dynamic_endpoint connection_rate_limit
LSNRCTL > set log_status off
Connecting to (DESCRIPTION= (ADDRESS= (PROTOCOL=TCP) (HOST=x.y.z.q) (PORT=1521)
LISTENER parameter "log_status" set to OFF
The command completed successfully
$> cd $LOGDIR
$> mv listener.log / / listener.log.bak
LSNRCTL > set log_status on
In fact, if you do not care the connection, you can turn off listner log.
It can be done in two ways:
1:LSNRCTL > set log_status off
2: modify listener.log directly, add LOGGING_LISTENER = OFF, and then execute lsnrctl reload or simply restart listener.
On how to clean up and close the listener log to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.