Configure Oracle Application Server Logs
To configure Oracle App Server logs, we can use this attributes:
1. stdstream.filesize=max_file_size
log maximum file size. The log will rotate automatically when maximum size reached
2. stdstream.filenumber=max_files
maximum file count. The oldest file automatically deleted when this number reached
3. stdstream.rotatetime=HH:mm
time for daily rotation of log file
Usage sample:
* To rotate stdout/stderr log when log file has reached 12 MB and place the log file to folder d:\logs
* To rotate stdout everyday at 14.30 and limit the log file for 30 days
The above configuration should be put in opmn.xml which is by default located in C:\product\10.1.3.1\OracleAS_1\opmn\conf\opmn.xml
Example:
The name of logs file will look like.
std_2006_02_22_14_01_17.out
std_2006_02_22_14_16_25.out
Source:
http://download.oracle.com/docs/cd/B31017_01/web.1013/b28950/sysprops.htm#CHDDCCJI
http://kaukovuo.blogspot.com/2006/02/oc4j-904-1012-and-1013-log-file.html
1. stdstream.filesize=max_file_size
log maximum file size. The log will rotate automatically when maximum size reached
2. stdstream.filenumber=max_files
maximum file count. The oldest file automatically deleted when this number reached
3. stdstream.rotatetime=HH:mm
time for daily rotation of log file
Usage sample:
* To rotate stdout/stderr log when log file has reached 12 MB and place the log file to folder d:\logs
java -Dstdstream.filesize=12 -jar oc4j.jar -out d:\logs\oc4j.out -err d:\logs\oc4j.err
* To rotate stdout everyday at 14.30 and limit the log file for 30 days
java -Dstdstream.rotatetime=14:30 -Dstdstream.filenumber=30 -jar oc4j.jar -out d:\logs\oc4j.out
The above configuration should be put in opmn.xml which is by default located in C:\product\10.1.3.1\OracleAS_1\opmn\conf\opmn.xml
Example:
<category id="start-parameters">With the above example, log of stdout and stderr will show up in $ORACLE_HOME/j2ee/home/home_default_group_1.
<data id="java-options" value="-server -Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Djava.awt.headless=true -Dstdstream.filesize=12 -Dstdstream.filenumber=5"/>
<data id="oc4j-options" value="-out std.out -err std.err"/>
</category>
The name of logs file will look like.
std_2006_02_22_14_01_17.out
std_2006_02_22_14_16_25.out
Source:
http://download.oracle.com/docs/cd/B31017_01/web.1013/b28950/sysprops.htm#CHDDCCJI
http://kaukovuo.blogspot.com/2006/02/oc4j-904-1012-and-1013-log-file.html