Why Are My Listener Logs & Traces Not Purged By The ADR? (Doc ID 1438242.1)

Last updated on JULY 12, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.1.0.7 and later
Oracle Net Services - Version 11.2.0.3 to 11.2.0.3 [Release 11.2]
Information in this document applies to any platform.
*** Checked for relevance on 19-Aug-2015 ***

Goal

To clarify this behaviour:

Executing a purge -age <age> command from ADRCI, in the listener home, and then a show alert command we can sometimes see information older than the indicated <age>.  At other times the purge seems to be working fine and removing all the information older than the indicated age.

Checking the listener log and trace file directories, a large build up of files is observed, e.g.:

cd /app/oracle11/diag/tnslsnr/orcl/listener/alert)
-rw-r----- 1 ora11 oinstall 8353048 Mar 20 08:00 log.xml
-rw-r----- 1 ora11 oinstall 6 Mar 20 07:53 log.xml.size
-rw-r----- 1 ora11 oinstall 10485958 Mar 16 07:03 log_25.xml
-rw-r----- 1 ora11 oinstall 10486122 Mar 12 03:52 log_24.xml
-rw-r----- 1 ora11 oinstall 10485942 Mar 07 10:50 log_23.xml
-rw-r----- 1 ora11 oinstall 10486037 Mar 02 17:16 log_22.xml
-rw-r----- 1 ora11 oinstall 10485980 Feb 27 20:09 log_21.xml
-rw-r----- 1 ora11 oinstall 10485848 Feb 23 08:20 log_20.xml
-rw-r----- 1 ora11 oinstall 10485867 Feb 19 05:25 log_19.xml
-rw-r----- 1 ora11 oinstall 10486100 Feb 15 14:30 log_18.xml
-rw-r----- 1 ora11 oinstall 10485812 Feb 11 16:57 log_17.xml
-rw-r----- 1 ora11 oinstall 10486074 Feb 08 04:30 log_16.xml
-rw-r----- 1 ora11 oinstall 10485925 Feb 04 09:15 log_15.xml
-rw-r----- 1 ora11 oinstall 10485797 Jan 31 18:56 log_14.xml
-rw-r----- 1 ora11 oinstall 10485762 Jan 27 23:04 log_13.xml
-rw-r----- 1 ora11 oinstall 10485836 Jan 24 13:40 log_12.xml
-rw-r----- 1 ora11 oinstall 10485899 Jan 20 16:43 log_11.xml
-rw-r----- 1 ora11 oinstall 10485947 Jan 17 08:55 log_10.xml
-rw-r----- 1 ora11 oinstall 10485947 Jan 13 11:02 log_9.xml
-rw-r----- 1 ora11 oinstall 10485957 Jan 09 22:39 log_8.xml
-rw-r----- 1 ora11 oinstall 10486085 Jan 06 01:14 log_7.xml
-rw-r----- 1 ora11 oinstall 10485923 Jan 02 15:20 log_6.xml
-rw-r----- 1 ora11 oinstall 10485936 Dec 29 16:25 log_5.xml
-rw-r----- 1 ora11 oinstall 10486110 Dec 25 22:59 log_4.xml
-rw-r----- 1 ora11 oinstall 10485890 Dec 22 02:45 log_3.xml
-rw-r----- 1 ora11 oinstall 10485872 Dec 18 15:05 log_2.xml
-rw-r----- 1 ora11 oinstall 10485805 Dec 14 22:42 log_1.xml


So why are these not getting purged from the system by the ADR in the same way as the database alert log and trace files?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms