ADRCI清理日志-参考

---1 在cmd 或者 shell 命令行下运行adrci
[oracle@localhost ~]$ adrci

ADRCI: Release 11.2.0.4.0 - Production on 星期一 4月 27 16:51:31 2020

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

ADR base = "/oracle/ora_yss"
adrci> purge -age 4320
DIA-48448: This command does not support multiple ADR homes

---2 查看所有目录
adrci> show home
ADR Homes: 
diag/rdbms/orayss/orayss
diag/clients/user_oracle/host_61728193_80
diag/tnslsnr/localhost/lsnr_15211
diag/tnslsnr/localhost/listener

---3 设置清理目录
adrci> set home diag/rdbms/orayss/orayss

---4 清理4320分钟(3天)前的日志。
adrci> purge -age 4320


---adrci下更改日志保存参数
--1 短文件保存小时数(Trace files,dump files,Packaging information)max35791394
adrci>set control (SHORTP_POLICY=168)
--2 长文件保存小时数(Incident information,Incident dumps,Alert logs)max35791394
adrci>set control (LONGP_POLICY=168)

  

posted on 2020-04-28 11:04  yshangshun78  阅读(1311)  评论(0)    收藏  举报

导航