Oracle 11g清理trace和alert日志

[oracle@oraclehost orcl]$ du -sh *
9.8G alert
4.0K cdump
4.0K hm
4.0K incident
4.0K incpkg
4.0K ir
4.0K lck
4.0M metadata
4.0K metadata_dgif
4.0K metadata_pv
4.0K stage
4.0K sweep
11G trace
[oracle@oraclehost orcl]$ adrci

ADRCI: Release 11.2.0.4.0 - Production on Mon Feb 13 11:51:09 2023

Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.

ADR base = "/u01/app/oracle"

adrci> help purge

Usage: PURGE [[-i | ] |
[-age [-type ALERT|INCIDENT|TRACE|CDUMP|HM|UTSCDMP]]]:

Purpose: Purge the diagnostic data in the current ADR home. If no
option is specified, the default purging policy will be used.

Options:
[-i id1 | id1 id2]: Users can input a single incident ID, or a
range of incidents to purge.

[-age <mins>]: Users can specify the purging policy either to all
the diagnostic data or the specified type. The data older than <mins>
ago will be purged

[-type ALERT|INCIDENT|TRACE|CDUMP|HM|UTSCDMP]: Users can specify what type of
data to be purged.

Examples:
purge
purge -i 123 456
purge -age 60 -type incident

adrci> purge -age 60 -type trace;
adrci> purge -age 60 -type alert
adrci> exit
du -sh *
40K alert
4.0K cdump
4.0K hm
4.0K incident
4.0K incpkg
4.0K ir
4.0K lck
4.0M metadata
4.0K metadata_dgif
4.0K metadata_pv
4.0K stage
4.0K sweep
6.3G trace

http://www.taodudu.cc/news/show-1455686.html?action=onClick

posted @   南大仙  阅读(596)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 使用C#创建一个MCP客户端
· ollama系列1:轻松3步本地部署deepseek,普通电脑可用
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 按钮权限的设计及实现
点击右上角即可分享
微信分享提示