DIA-48448: This command does not support multiple ADR homes

发布时间 2023-04-24 18:38:39作者: 潇湘隐者

在使用adrci命令清空日志时遇到错误:“DIA-48448: This command does not support multiple ADR homes”如何解决呢?如下所示

$ adrci
ADRCI: Release 19.0.0.0.0 - Production on Mon Apr 24 17:13:32 2023
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
ADR base = "/opt/oracle19c"
adrci> purge -age 10080 -type incident
DIA-48448: This command does not support multiple ADR homes

其实遇到这个错误是因为ADR的home目录有多个,我们需要指定某一个具体的home目录,才能清理日志,如下所示

adrci> show homes;
ADR Homes:
diag/rdbms/test/ctest
diag/rdbms/test/gsp
diag/rdbms/test/kerry
diag/rdbms/test/mydb
diag/rdbms/kerry/kerry
adrci>
adrci> set home diag/rdbms/test/kerry
adrci> purge -age 10080 -type incident
adrci>