My Oracle Support Banner

Log File Rotation Of OC4J Logs (Doc ID 370301.1)

Last updated on MAY 23, 2019

Applies to:

Oracle Containers for J2EE - Version 10.1.2.0.2 to 10.1.3.5.0 [Release AS10gR2 to AS10gR3]
Oracle Fusion Middleware - Version 10.1.2.0.2 to 10.1.3.5.0 [Release AS10gR2 to AS10gR3]
Information in this document applies to any platform.
Oracle Application Server 10g Enterprise Edition - Version: 9.0.4.0.0 to 10.1.3.5.0


Symptoms

The OC4J instance log files at $ORACLE_HOME/opmn/logs are still not rotated after applying <patch 4489980> and modifying the following OC4J instance properties

  1. Added -Dstdstream.filesize -Dstdstream.rotatetime -Dstdstream.filenumber parameters in the <java-options>
  2. Added -out and -err parameters to the <oc4j-options>

The issue is verified by executing ls -l $ORACLE_HOME/opmn/logs which still shows the logs as usual

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
 1. Patch the environment to enable the OC4J log rotation feature
 2. Configure the environment to enable the OC4J log rotation
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.