Oracle database 清理日志文件 (listener.log/ alert log)
监听日志清理(listener.log)
以oracle用户登录,切换到以下目录
[oracle@oracledb /]$ cd $ORACLE_BASE/diag/tnslsnr/服务器用户名/listener/trace/
停止监听服务进程(tnslsnr)记录日志
[oracle@oracledb trace]$ lsnrctl set log_status off;
将监听日志文件listener.log复制一份,以listener.log.yyyymmdd格式命名
[oracle@oracledb trace]$ cp listener.log listener.log.20221110
将监听日志文件listener.log清空
[oracle@oracledb trace]$ cat /dev/null > listener.log
或
echo /dev/null listener.log
开启监听服务进程(tnslsnr)记录日志
[oracle@oracledb trace]$ lsnrctl set log_status on;
alter 日志清理(alter log )
找到 alter 目录
cd /u01/app/grid/diag/tnslsnr/dm01dbadm02/listener/alert
删除7天之前的xml文件
find . -name “*xml” -mtime +7 |xargs rm
TRANSLATE with x
English
Arabic | Hebrew | Polish |
Bulgarian | Hindi | Portuguese |
Catalan | Hmong Daw | Romanian |
Chinese Simplified | Hungarian | Russian |
Chinese Traditional | Indonesian | Slovak |
Czech | Italian | Slovenian |
Danish | Japanese | Spanish |
Dutch | Klingon | Swedish |
English | Korean | Thai |
Estonian | Latvian | Turkish |
Finnish | Lithuanian | Ukrainian |
French | Malay | Urdu |
German | Maltese | Vietnamese |
Greek | Norwegian | Welsh |
Haitian Creole | Persian |
TRANSLATE with
COPY THE URL BELOW
Back
EMBED THE SNIPPET BELOW IN YOUR SITE
<input type="text" name="EmbedSnippetTextBox" value="
setTimeout(function(){var s=document.createElement('script');s.type='text/javascript';s.charset='UTF-8';s.src=((location && location.href && location.href.indexOf('https') == 0)?'https://ssl.microsofttranslator.com':'http://www.microsofttranslator.com')+'/ajax/v3/WidgetV3.ashx?siteData=ueOIGRSKkd965FeEGM5JtQ**&ctf=true&ui=true&settings=manual&from=en';var p=document.getElementsByTagName('head')[0]||document.documentElement;p.insertBefore(s,p.firstChild); },0);” readonly=”readonly”>
Enable collaborative features and customize widget: Bing Webmaster Portal
Back