Sometime you will face the problem about large alert log and trace files in Oracle database. You can use ADRCI tool to manage them.
-
Run adrci command
[oracle@dboraclel1 dboraclel1]$ adrci ADRCI: Release 12.2.0.1.0 - Production on Tue Aug 21 00:20:25 2018 Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved. ADR base = "/u01/app/oracle" adrci> show home ADR Homes: diag/rdbms/schooldb/schooldb diag/tnslsnr/dboraclel1/listener diag/tnslsnr/dboraclel1/listener6 diag/tnslsnr/dboraclel1/listener2 diag/tnslsnr/dboraclel1/listener3 diag/tnslsnr/dboraclel1/listener4 diag/tnslsnr/dboraclel1/listener5 diag/diagtool/user_oracle/adrci_3644429138_107 adrci>
-
Set home directory to work. If you have only one home folder skip this step.
set homepath diag/tnslsnr/dboraclel1/listener
-
Run this command to purge alert log.
PURGE -age 1440 -type ALERT
This command will be purge alert log older than 1440 minutes. Parameter age is in minute. You can change for your own.
-
Run this command to purge trace files.
PURGE -age 1440 -type TRACE
This command will be purge trace files older than 1440 minutes. Parameter age is in minute. You can change for your own.
Comments
Post a Comment