Rotate OC4J_Portal application log?

How can I rotate the OC4J_PORTAL application.log file that resides in %oracle_home%\j2ee\OC4J_Portal\application-deployments\portal\OC4J_Portal_default_island_1 without stopping the Portal?

http://www.oracle.com/technology/products/ias/portal/html/admin_monitor_modplsql.htm#maintenance

Similar Messages

  • 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 rotate application log in OC4J_Portal_default_island_1?

    My application.log file in %oracle_home%\j2ee\oc4j_portal\application-deployments\portal\oc4j_portal_default_island_1 grows quickly. Can I configure it to rotate every day or when it reaches a certain size? If yes, how?
    TIA
    Edited by: Angrydot on Aug 25, 2008 9:51 PM - what happens if I edit an old post in the new forum?
    Edited by: Angrydot on Aug 25, 2008 9:52 PM - nothing

    To rotate the OC4J log files under $ORACLE_HOME/opmn/logs, there are few parameters you can modify that are not documented in Oracle 9.0.4/10.1.2 documentation.
    [New JVM parameters]
    "stdstream.filesize"
    Max file size limit of each archive. Unit is megabyte.
    "stdstream.filenumber"
    Max number of files that oc4j can keep as archives. The oldest file will be automatically deleted if the limit is exceeded.
    [Usage]
    ex 1: rotate stdout/stderr when the file size is reached to 2.5M byte.
    java -Dstdstream.filesize=2.5 -jar oc4j.jar -out std.out -err std.err
    OraHome\opmn\conf\opmn.xml
    In order to get these parameters in opmn.xml you need to define it as follows:
    <category id="start-parameters">
    <data id="java-options" value="-server -Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Djava.awt.headless =true -Dstdstream.filesize=0.2 -Dstdstream.filenumber=5"/>
    <data id="oc4j-options" value="-out std.out -err std.err"/>
    </category>
    The new log files will be created under:$ORACLE_HOME\j2ee\home\home_default_island_1\
    The file naming will be like:
    std_2006_02_22_14_01_17.out
    std_2006_02_22_14_16_25.out
    Important notes:
    1. Backup opmn.xml file before any modification.
    2. Modify opmn.xml file to specify stdstream.filesize and stdstream.filenumber. See the example above.
    3. Test and validate this solution in your test system first before implementing in Production.

  • Error Message in portal application.log

    Hi all,
    There are error messages continually been written to application.log.
    Here is the path.
    $ORACLE_HOME/j2ee/OC4J_Portal/application-deployments/portal/OC4J_Portal_default_island_1/application.log
    We couldn't find out what's wrong.
    Portal Version is 10.1.2.2.0.
    application.log
    07/01/31 16:54:54 portal: [module=RepositoryServlet, ecid=103102642203,1] ERROR: Repository Gateway error: Request Processing Error:
    maxlength.htc: PROCEDURE DOESN'T EXIST
    07/01/31 17:23:44 portal: [module=RepositoryServlet, ecid=133169185626,1] ERROR: Repository Gateway error: Request Processing Error:
    maxlength.htc: PROCEDURE DOESN'T EXIST
    07/01/31 17:23:58 portal: Broken pipe
    07/01/31 17:23:58 portal: Broken pipe
    07/01/31 17:23:58 portal: id=146054097151,1 Exception processing portlet response
    java.lang.ArrayIndexOutOfBoundsException
         at java.lang.System.arraycopy(Native Method)
         at com.evermind.server.http.EvermindServletOutputStream.write(EvermindServletOutputStream.java:216)
         at com.evermind.server.http.EvermindServletOutputStream.write(EvermindServletOutputStream.java:151)
         at oracle.webdb.repository.service.RepositoryHttpResponseWrapper$RepositoryOutputStreamWrapper.write(Unknown Source)
         at oracle.webdb.page.CharConvertingOutputStream.write(Unknown Source)
         at oracle.webdb.page.v2.BaseDataProcessor.addToOutputStream(Unknown Source)
         at oracle.webdb.page.v2.BaseDataProcessor.includePortlet(Unknown Source)
         at oracle.webdb.page.v2.BaseDataProcessor.parseLayout(Unknown Source)
         at oracle.webdb.page.v2.BaseDataProcessor.assemblePage(Unknown Source)
         at oracle.webdb.page.v2.BaseDataProcessor.process(Unknown Source)
         at oracle.webdb.page.PageBuilder.process(Unknown Source)
         at oracle.webdb.page.Main.doRequest(Unknown Source)
         at oracle.webdb.page.ParallelServlet.doGet(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:834)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:260)
         at oracle.webdb.portal.servlet.PortalServlet.doGet(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:834)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:228)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    ----------------------

    $ORACLE_HOME/j2ee/OC4J_Portal/application-deployments/portal/OC4J_Portal_default_island_1/application.log
    os the log of the "parent application". This is rather high level in the container. The message in the logfiles tells you that a procedure doesn't exist.
    This can mean 3 things:
    1. The procedure really doesn't exist
    2. The procedure expects different parameters then passed
    3. In the procedure a specific array member is called (but not found). (don't know how to explain this better in English, sorry for that).
    It has been a while since I touched portal. In the past portal used a DAD (located in your HTTP-Server configuration). By changing the error style of the dad, you might find a more comprohensive error message.

  • Purging application logs automatically in Hyperion 9.3.1 products

    Hi,
    I am trying to explore purging options in Weblogic server.
    Could someone help me in finding a setting(if there is one) under Weblogic properties files, which will purge Application logs automatically after 'n' number of days.
    for example in D:\Hyperion\deployments\WebLogic9\servers\aas\logs directory, I see a lot of eas log files created with extensions from .log00001 to .log00427. Is there any way of removing these automatically without using any other windows scripts.
    Thanks
    Prasad

    This works now after I did the change from WebLogic Administration comsole by going to each server's Logging tab ( Servers -> server_name -> Logging ). Set the rotation type to "Time", files to retain, and rotation interval ( default 24 hours ), etc. This will keep the files to a fixed count

  • Purging application logs automatically under Weblogic servers

    Hi,
    I am trying to explore purging options in Weblogic server.
    Could someone help me in finding a setting(if there is one) under Weblogic properties files, which will purge Application logs automatically after 'n' number of days.
    for example in D:\Hyperion\deployments\WebLogic9\servers\aas\logs directory, I see a lot of eas log files created with extensions from .log00001 to .log00427. Is there any way of removing these automatically without using any other windows scripts.
    Thanks
    Prasad

    This is configured within each server's Logging tab ( Servers -> server_name -> Logging ). Set the rotation type to "Time", files to retain, and rotation interval ( default 24 hours ), etc. This will keep the files to a fixed count.

  • Control the size of Essbase.log and application log

    Understand that there are many message were written to the Essbase.log and application log. Is there any method to control what kind of message to be written to the log file so as to reduce the IO frequency of the server disk folders?
    Thanks for your help!

    CL wrote:
    You might want to think about forcing your BSO/ASO PAG & IND/DAT files to go onto a separate drive volume from your base Essbase binaries. This can be tough to do in a SAN environment as it is difficult to know what is truly where.
    Another option would be to use CLEARLOGFILE to reset the logs (this will delete them every time you stop/restart Essbase, so make sure you archive them if you need log history).
    See: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/config/clearlogfile.htm
    Yet another would be to set SSLOGUNKNWON to false to cut down on the log.
    See: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/config/sslogunknown.htm
    Regards,
    Cameron LackpourThanks! We already separate the log files from the data files but they still in the same hardware server. Yes, in SAN environment we really don't know where it the physical drive.
    Essbase do not have log rotate option like Apache and maybe we should archive the essbase log regularly and clear it up.
    We don't have much unknown member case in our log. Anyway we will investigate the option SSLOGUNKNOWN
    Thanks again!

  • How to create performance counter based on no. of errors generated in application log

    i have written custom events into application log and am able to see those events as alerts in the scom console and now i want to see how many event errors are generated for every 15mins.(interval)performance counter with same event source or id. how can
    i get started with this 

    Hi,
    Please try to create event monitor Triggered on Count:
    Trigger on count consolidation of events lets a monitor require multiple occurrences of the same event in a specified time window before it changes the health state to an error. The time window can be rotating time duration of specified length or
    a specific window based on day of the week.
    Trigger on count consolidation resembles trigger on timer consolidation except that multiple occurrences of the event are required instead of just one. When the time window is reached, the event count is returned to zero, and the specific number of events
    must detected before the time window expires again for the health state to be changed.
    More details:
    Event Monitors
    http://technet.microsoft.com/en-us/library/ff629447.aspx
    Regards, Yan Li

  • OC4J_Portal_default_island_1/application.log

    Hi ,
    i cannot find this file in my portal installation , i am using Oracle Portal Version: 10.1.2.0.2 (Build: 139)
    $ORACLE_HOME/j2ee/OC4J_Portal/application-deployments/portal/OC4J_Portal_default_island_1/application.log
    this file is important to me to generate performance reports from the portal where can i find this file?

    It is quite simple to see where that file would be provided it has not been deleted and that the OC4J_instances were created using EM or by default installation.
    Go to Enterprise Manger and Middle-tier; see which component is listed with a name like OC4J_ , eg. OC4J_Portal or OC4J_Custom, etc.
    The file-system architecture for this application log file in an OC4J_Instance is as follows:
    ORACLE_HOME\j2ee\OC4J_InstanceName\application-deployments\OC4J-AppName\OC4J_InstanceName_default_island_1\application.log
    For instance, in the following cases:
    Instance            OC4J_InstanceName    OC4J-AppName   location
    infrastructure        OC4J_SECURITY           SSO               %ORACLE_HOME%\j2ee\OC4J_Security\application-deployments\sso\OC4J_Security_default_island_1\application.log
    middle-tier           OC4J_Portal             Portal            %ORACLE_HOME%\j2ee\OC4J_Portal\application-deployments\portal\OC4J_Portal_default_island_1\application.log
    middle-tier           OC4J_Portal30           Portal30          %ORACLE_HOME%\j2ee\OC4J_Portal30\application-deployments\portal30\OC4J_Portal30_default_island_1\application.log
    BI-Discoverer         OC4J_BI_Forms           Discoverer        %ORACLE_HOME%\j2ee\OC4J_BI_Forms\application-deployments\Discoverer\OC4J_BI_Forms_default_island_1\application.logMake sure that you are looking at the right instances and applications.
    Also note that on unix machines, all addresses are case-sensitive, and forward-slashes should be replaced with back-slashes.
    hope that helps!
    AMN

  • Custom error message in SAP application log

    Is there a way to add a custom error message to the SAP application log without passing the message variables MSGV1, MSGV2, MSGV3, MSGV4 and the Message class and number. 
    We want to pass a custom message from the BAPIRET2-MESSAGE without giving it a Message class and number.  The reason for this is that  we are using class based exceptions instead of the traditional message class with errors.  When we catch the class based exception, we take the error text of the exception and put in in the BAPIRET2-message and set the BAPIRET2-TYPE as 'E'.  Now we want to add this to the SAP application log.
    The call to 'BAL_LOG_MSG_ADD' takes a structure BAL_S_MSG which is just like BAPIRET2.  However this function builds the entry to the application log use the message variables MSGV1, MSGV2, MSGV3, MSGV4.  There is no provision to pass in the BAPIRET2 message.
    Add message to application log
      CALL FUNCTION 'BAL_LOG_MSG_ADD'
        EXPORTING
         i_log_handle              = app_log_handle
         i_s_msg                   = log_message
    Thanks,
    Jay

    Hi Jay,
    Did you see <b>BAL_LOG_EXCEPTION_ADD</b>?
    This FM is represented by the structure <b>BAL_S_EXC</b>. This can have various versions as described below:
    <b>Data of BAL_S_EXC Structure  /     Use</b>
    <b>EXCEPTION</b>  /                              Exception class from which an exception text 
                                                       is added to the log. This field must be filled.
    <b>MSGTY</b>  /                                     Message type (MSGTY) of a T100 message.
                                                       This field must also be filled for exceptions.
    <b>PROBCLASS,
    DETLEVEL,
    ALSORT, TIME_STMP</b>  /                Message or exception attributes, such as
                                                        problem class (PROBCLASS, for
                                                        example, "very important"), level of detail
                                                        (DETLEVEL, from 1 to 9), sort criterion
                                                        (ALSORT, unrestricted) and timestamp
                                                        (TIME_STMP). These fields can be displayed
                                                        in the log (except TIME_STMP).
    <b>MSG_COUNT</b>   /                            This attribute is not used for exceptions.
    Follow the link below for more details:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/d6/5d7f38f52f923ae10000009b38f8cf/frameset.htm">SAP Help DOc</a>
    Hope this helps.
    Thanks
    Sanjeev

  • Had this error msg in my application log:

    Had this error msg in my application log:
    [21/Feb/2002 10:16:20:7] info: REQ-012: thread add
    [21/Feb/2002 10:16:20:7] info: REQ-012: thread add
    [21/Feb/2002 10:16:20:7] info: ENGINE-ready: ready: 10820
    BASEURL: https://ssunp03.company.com:8081
    strURL: https://ssunp03.company.com:8081/cgi-bin/gx.cgi/AppLogic+EventServerManager
    EventServerHttpInvocation > java.net.MalformedURLException: unknown protocol: https
    **Out of memory, exiting**
    ld.so.1: /pimcreg5/imc/nas/40sp3/nas/usr/java/bin/sparc/native_threads/jre: fatal: /pimcreg5/imc/nas/40sp3/nas/us
    r/java/lib/sparc/native_threads/libjava.so: mprotect failed: Resource temporarily unavailable
    Killed
    Connected to LDAP server on ssunp03.company.com port 1390
    [21/Feb/2002 02:42:49:1] info: ENGINE-class_loader_created: New class loader com.kivasoft.engine.EngineClassLoade
    rNonVersionable@1c14d67f has just been created
    Can anyone share with me his experience about ld.so.1?? What is it and why does it cause my apps server to reboot?

    It looks like you might simply have run out of memory. It just looks like the JRE tried to adjust its memory map and run out space. When mprotect fails the problem probably isn't with the .so itself.
    What are the memory characteristics of your machine? Including the heap and stack space that you allocate for your JVM, as well as the actual physical and swap space available on the server.

  • Any guidelines using RSAL_LOG_WRITE to post message in the application log

    Hi SDN!
    I've programmed a rather complex extractor. As most you will know, the real test is when the extractor goes live in productions;-) So in order to be able to check if everything works as designed - I've customized the extractor in order to post more or less entries in the application logs - This setting can be alterered in the uses system directly.
    I've tested the functionality using RSA3 and the application log is filled as expected. The Application log object is RSFH and everything shows up fine. When tring to use it from BW - The application log gets no entries under object RSAP (Where they normally will end up).
    I'm using the function module RSAL_LOG_WRITE to add entries to the same log as the macroes LOG_WRITE uses.
    Does anybody have any experiance adding entries to the standard application log in the source system when extracting data into BW?
    Best Regards
    Søren Hansen

    Sorry Arkesh,
    I to don't know that how to install the jar files, actually thats the role of BASIS guys.
    Watch the below threads for which jar files we need to deploy and how to deploy the jar files
    Re: Required jar files for using jdbc adapter
    Re: Error in JDBC adapter

  • How to add custom error message in standard application log of change doc.

    Hi,
    While saving chnage document I need to add raise an error on specific condition. As Error messages is being shown in application log I added custom message in include LCRM_1O_UIF15 by using BAL_LOG_MSG_ADD FM however it is not showing in the screen. What could be the reason? Can anybody please explain?
    Rgds
    Sudhanshu

    Muhammed,
    Have you tried throwing a JboException in your AM code?
    John

  • Log messages for 'auditing' are different in 'general'  and'application log

    Hi,
    From UI, When I audit a file using a profile which comprises of user-defined 'rules/categories/analyzers', I will get log messages at ''File-name(Application) log window' and 'Messages' log window, which are located at bottom of Jdev UI page. One common message in both the log windows is
    " <n1> violations, <n2> exceptions, <n3> documents, <n4> seconds>.
    But here the 'n1,n2,...' numbers are dfferent in two windows though the log output is for a same file. In this the 'file-name' log shows the correct
    Example:-
    In 'file-name' log window ,it shows as:
    3 documents, 8 violations, no exceptions
    In messages window, it shows as
    "Audit starting on EFC.jpr (Default)
    Audit completed: no violations, no exceptions, 3 documents, 1 second"
    If I use the 'pre-existed'(Jdev's) rules profile, I will get similar output in both log windows.
    From this I concluded that there is something missing to register for a new 'rule/category/analyzer'.
    Could you suggest me in this case. Do I forgot anything to do in any files of '<rule-implementation.java>', 'audit.properties', <add-in launcher>.java, extension.xml.
    Actually, I want to use 'ojaudit' executable from command line to my project files. Here I observed that the output of the 'ojaudit' is similar to the above explained 'Message' log window in JDeveloper UI. But where the 'Message' log window output is not correct for user-defined rules.
    Regards
    Madhu

    Romano,
    In the upcoming production release (planned to be released next week), we added caching of authorized roles and permissions in JhsAuthorizationProxy class.
    I suggest you wait for this relase, if the problem persists, it is most likely an ADF issue (as is the logging)
    Steven Davelaar,
    JHeadstart team.

  • Doubt in creating program to display application logs

    Hi,
    I have doubt in creating a program to display application logs.
    The standard transaction code SLG1 has been used to display Application logs till now by the user.
    They came up with the new requirement on this.
    <u>The requirements were:</u>
    1)New custom program shoud be created like SLG1 with limited selection fields( data from, date to, Program name and User)
    2) Detail list should be displyed immediately when this program is executed because SLG1 gives Basic list,Detailed list which is getting displayed when 'Detail view' is selected in the first list.
    I have created one program with limited selection fields as per the requirement using the below function modules .
    BAL_FILTER_CREATE
    BAL_DB_SEARCH
    BAL_DB_LOAD
    and BAL_DSP_LOG_DISPLAY
    <u>Issue :</u> still I am getting the firt list.
    both Basic and Detailled lists are getting triggered at the FM BAL_DSP_LOG_DISPLAY.
    Is it only the way to copy and modify this FM.
    Could you please suggest me?
    Thans in advace,
    babu.
    Message was edited by:
            babu v
    Message was edited by:
            babu v

    Hello All,
    Thanks for your valuable suggitions.
    I have seen most of the demo programs.
    I found one fm'BAL_DSP_PROFILE_NO_TREE_GET' which avoids the tree list which is getting listed above the profile list.
    I have been searching alot to omit the Profile list. I searched alot to find any function modules realted to that.
    The requirement was only the Detail list should only be listed.
    Could you please suggest me to avopid that profile list also?
    Thanks in advance,
    babu
    Message was edited by:
            babu v

Maybe you are looking for

  • How do I use Typekit fonts within Edge Animate

    I have applied a 'Pragmatica' Typekit font to a website.  I'm using Edge animate to construct some pages and within these pages want to add Type; however, Edge Fonts does not include the Typekit font 'Pragmatica' and the instruction for the page to u

  • Creation of Note in PDF file generated from Output Server

    I would like to be able to force Output Server to create a Note (in expanded format) on a PDF file. I see the bookmark information in the manual, however I was not able to locate any documentation referencing the note tool. Is this possible? If so, c

  • Creating a PDF-Mail-Attachment via Abap Mapping possible ?

    Hi folks, I am trying to build a szenario like: Getting an Idoc -> sending it to abap mapping -> map a pdf from smartforms in abap -> map the from/to for the mail payload -> come back from abap mapping -> send it with the mail adapter . But now I am

  • What is the symbol $ for?

    Hi i'd like to know what is the $ symbol for and when it can be used. I've seen it in class definitions like "org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process" Thanks

  • CM21 - strategy set up for special dispatching features

    Hello experts, I want to set up a strategy for following case: If the result of dispaching an operation is that the scheduled start date of the operation is earlier than the basic start date of the order - the dispatching has to be canceled, but if a