oracle删除alert_orcl.log
数据库正在运行着,如何清理太大的alert.log文件?
不能用mv方法.
官方建议:
How Do You Reduce The Size Of An Alert Log That Is Too Large To Edit while the DB is running? (Doc ID 296354.1)
GOAL:
How do you reduce the size of the alert log while the database is still running and is too large to edit?
SOLUTION:
1 and 2 again until it succeeds ... if you continue to fail ... you will need to shutdown to do
the process.
你看,最后一段说明,多麻烦,还是定期重启数据库大 法好,重启时趁机改名字或rm岂不简单。
不能用mv方法.
官方建议:
How Do You Reduce The Size Of An Alert Log That Is Too Large To Edit while the DB is running? (Doc ID 296354.1)
GOAL:
How do you reduce the size of the alert log while the database is still running and is too large to edit?
SOLUTION:
There really is no way to reduce the size other than start a new file
1) COPY the alert log to a new name
EXAMPLE:
cp ALERT_MYSID.LOG ALERT_MYSID.2004 首先保障2倍空间,但是如果很大会不会?
2) Delete the existing alert log
EXAMPLE:
rm ALERT_MYSID.LOG
After this the database should recreate an empty file and continue logging to it.
If the log will not delete due to file locking ... you will need to delete the copy and try steps1 and 2 again until it succeeds ... if you continue to fail ... you will need to shutdown to do
the process.
你看,最后一段说明,多麻烦,还是定期重启数据库大 法好,重启时趁机改名字或rm岂不简单。
标签:
Oracle
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?