oracle adrci操作

查看所有实例的运行情况

adrci>  show problem

切换路径

set homepath diag/tnslsnr

删除一天前的trc/trm日志---age 的单位是分钟

adrci> PURGE -age 1440 -type trace

调整某个目录的删除策略

set home diag/rdbms/orcl/orcl2
show control
set control (SHORTP_POLICY=24)
set control (LONGP_POLICY=24)
show control
purge -age 120

默认删除策略
set control (SHORTP_POLICY=720)
set control (LONGP_POLICY=8760)
show control

你可能感兴趣的:(oracle,数据库)