In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Generally speaking, the log (alter.log listener.log log.xml) of the database cannot be deleted directly. It is best to just empty the content. Here are five ways to empty the log:
The first three better ways:
Method 1:
Cat / dev/null > filename
Example: cd / oracle/app/11.2.0/grid/log/diag/tnslsnr/dbserver1/listener_scan1/trace
Cat / dev/null > listener_scan1.log
Method 2:
: > filename
Method 3:
> filename
The above three ways can empty the file, and the file size is 0
In the following two ways, the text has a "\ 0" and the file size is 1 after emptying.
The last two methods with a file size of 1:
Method 4:
Echo "" > filename
Method 5:
Echo > filename
Example echo > listener.log
Summary:
Using > listener.log is best to remember
Use cat / dev/null > listener_scan1.log to feel the most formal, purely personal feeling
In fact, the specific use of which way can achieve results, it depends on the personal habits of small partners! ~ ~
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.