Tip: Rotate Oracle-XE logs in Ubuntu

Hi,
You can find guide here
http://ubuntuforums.org/showthread.php?t=1230206&highlight=oracle
Br, Jari

Hi, Vishnu,
I'd like to know the details of rotating these logs. My impression is that you either completely disable OC4J logging or can't do anything about it.
Yong Huang

Similar Messages

  • Rotate the opmn logs in oracle

    Hi,
    Is there any way to rotate the opmn logs in 9iAS Rel2. I was able to rotate apache logs. but i dont know how to rotate the following ORACLE_HOME/opmn/logs/OC4J_Deltion.default_island.1
    (OC4J_Deltion is the oc4j instance name)
    The system has lots of system.out.println s in the code and this log is building up so soon. Is there any way to rotate this log without restarting the OC4J instance?
    Thanks
    Srinath

    Hi, Vishnu,
    I'd like to know the details of rotating these logs. My impression is that you either completely disable OC4J logging or can't do anything about it.
    Yong Huang

  • Help using Oracle Diagnostic Logging (LoggingContext)

    Hi,
    We are developing a new Product from scratch and have decided to use as much as we can from Oracle Libraries. Currently we are using Oracle Diagnostic Logging (ODL) for logging in our application, having a wrapper on top of it, which will make our product as well in-line with other oracle product logging.
    We have requirements to log based on LoggingContext as in Log4j's Mapped/Nested Diagnostic Context. I believe we can do the same using oracle.core.ojdl.logging.context.LoggingContext but can't find more information on how to use it.
    Can anybody provide examples or links to learn, understand and implement using LoggingContext in ODL?

    ODL generates log files in XML format only. Using ODL you can not have plain text format log files. You have to decide what is more desired - log rotation (that ODL provides) or text format (which is the default, non-ODL, format). If text format is more desired than don't enable ODL and write your own shell script to rotate application log (but that can only be done while OC4J is down).
    At the same time if you are concern about readability of log file (i.e. text format is easier to read vs. xml format) than you might consider using one the log viewer tool (log viewer in EM or printlogs command line) provided by Oracle. Both of these tools help you view the logs in much more readable format than just looking at xml format log file.
    (printlogs utility is under $OH/diagnostic/bin directory. Run "printlogs -help" to read about it).
    Hope this helps.
    Thanks
    Shail

  • I am trying to install oracle 11g xe on ubuntu aws instance when i execute sudo /etc/init.d/oracle-xe configure command iam getting this error: sudo: /etc/init.d/oracle-xe : command not found

    i am trying to install oracle 11g xe on ubuntu aws instance when i execute sudo /etc/init.d/oracle-xe configure command iam getting this error: sudo: /etc/init.d/oracle-xe : command not found.

    "command not found" means ... there is no such thing.
    Has the .rpm been installed?
    http://docs.oracle.com/cd/E17781_01/install.112/e18802/toc.htm#XEINL122

  • Log File in oracle network log directory,

    Hello,
    in the oracle\network\log directory there we can find the file [SIDNAME].log.
    I think only in case for network troubles, oracle will log some informations in this log file.
    For what is this file needed and can I delete this file?
    Thanks for your help.

    thanks for feedback...
    the input of the file is like the following:
    11-JUN-2010 10:23:51 * service_register * WMS * 0
    11-JUN-2010 10:24:03 * service_update * WMS * 0
    11-JUN-2010 10:24:25 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=WMS)(SERVER=dedicated)(CID=(PROGRAM=C:\Programme\Oracle\DB10g\bin\sqlplus.exe)(HOST=PCWI)(USER=Admin))(SERVER=dedicated)) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=2530)) * establish * WMS * 0
    11-JUN-2010 10:24:27 * service_update * WMS * 0
    11-JUN-2010 10:24:30 * service_update * WMS * 0
    11-JUN-2010 10:25:05 * ping * 0
    11-JUN-2010 10:25:05 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=PCWI)(PORT=1521)))(VERSION=169869568)) * status * 0
    11-JUN-2010 10:25:16 * (CONNECT_DATA=(SID=WMS)(CID=(PROGRAM=C:\Programme\Oracle\DB10g\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=PCWI)(USER=SYSTEM))(SERVER=dedicated)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.14.194)(PORT=2538)) * establish * WMS * 0
    11-JUN-2010 10:25:51 * (CONNECT_DATA=(SID=WMS)(CID=(PROGRAM=C:\Programme\Oracle\DB10g\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=PCWI)(USER=SYSTEM))(SERVER=dedicated)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.14.194)(PORT=2542)) * establish * WMS * 0
    11-JUN-2010 10:26:43 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=WMS)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.14.194)
    can I deactivate this traces?
    thanks for feedback

  • "found dead shared server ... " errors occured in oracle alert log

    Dear all,
    I have found a error message in my oracle alert log which is "found dead shared server 's000, pid=(10,1)'". What's this mean? and this error will casue a core dump in ../cdump directory.
    btw. Thanks the answers of antti.koskinen and yingkuan.

    one more thing, my server is not configured as shared server mode, it is dedicated server mode. but I don't know why system inform me "found dead shared server..".

  • How to rotate Apache2.2/logs/access_log without restarting AMS 5.0.1 on AWS.

    The Adobe Media Server 5.0.1 docs say that Logging.xml controls rotating of the Apache access_log file but its not rotating and I don't see how to configure it in Logging.xml.
    Logging.xml takes care of the AMS log files like Access.log but it doens't seem to handle the Apache logs. I've seen where you use logrotated to rotate the Apache logs, then issue a "reload" to the service, but AMS controls Apache and the AMS service only supports start, stop, and reload which takes a minimum of 5 to 10 seconds to reload the server. How can I rotate the Apache logs using Logger.xml or how can I issue a reload directly to Apache when the AMS scripts control it?
    http://help.adobe.com/en_US/adobemediaserver/configadmin/WS5b3ccc516d4fbf351e63e3d119f2926 0bd-7ffa.2.3.html

    To rotate the apache logs you need to pipe them through a third party tool (i saying that there may be something in apache I may have read once, however here is a tried and tested solution assuming you are on linux), Logging.xml is only for FMS (well it was for 4.5.5 and before).
    Download cronolog (http://cronolog.org/)
    Change your log directive
    From: CustomLog "logs/access.log" combined
    To: CustomLog "| /mnt/apps/cronolog/sbin/cronolog -S /mnt/fms/Apache2.2/logs/access_log /mnt/fms/Apache2.2/logs/%Y%m%d_access.log" combined
    Restart apache
    You logs will now roll daily on the first time they are written toie the logs dont roll at midnight, but the first time they are written to after midnight (so if no one access your server on a day, there will be no log for that day)
    The above example makes the assumptiosn:
    FMS apache is installed in /mnt/fms/Apache2.2 and you want to use its log dir
    cronolog installed in /mnt/apps/cronolog/

  • Oracle Daignostic Logging Vs Log4j logging

    Which type of logging is advisable/best for Oracle SOA applications? Oracle Daignostic Logging (ODL) or Log4j logging ?
    Thanks
    Sree

    We have found it better to use ODL logging because of the support of tracking logs using the ECID. This allows logs across multiple components to be followed. Also the ODL logs can be searched and viewed through EM or the plain text log files and can be exported and viewed in JDeveloper offline as well.

  • Changing the display on the Oracle Applications Log On screen

    Hello,
    Could any one help me in changing the display on oracle applications log on form to XYZ applications sign on form
    thanks
    leo

    Replace the clock with 'empty' under personalize view. Or you may find a settings under time & date to turn the main display clock off.
    Please mark the post as solution if it solves your problem.
    Current Device - Nokia Lumia 1020/920

  • Oracle archive log compression

    Dear All,
    Please help me how I compress oracle archive log in 10g.
    Thanks,
    Manas

    manas wrote:
    Dear All,
    Please help me how I compress oracle archive log in 10g.
    Thanks,
    ManasUse RMAN by Compressed option (or) with Compressed and delete input option
    RMAN> backup as compressed backupset archivelog all;
    Starting backup at 23-FEB-12
    current log archived
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=72 device type=DISK
    channel ORA_DISK_1: starting compressed archived log backup set
    channel ORA_DISK_1: specifying archived log(s) in backup set
    input archived log thread=1 sequence=16 RECID=11 STAMP=775778430
    input archived log thread=1 sequence=17 RECID=12 STAMP=775819218
    input archived log thread=1 sequence=18 RECID=13 STAMP=775835555
    input archived log thread=1 sequence=19 RECID=14 STAMP=775835555
    channel ORA_DISK_1: starting piece 1 at 23-FEB-12
    channel ORA_DISK_1: finished piece 1 at 23-FEB-12
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2012_02_23\O1_MF_ANNNN_TAG20120223T115447_7NCPXJBF_.BKP tag=TAG20120223T115447 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:07
    channel ORA_DISK_1: starting compressed archived log backup set
    channel ORA_DISK_1: specifying archived log(s) in backup set
    input archived log thread=1 sequence=1 RECID=15 STAMP=775847193
    input archived log thread=1 sequence=2 RECID=16 STAMP=775847245
    input archived log thread=1 sequence=3 RECID=17 STAMP=775847246
    input archived log thread=1 sequence=4 RECID=18 STAMP=775864847
    input archived log thread=1 sequence=5 RECID=19 STAMP=775906825
    input archived log thread=1 sequence=6 RECID=20 STAMP=775906906
    input archived log thread=1 sequence=7 RECID=21 STAMP=776001285
    channel ORA_DISK_1: starting piece 1 at 23-FEB-12
    channel ORA_DISK_1: finished piece 1 at 23-FEB-12
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2012_02_23\O1_MF_ANNNN_TAG20120223T115447_7NCPXQS2_.BKP tag=TAG20120223T115447 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:07
    Finished backup at 23-FEB-12
    Starting Control File and SPFILE Autobackup at 23-FEB-12
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\AUTOBACKUP\2012_02_23\O1_MF_S_776001303_7NCPY044_.BKP comment=NONE
    Finished Control File and SPFILE Autobackup at 23-FEB-12
    RMAN>
    =====================
    RMAN> backup as compressed backupset archivelog all delete input;
    Starting backup at 23-FEB-12
    current log archived
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=9 device type=DISK
    channel ORA_DISK_1: starting compressed archived log backup set
    channel ORA_DISK_1: specifying archived log(s) in backup set
    input archived log thread=1 sequence=16 RECID=11 STAMP=775778430
    input archived log thread=1 sequence=17 RECID=12 STAMP=775819218
    input archived log thread=1 sequence=18 RECID=13 STAMP=775835555
    input archived log thread=1 sequence=19 RECID=14 STAMP=775835555
    channel ORA_DISK_1: starting piece 1 at 23-FEB-12
    channel ORA_DISK_1: finished piece 1 at 23-FEB-12
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2012_02_23\O1_MF_ANNNN_TAG20120223T115645_7NCQ15OV_.BKP tag=TAG20120223T115645 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:08
    channel ORA_DISK_1: deleting archived log(s)
    archived log file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_20\O1_MF_1_16_7N4X928H_.ARC RECID=11 STAMP=775778430
    archived log file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_17_7N653S9L_.ARC RECID=12 STAMP=775819218
    archived log file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_18_7N6MQBWS_.ARC RECID=13 STAMP=775835555
    archived log file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_19_7N6NXV4M_.ARC RECID=14 STAMP=775835555
    channel ORA_DISK_1: starting compressed archived log backup set
    channel ORA_DISK_1: specifying archived log(s) in backup set
    input archived log thread=1 sequence=1 RECID=15 STAMP=775847193
    input archived log thread=1 sequence=2 RECID=16 STAMP=775847245
    input archived log thread=1 sequence=3 RECID=17 STAMP=775847246
    input archived log thread=1 sequence=4 RECID=18 STAMP=775864847
    input archived log thread=1 sequence=5 RECID=19 STAMP=775906825
    input archived log thread=1 sequence=6 RECID=20 STAMP=775906906
    input archived log thread=1 sequence=7 RECID=21 STAMP=776001285
    input archived log thread=1 sequence=8 RECID=22 STAMP=776001403
    channel ORA_DISK_1: starting piece 1 at 23-FEB-12
    channel ORA_DISK_1: finished piece 1 at 23-FEB-12
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2012_02_23\O1_MF_ANNNN_TAG20120223T115645_7NCQ1GLP_.BKP tag=TAG20120223T115645 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:08
    channel ORA_DISK_1: deleting archived log(s)
    archived log file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_1_7N70G0F6_.ARC RECID=15 STAMP=775847193
    archived log file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_2_7N70HOHF_.ARC RECID=16 STAMP=775847245
    archived log file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_3_7N70HP3O_.ARC RECID=17 STAMP=775847246
    archived log file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_4_7N7KONB8_.ARC RECID=18 STAMP=775864847
    archived log file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_22\O1_MF_1_5_7N8TOK3Q_.ARC RECID=19 STAMP=775906825
    archived log file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_22\O1_MF_1_6_7N8TR2S1_.ARC RECID=20 STAMP=775906906
    archived log file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_23\O1_MF_1_7_7NCPXCKL_.ARC RECID=21 STAMP=776001285
    archived log file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_23\O1_MF_1_8_7NCQ13VV_.ARC RECID=22 STAMP=776001403
    Finished backup at 23-FEB-12
    Starting Control File and SPFILE Autobackup at 23-FEB-12
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\AUTOBACKUP\2012_02_23\O1_MF_S_776001423_7NCQ1RFZ_.BKP comment=NONE
    Finished Control File and SPFILE Autobackup at 23-FEB-12
    RMAN>Edited by: CKPT on Feb 23, 2012 11:57 AM

  • Rotation of access logs unsuccessful !!

    Hi everybody,
    I tried setting up the rotation for access log (WLS 6.0), as per the user documentation.This
    doesn't seem to work, neither "by Size" nor "by Date". My config.xml does show
    proper tags for logging.
    <WebServer DefaultWebApp="DefaultWebApp_myserver" LogFileBufferKBytes="15" LogFileName="./config/mydomain/logs/sushil.log"
    LogRotationPeriodMins="1" LogRotationTimeBegin="06-07-2001-14:19:30" LogRotationType="size"
    LoggingEnabled="true" Name="myserver" />
    Am I missing something here. I was wondering if someone could give me an insight
    on this.
    Thanks in advance,
    Sushil

    I see there is no space between 1000" and max.
    <access-log path="../log/http-web-access.log" max-file-size="1000"max-directory-size="10000"/>
    However, you need to use the ODL logging line in config
         <odl-access-log path="../log/http-web-access" max-file-size="1000" max-directory-size="10000"/>

  • Unable to install Oracle XE Client on Ubuntu 8.04 - "no such user"

    Hi,
    I've just installed Oracle XE client on my desktop machine (64bit Ubuntu 8.04), and I had to manually create some users and groups:
    sudo groupadd nobody
    sudo groupadd oinstall
    sudo useradd -s /bin/bash -g oinstall -G dba oracle
    sudo passwd oracle
    before the install would complete, due to what appears to be incorrect arguments to useradd by the installer.
    It took quite a lot of hunting to find the above, and I'm a little concerned since no one else seems to have had the same problems.
    I installed using:
    $ sudo dpkg -i --force-architecture oracle-xe-client_10.2.0.1-1.0_i386.deb
    (the force-architecture was required for the server install on my server, so I did the same here)
    I read the install instructions on the oracle pages
    (http://www.oracle.com/technology/software/products/database/xe/files/install.102/b25144/toc.htm#BABFEDEI) and didn't see anything about having to manually create these accounts, and I seem to have followed the rest of the instructions correctly.
    What did I do wrong? I'm probably going to have to do it again sometime, and I'm a little concerned that I might have just been causing trouble for myself by doing those extra manual steps.
    Note that I had to provide a password for the oracle user; how does oracle manage to log in using this account, since I didn't have to provide it anywhere?
    Any help/advice would be appreciated,
    many thanks,
    William
    BTW I'm really not happy with the preview/post message thing in this forum; I'm using Firefox 3.0.1 and if you use preview then the back button clears the entire text (yay, thanks!); I tried to be more cunning next time, and use the back button instead, but then none of the "preview", "post message" and "cancel" buttons work... so this was my third attempt at writing this message, and it's somewhat shorter than the original, like my patience :p

    BTW I'm really not happy with the preview/post
    message thing in this forum; I'm using Firefox 3.0.1
    and if you use preview then the back button clears
    the entire text (yay, thanks!); I tried to be more
    cunning next time, and use the back button instead,
    but then none of the "preview", "post message" and
    "cancel" buttons work...It's not Firefox related - same issue with other browsers.
    Please put your entry regarding this into this thread:
    Preview not working correctly - works now
    That's the right place for this issue...
    Cheers!

  • How to setup rotation for application.log?

    In order to get the Portal Performance Statistics running, we need to retrieve the page views from file application.log in directory <ORAHOME>\j2ee\OC4J_Portal\application-deployments\portal\OC4J_Portal_default_island_1.
    This file continues to grow and therefore we want to set up rotation, in order to get one file per day.
    We are following note 264373.1 and have read all documents and manuals about logging, but can not figure out how to manage this.
    Can anyone help us? We are working with 9.0.4.1.
    For Oracle employees: see also tar 4193327.994.

    I can't speak for how portal uses the log file, but in general, the way you do it for a deployed J2EE application on OC4J is as follows.
    Deploy the application EAR file. Lets say the app is called Test.
    In the j2ee/home/application-deployments/Test directory, a file will be created called orion-application.xml.
    If you look in this file, you will see an entry which looks like
    <log>
    <file path="application.log" />
    </log>
    This defines the log file for this application.
    Now if you want to setup log file rotation for this app, edit the orion-application.xml file and firstly, comment out the above.
    Note: you can leave the log tag in if you wish, but you'll get double log messages. Remove it if you do this in production and are trying to conserve space ;-).
    Then add in the below to setup ODL based logging for this application:
    <log>
    <odl path="logdir"
    max-file-size="1000" max-directory-size="10000" />
    </log>
    What this does it to tell OC4J to output the log messages using it's ODL format model, to create a directory called logdir (in the current directory) and then to start writing to log files called log.xml in that directory.
    The max file size of log.xml is 1000KB, and the max directory size of the new logdir directory will be 10MB.
    The ODL logging system will manage the log files in this directory according to these constraints -- when a log file gets bigger than max-file-size it gets archived as logN.xml. When the overall directory size gets bigger than the max-directory-size specified, the oldest log file from the list is removed so that the max directory size is honoured.
    I don't think we can specify a rollover period (ie one day) with ODL. I'm pretty sure it's just file size based only.
    I think the above should apply to Portal since it runs on OC4J. In which case, you'd change the orion-application.zml in the <ORAHOME>\j2ee\OC4J_Portal\application-deployments\portal directory instead of j2ee/home/application-deployments/<app-name>.
    However, I can't speak officially for Portal since I don't work with that product. From a pure OC4J perspective the above holds true and works.
    cheers
    -steve-

  • Can I generate .txt / .log file from Oracle Diagnostic Logging?

    Hi all,
    on my application I need to limit the size of application log, I've read this [http://download.oracle.com/docs/cd/B25221_04/web.1013/b14432/logadmin.htm#CHDJHHHB|http://download.oracle.com/docs/cd/B25221_04/web.1013/b14432/logadmin.htm#CHDJHHHB] that using ODL, but generated file is .xml, but I need .log / .txt file. How can I do this??
    thanks in advance.
    Regards,
    Kahlil

    ODL generates log files in XML format only. Using ODL you can not have plain text format log files. You have to decide what is more desired - log rotation (that ODL provides) or text format (which is the default, non-ODL, format). If text format is more desired than don't enable ODL and write your own shell script to rotate application log (but that can only be done while OC4J is down).
    At the same time if you are concern about readability of log file (i.e. text format is easier to read vs. xml format) than you might consider using one the log viewer tool (log viewer in EM or printlogs command line) provided by Oracle. Both of these tools help you view the logs in much more readable format than just looking at xml format log file.
    (printlogs utility is under $OH/diagnostic/bin directory. Run "printlogs -help" to read about it).
    Hope this helps.
    Thanks
    Shail

  • Alert log rotation/OS Audit log rotation

    Hi all,
    Is there away  that I can fix of my audit and alert log size to 100Mb and it will just reuse or rotate around it?
    Or can manipulate it thru  OS programs?
    Thanks,
    zxy

    You can limit the OS audit file size using the package called DBMS_AUDIT_MGMT
    Refer http://docs.oracle.com/cd/E11882_01/appdev.112/e25788/d_audit_mgmt.htm
    However, for limitting alert log file size, you need to setup a OS job, which periodically checks the alert log file size and then does a rename of the alert log file.

Maybe you are looking for