Invalid timestamp in logs

Hi
I've found this in server logs:
005-02-21 11:22:16 CET HPServer
Warning Log Management
The date field is probably invalid on
D:\BEA\XX\XXServer\XXServer.log00238 line 518.
Message ignored during search
while:
BEA-170014
Warning: The date field is probably invalid on fname line lineNum. The message was ignored during the search.
Description
The date and time information in the log entry field is not correctly formatted.     
Cause
A timestamp might not be formatted for the locale setting on the machine.     
Action
Correct the locale setting for the server machine.
let's see XXServer.log00238:
there are 2 different kind of timestamps ->
####<2005-02-17 07:52:53 CET>
and
####<Feb 17, 2005 8:04:20 AM CET>
what can cause this ? where can i change type of timestamp ?
thanks a lot

Meanwhile, I found a better sollution, in WebAS itself.
It's called lv.bat (for Win, otherwise lv.sh), and it stays in \usr\sap\...\j2ee\admin\logviewer-standalone\
It has two great options:
>lv.bat sourceFile -o outputFile
converts milliseconds into human readable format and stores it into output file
>lv.bat sourceFile -t
similar to tail -f command in linux, or tomcat console
I did some associations in winddows context menu, so now I can read or watch log files with one single click.
really great utility!

Similar Messages

  • Mod_hlshttp [500]: Invalid timestamp found in the message while processing /hls-live/streams/rd-mp4

    Hi,
    We use  FMS 4.5.1 for streaming MP4 (H264/AAC) live streams to flash clients and iPads. Occassionally iPad viewers get error messages indicating that the video cannot be played. On these occasions we see error messages like this in our Apache logs:
    mod_hlshttp [500]: Invalid timestamp found in the message while processing /hls-live/streams/rd-mp4/events/noordoostpolder_1/liveevent/livestreamNum4390.ts
    Strangely enough this error message cannot be found anywhere in Adobe's documentation or anywhere else on the net (or perhaps I haven't searched well enough...)
    Has anyone else here encountered this problem and/or does anyone have an idea as to what causes these messages and this problem?
    Message was edited by: GRO-NIC: Does anyone have any idea? And/or can someone from Adobe respond? We are still receiving complaints from several of our customers about this.

    Hi,
    We use  FMS 4.5.1 for streaming MP4 (H264/AAC) live streams to flash clients and iPads. Occassionally iPad viewers get error messages indicating that the video cannot be played. On these occasions we see error messages like this in our Apache logs:
    mod_hlshttp [500]: Invalid timestamp found in the message while processing /hls-live/streams/rd-mp4/events/noordoostpolder_1/liveevent/livestreamNum4390.ts
    Strangely enough this error message cannot be found anywhere in Adobe's documentation or anywhere else on the net (or perhaps I haven't searched well enough...)
    Has anyone else here encountered this problem and/or does anyone have an idea as to what causes these messages and this problem?
    Message was edited by: GRO-NIC: Does anyone have any idea? And/or can someone from Adobe respond? We are still receiving complaints from several of our customers about this.

  • SEVERE: Message: [-3050]: Invalid timestamp format:ISO(input position 2)

    Hello!
    I'm installing a AS JAVA 2004S with EP/EP-CORE and BI_JAVA and got following error during Java Load step.   (The installation successfully creates and loads about 1000 tables prior the error).
    Regards,
    Fredrik
    serverXX:/usr/sap/TPQ/ciinst # more jload.java.log
    java version "1.4.2"
    Java(TM) 2 Runtime Environment, Standard Edition (build 2.2)
    IBM J9SE VM (build 2.2, J2RE 1.4.2 IBM J9 2.2 Linux amd64-64 j9xa64142-20061124 (JIT enabled)
    J9VM - 20061121_1035_LHdSMr
    JIT  - r7_level20061020_1803)
    May 24, 2007 11:39:52 AM com.sap.inst.jload.Jload main
    INFO: Jload -sec TPQ,jdbc/pool/TPQ,/usr/sap/TPQ/SYS/global/security/data/SecStore.properties,/usr/sap/TPQ/SYS/global/security/data/Se
    cStore.key -dataDir /a_stage/51032257/JAVA_EXPORT/JDMP -job /usr/sap/TPQ/ciinst/IMPORT.XML -log jload.log
    May 24, 2007 11:39:53 AM com.sap.inst.jload.db.DBConnection connectViaSecureStore
    INFO: connected to TPQ on jdbc/pool/TPQ
    May 24, 2007 11:39:53 AM com.sap.inst.jload.JobStatus readStatus
    INFO: trying to read status file /usr/sap/TPQ/ciinst/IMPORT.sta
    May 24, 2007 11:39:53 AM com.sap.inst.jload.JobStatus readStatus
    INFO: commencing restart
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload dbImport
    INFO: trying to delete from table BC_UDDI_PARAM
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload dbImport
    INFO: BC_UDDI_PARAM deleted
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload dbImport
    SEVERE: DB Error during import of BC_UDDI_PARAM
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload printSQLException
    SEVERE: Message: [-3050]: Invalid timestamp format:ISO(input position 83)
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload printSQLException
    SEVERE: SQLState: I3050
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload printSQLException
    SEVERE: ErrorCode: -3050
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload dbImport
    INFO: trying to delete from table BC_XMLA_COL
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload dbImport
    INFO: BC_XMLA_COL deleted
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload dbImport
    SEVERE: DB Error during import of BC_XMLA_COL
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload printSQLException
    SEVERE: Message: [-3050]: Invalid timestamp format:ISO(input position 2)
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload printSQLException
    SEVERE: SQLState: I3050
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload printSQLException
    SEVERE: ErrorCode: -3050
    May 24, 2007 11:39:53 AM com.sap.inst.jload.db.DBConnection disconnect
    INFO: disconnected
    serverXX:/usr/sap/TPQ/ciinst #

    Hi
    yes, I had the same issue and I found a solution.
    You need to request a patch for BUG 9212862 (already corrected in WLS 10.3.3) and do the follwing:
    javax.xml.ws.BindingProvider provider = (javax.xml.ws.BindingProvider)port;
    java.util.Map context = provider.getRequestContext();
    context.put(weblogic.wsee.jaxrpc.WLStub.POLICY_COMPATIBILITY_PREFERENCE, weblogic.wsee.jaxrpc.WLStub.POLICY_COMPATIBILITY_MSFT);      
    This will cause the SecurityMessageArchitect class of WLS to not send the SecurityTokenReference in the Soap security header.
    Please note that is evidently a non-comformity to the specs of microsoft:
    Please give a look at
    http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0.pdf (8.3 Signing Tokens)
    and also at:
    http://www.oasis-open.org/committees/download.php/16768/wss-v1.1-spec-os-SAMLTokenProfile.pdf
    (3.4 Identifying and Referencing Security Tokens)
    A SAML key identifier reference MUST be used for all (local and remote) references to SAML 1.1
    assertions. [...]
    All conformant implementations MUST be able to process SAML assertion references occurring in a
    <wsse:Security> header or in a header element other than a signature to acquire the corresponding
    assertion. A conformant implementation MUST be able to process any such reference independent of the
    confirmation method of the referenced assertion.
    It follows that the .NET 3.5 is a non conformat implementation: I would gladly know which is the position of Microsoft on that.
    ciao
    carlo

  • I am changing laptops and have tried to download and install Acobat 9 Standard from the Adobe website, but get message that my serial number is invalid. I log in and double check my account and it shows as a valid serial number.  Now what?

    I am changing laptops and have tried to download and install Acrobat 9 Standard from the Adobe website, but get message that my serial number is invalid. I log in and double check my account and it shows as a valid serial number.  Now what?

    If you had it on a laptop that crashed and you threw away, it is still considered as activated on that machine.  YOu should contact Adobe by chat or by phone and have them deactivate for you.
    Here is a link to a page with options to help make contact:
    http://www.adobe.com/support/download-install/supportinfo/
    If you are getting a message that indicates the serial number is not valid, you should look thru the following:
    Error "The serial number is not valid for this product" | Creative Suite
    http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html

  • The data form form name is invalid. Check log for details

    Hi all,
    i have just built a planning application from scratch and created my first form.
    i have encountered the error "The data form <form name> is invalid. Check log for details "
    and i have checked the log file.
    It reads as follows
    Unknown calculation type [0] during the dynamic calculation. Only default agg/formula/time balance operations are handled.
    An error [1012703] occurred in Spreadsheet Extractor.
    Spreadsheet Extractor Elapsed Time : [0] seconds
    Spreadsheet Extractor Big Block Allocs -- Dyn.Calc.Cache : [0] non-Dyn.Calc.Cache : [0]
    Transaction [ 0x60001( 0x4d8030e5.0xa0280 ) ] aborted due to status [1012703].
    User [admin] set active on database [Plan1]
    Can any one suggest me how to handle this.
    Thanks in advance

    user9192499 wrote:
    Hi all,
    i have just built a planning application from scratch and created my first form.
    i have encountered the error "The data form <form name> is invalid. Check log for details "
    and i have checked the log file.
    It reads as follows
    Unknown calculation type [0] during the dynamic calculation. Only default agg/formula/time balance operations are handled.
    An error [1012703] occurred in Spreadsheet Extractor.
    Spreadsheet Extractor Elapsed Time : [0] seconds
    Spreadsheet Extractor Big Block Allocs -- Dyn.Calc.Cache : [0] non-Dyn.Calc.Cache : [0]
    Transaction [ 0x60001( 0x4d8030e5.0xa0280 ) ] aborted due to status [1012703].
    User [admin] set active on database [Plan1]
    Can any one suggest me how to handle this.
    Thanks in advance
    ERROR 1012703
    *"Unknown calculation type [0] during the dynamic calculation. Only default agg/formula/time balance operations are handled."*
    There is an error in a formula(s), therefore, no calculations will work. The problem is that when you have the outline open in Edit mode and you try to 'Validate', it does not identify any of these errors, nor does it write it to a log. However, you can go one by one and validate each formula. So any time you delete a member or modify a member name, be sure that this member is not included in any formula.
    Regards,
    Prabhas

  • The data Form is invalid. Check log for details.

    Hi All,
    I am getting the following error, when I try to open a form.
    The data form 1. Current Year Forecast Input Form is invalid. Check log for details.
    Could you please let us know the path of the log file.
    Thanks & Regards,
    Sravan Kumar.

    Hi,
    If you want to know what patch release you are you, then log into planning directly and click help > about
    The latest patch is :- 7229787 — You cannot open a Planning data form in Smart View, if in Planning preferences, the property for Indentation of Members on Page Display is set to Indent based on hierarchy.
    I believe John was referring to this bug which was resolved in patch 9.3.1.1.6 :-
    7229787 — You cannot open a Planning data form in Smart View, if in Planning preferences, the property for Indentation of Members on Page Display is set to Indent based on hierarchy.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Tool for timestamp in logs and traces

    Hi,
    Last year I saw an utility for converting timestamps in logs and traces into human readable format.
    It was a resident program in the tray bar, with a green icon with letter "H" in it, activated by Ctrl+F9.
    Does anyone have a link to download this tool?
    10x in advance

    Meanwhile, I found a better sollution, in WebAS itself.
    It's called lv.bat (for Win, otherwise lv.sh), and it stays in \usr\sap\...\j2ee\admin\logviewer-standalone\
    It has two great options:
    >lv.bat sourceFile -o outputFile
    converts milliseconds into human readable format and stores it into output file
    >lv.bat sourceFile -t
    similar to tail -f command in linux, or tomcat console
    I did some associations in winddows context menu, so now I can read or watch log files with one single click.
    really great utility!

  • DSC 8.6.1 wrong timestamps for logged data with Intel dual core

    Problem Description :
    Our LV/DCS 8.6.1 application uses shared variables to log data to Citadel. It is running on many similar computers at many companies just fine, but on one particular Intel Dual Core computer, the data in the Citadel db has strange shifting timestamps. Changing bios to startup using single cpu fixes the problem. Could possibly set only certain NI process(es) to single-cpu instead (but which?). The old DSCEngine.exe in LV/DSC 7 had to be run single-cpu... hadn't these kind of issues been fixed by LV 8.6.1 yet?? What about LV 2009, anybody know?? Or is it a problem in the OS or hardware, below the NI line??
    This seems similar to an old issue with time synch server problems for AMD processors (Knowledge Base Document ID 4BFBEIQA):
    http://digital.ni.com/public.nsf/allkb/1EFFBED34FFE66C2862573D30073C329 
    Computer info:
    - Dell desktop
    - Win XP Pro sp3
    - 2 G RAM
    - 1.58 GHz Core 2 Duo
    - LV/DSC 8.6.1 (Pro dev)
    - DAQmx, standard instrument control device drivers, serial i/o
    (Nothing else installed; OS and LV/DSC were re-installed to try to fix the problem, no luck)
    Details: 
    A test logged data at 1 Hz, with these results: for 10-30 seconds or so, the timestamps were correct. Then, the timestamps were compressed/shifted, with multiple points each second. At perfectly regular 1-minute intervals, the timestamps would be correct again. This pattern repeats, and when the data is graphed, it looks like regular 1-sec interval points, then more dense points, then no points until the next minute (not ON the minute, e.g.12:35:00, but after a minute, e.g.12:35:24, 12:36:24, 12:37:24...). Occasionally (but rarely), restarting the PC would produce accurate timestamps for several minutes running, but then the pattern would reappear in the middle of logging, no changes made. 
    Test info: 
    - shared variable configured with logging enabled
    - data changing by much more than the deadband
    - new value written by Datasocket Write at a steady 1 Hz
    - historic data retrieved by Read Traces
    - Distributed System Manager shows correct and changing values continuously as they are written

    Meg K. B. , 
    It sounds like you are experiencing Time Stamp Counter (TSC) Drift as mentioned in the KB's for the AMD Multi-Core processors. However, according to this wikipedia article on TSC's, the Intel Core 2 Duo's "time-stamp counter increments at a constant rate.......Constant TSC behavior ensures that the duration of each clock tick is
    uniform and supports the use of the TSC as a wall clock timer even if
    the processor core changes frequency." This seems to suggest that it would be not be the case that you are seeing the issue mentioned in the KBs.
    Can you provide the exact modle of the Core 2 Duo processor that you are using?
    Ben Sisney
    FlexRIO V&V Engineer
    National Instruments

  • How to append timestamp to log file in SQL*Plus ?

    Version: 11.2.0.3
    Platform : RHEL 5.8 (But I am looking for platform independant solution)
    I want to append the timestamp to spooled log file name in SQL*Plus.
    The spooled log filename should look like
    WMS_APP_23-March-2013.logI tried the following 3 methods found in the google. But none of them worked !
    I tried this
    col sysdt noprint new_value sysdt_var
    SELECT TO_CHAR(SYSDATE, 'yyyymmdd_hh24miss') sysdt FROM DUAL;
    spool run_filename_&sysdt_var.Logas suggested in
    http://power2build.wordpress.com/2011/03/11/sqlplus-spool-name-with-embedded-timestamp/
    and this
    spool filename with timestamp
    col sysdt noprint new_value sysdt
    SELECT TO_CHAR(SYSDATE, 'yyyymmdd_hh24miss') sysdt FROM DUAL;
    spool run_filename_&sysdt..Logas suggested in
    http://powerbuildev.wordpress.com/2011/03/11/sqlplus-spool-name-with-embedded-timestamp/
    and this
    column tm new_value file_time noprint
    select to_char(sysdate, 'YYYYMMDD') tm from dual ;
    prompt &file_time
    spool logfile_id&file_time..logas suggested in
    Creating a spool file with date/time appended to file name
    None of the above worked in RHEL or MS DOS. Any workaround ?

    I have tested your suggestions. But I still couldn't append the date to the logfile in RHEL or MS DOS SQL*Plus
    Here are the attempts I've made. I am posting how the logfile looked like after every test.
    #Attempt1 with two dots (&sysdate..log )
    set echo on
    set feedback on
    set define off
    set pages 999
    column dcol new_value SYSDATE noprint
    select to_char(sysdate,'YYYYMMDD') dcol from dual;
    spool testlog.&sysdate..log
    select 'hello' from dual;
    spool off;Log File Name -- > testlog.&sysdate..log
    #Attempt2 with single dot (&sysdate.log)
    set echo on
    set feedback on
    set define off
    set pages 999
    column dcol new_value SYSDATE noprint
    select to_char(sysdate,'YYYYMMDD') dcol from dual;
    spool testlog.&sysdate.log
    select 'hello' from dual;
    spool off;Log File Name ---> testlog.&sysdate.log
    #Attempt3. Replacing first dot with Hyphen (testlog- ) to check if the first dot was causing the issue
    set echo on
    set feedback on
    set define off
    set pages 999
    column dcol new_value SYSDATE noprint
    select to_char(sysdate,'YYYYMMDD') dcol from dual;
    spool testlog-&sysdate.log
    select 'hello' from dual;
    spool off;Log Filename: testlog-&sysdate.log
    #Attempt4: replacing SYSDATE with SDATE
    set echo on
    set feedback on
    set define off
    set pages 999
    column dcol new_value SDATE noprint
    select to_char(sysdate,'YYYYMMDD') dcol from dual;
    spool testlog1.&SDATE..log
    select 'hello' from dual;
    spool off;Log File Name -- > testlog1.&SDATE..log

  • Invalid standby redo log

    On standby database there is a standby log file with status
    invalid on ASM diskgroup. In the same log group there is a valid standby log file.
    I've tried to drop it and recreate it but its status is still invalid.
    Why the status of that file is invalid? It should be inaccessible
    to oracle somehow,but I can e.g. view properties of that file by EM db. control.

    Hi,
    After I clear the logfile, the invalid logfile member is delete from standby database.
    The alert log from standby database is:
    ORA-00313: open failed for members of log group 1 of thread 1
    Deleted Oracle managed file +FRA/PROJ_STD/onlinelog/group_1.948.766576659
    Deleted Oracle managed file +REDO01/PROJ_STD/onlinelog/group_1.288.766581971
    Deleted Oracle managed file +REDO02/PROJ_STD/onlinelog/group_1.288.766582015
    Completed: alter database clear logfile group 1What is correct? on primary and standby database must be equals about online redo logs?
    Why the Oracle delete the online log files that I add on standby?
    Thank you!!!!

  • SSGD 4.40.907 and SLES10-SP1 64bit - Invalid credentials while logging in

    Hello everybody.
    As a test, I installed SSGD 4.40.907 on a SLES10-SP1 64bit virtual operating system (it's operating using the XEN hypervisor, paravirtualized mode).
    The installation went well (I had to copy old libraries - namely, libexpat.so.0.5.0 and libgdbm.so.2.0.0 - from a previous version of SLES + ldconfig) and I was able to get to the login prompt but as soon as I entered the "root" password I got "Invalid credentials".
    I tried again (in my test environment, the root password is VERY simple) but no dice; I checked the root password by logging into the system using SSH and it worked fine.
    I tried with different local accounts (eg, ttaserv and ttasys) but got the same message.
    Please notice that, under the very same piece of HW but using a SLES10-SP1 *32bit* under XEN, everything works as expected so it seems a 64bit OS related issue.
    Thanks,
    Rob

    Casper,
    Can you please try the following.
    On the protected server please try to remove the account and remove the DPM agent. Reboot, after that please manually reinstall the DPM agent on the protected server -
    http://technet.microsoft.com/en-us/library/hh757789.aspx.  Run the setdpmserver command and after completing successfully check the account to ensure the following.
    1) It is set for the password not to expire and user cannot change password
    2) Is included in the following groups, DCOM Distributed Users, DPMRADCOMTrustedMachines, and DPMRADmTrustedMachines.
    If that all checks out, please goto the DPM console and tried to attach from the DPM console first and then try the powershell command if the console errors out. 
    Here are some other things to check as well:
    Step 1) Ensure NTLM is working - UNC from DPM to PS and back
    Step 2) Ensure DCOM is enabled on protected server - Type DCOMCNFG > Computers > My Computer, right click and select properties, go to Default Properties and ensure "Enable Distributed COM on this computer" is checked
    Step 3) Ensure all firewalls have needed ports open -
    http://technet.microsoft.com/en-us/library/hh758204.aspx
    Step 4) Ensure user account is set to never expire and user cannot change password
    Step 5) Try attach from DPM console first then DPM powershell
    If that still does not work please ensure you are on the latest DPM patch and try again. 
    For DPM2012 SP1 that is DPM3.6(Note: you will need to have RU3 installed prior)
    4.1.3419.0 - DPM RU3.6 - Hotfix for System Center 2012 SP1 Data Protection Manager (KB2886362)
    http://www.microsoft.com/en-us/download/details.aspx?id=40318
    4.1.3417.0 - DPM RU3 - Description of Update Rollup 3 for System Center 2012 Service Pack 1
    http://support.microsoft.com/kb/2836751
    Regards, A.Nadar, This posting is provided &quot;AS IS&quot; with no warranties, and confers no rights.

  • Regarding Log4.xml to add timestamp in log file

    Dear Sir,
    Could you guide me how to append the timestamp got appeared in log file which has been generated from Log4j.xml?? This is my Log4j.xml.
    <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <!-- Order of child elements is appender*, logger*, root?. --> <!-- Appenders control how logging is output. --> <appender name="CM" class="org.apache.log4j.FileAppender"> <param name="File" value="Master.log"/> <param name="Threshold" value="DEBUG"/> <param name="Append" value="true"/> <param name="MaxFileSize" value="1MB"/> <param name="MaxBackupIndex" value="1"/> <layout class="org.apache.log4j.PatternLayout"> <!-- {fully-qualified-class-name}:{method-name}:{line-number} - {message}{newline} --> <param name="ConversionPattern" value="%C:%M:%L - %m%n"/> </layout> </appender> <appender name="stdout" class="org.apache.log4j.ConsoleAppender"> <param name="Threshold" value="INFO"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%C:%M:%L - %m%n"/> </layout> </appender> <!-- Logger hierarchy example: root - com - com.ociweb - com.ociweb.demo - com.ociweb.demo.LogJDemo --> <!-- Setting additivity to false prevents ancestor categories for being used in addition to this one. --> <logger name="com.tf" additivity="true"> <priority value="DEBUG"/> <appender-ref ref="CM"/> </logger> <!-- Levels from lowest to highest are trace, debug, info, warn, error, fatal & off. --> <!-- The root category is used for all loggers unless a more specific logger matches. --> <root> <appender-ref ref="stdout"/> </root> </log4j:configuration> It would be great, if you could give the solution for this. There is no probs in getting timestamp from the folowing properties file Log4j.properties: # # Configure the logger to output info level messages into a rolling log file. # log4j.rootLogger=DEBUG, R log4j.appender.R=org.apache.log4j.DailyRollingFileAppender log4j.appender.R.DatePattern='.'yyyy-MM-dd # # Edit the next line to point to your logs directory. # The last part of the name is the log file name. # log4j.appender.R.File=c:/temp/log/${log.file} log4j.appender.R.layout=org.apache.log4j.PatternLayout # # Print the date in ISO 8601 format # log4j.appender.R.layout.ConversionPattern=%d %-5p %c %L - %m%n but i need it from Log4j.xml
    thanks in advance mani

    Dear Sir,
    Could you guide me how to append the timestamp got appeared in log file which has been generated from Log4j.xml?? This is my Log4j.xml.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    <log4j:configuration
      xmlns:log4j="http://jakarta.apache.org/log4j/">
      <!-- Order of child elements is appender*, logger*, root?. -->
      <!-- Appenders control how logging is output. -->
      <appender name="CM" class="org.apache.log4j.FileAppender">
         <param name="File" value="customer_master.log"/>
         <param name="Threshold" value="DEBUG"/>
         <param name="Append" value="true"/>
         <param name="MaxFileSize" value="1MB"/>
         <param name="MaxBackupIndex" value="1"/>
        <layout class="org.apache.log4j.PatternLayout">
          <!-- {fully-qualified-class-name}:{method-name}:{line-number}
                - {message}{newline} -->
          <param name="ConversionPattern" value="%C:%M:%L - %m%n"/>
        </layout>     
      </appender>
      <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
        <param name="Threshold" value="INFO"/>
        <layout class="org.apache.log4j.PatternLayout">
          <param name="ConversionPattern" value="%C:%M:%L - %m%n"/>
        </layout>
      </appender>
      <!-- Logger hierarchy example:
           root - com - com.ociweb - com.ociweb.demo - com.ociweb.demo.LogJDemo
      -->
      <!-- Setting additivity to false prevents ancestor categories
           for being used in addition to this one. -->
      <logger name="com.tf" additivity="true">
        <priority value="DEBUG"/>
        <appender-ref ref="CM"/>
      </logger>
      <!-- Levels from lowest to highest are
           trace, debug, info, warn, error, fatal & off. -->
      <!-- The root category is used for all loggers
           unless a more specific logger matches. -->
      <root>
        <appender-ref ref="stdout"/>
      </root>
    </log4j:configuration>It would be great, if you could give the solution for this. There is no probs in getting timestamp from the folowing properties file Log4j.properties:
    # Configure the logger to output info level messages into a rolling log file.
    log4j.rootLogger=DEBUG, R
    log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
    log4j.appender.R.DatePattern='.'yyyy-MM-dd
    # Edit the next line to point to your logs directory.
    # The last part of the name is the log file name.
    log4j.appender.R.File=c:/temp/log/${log.file}
    log4j.appender.R.layout=org.apache.log4j.PatternLayout
    # Print the date in ISO 8601 format
    log4j.appender.R.layout.ConversionPattern=%d %-5p %c %L - %m%nthanks in advance

  • Add Timestamp to log out put

    Hello,
    I would like to add timestamp to sql output file but can't seem to find the solution on the web.
    Tried to use "set echo on", "set serveroutput on", "set time on" but it does not add timestamp to actual output
    as below example shows.
    set echo on
    set serveroutput on
    set time on
    set linesize 150
    spool dba_ts.log
    select tablespace_name, status, contents, logging
    from dba_tablespaces
    order by tablespace_name;
    spool off
    ========
    13:13:00 SQL>
    13:13:00 SQL> select tablespace_name, status, contents, logging
    13:13:00 2 from dba_tablespaces
    13:13:00 3 order by tablespace_name;
    TABLESPACE_NAME STATUS CONTENTS LOGGING
    AKD ONLINE PERMANENT LOGGING
    AKX ONLINE PERMANENT LOGGING
    APD ONLINE PERMANENT LOGGING
    I would like to see something similar to below where date/time is stamped to each line generated in log file.
    06-28-2009 02:07:32 - AKD ONLINE PERMANENT LOGGING
    06-28-2009 02:07:32 - AKX ONLINE PERMANENT LOGGING
    06-28-2009 02:07:32 - APD ONLINE PERMANENT LOGGING
    Thank you in advance.

    Hi,
    Welcome to the forum!
    The function SYSDATE will return the current date and time.
    Use TO_CHAR to format it the way you want, for example:
    SELECT  TO_CHAR (SYSDATE, 'MM-DD-YYYY HH24:MI:SS')  AS dt_tm
    ...The value returned by SYSDATE will not change within a query, even if the query takes several seconds or minutes to run.
    SET   TIME  ON(as you already have) will print the time (in HH24:MI:SS format) before each prompt.

  • OEL 6 install - invalid credentials when logging in through web client

    I've installed 11g XE on Oracle Enterprise Linux 6.1, seems to be running fine and listener is up. I can successfully log into SQLPlus using sys as sysdba via oracle user, but when I try to run APEX or QuickStart or RCU using the same credentials, I get "invalid credentials". I'm trying to get full FMW install and obviously need RCU to build schemas, so I'm stuck. Any advice would be appreciated.

    Hello,
    FMW does indeed install and run on top of XE as long as you set character set and parameters appropriatelyWhere do you adjust that charset? It should be FMW, not XE...
    I can't get into APEX for example as SYSWhat do you mean with "APEX" in that context? The APEX Administration would have "ADMIN" as default account, using the same password you assigned in the installation wizard.
    If you refer to the "Get Started"-URL (http://127.0.0.1:8080/apex/f?p=4950), this is an XE-specific APEX application that doesn't use APEX authentication, but database user authentication instead. For this application, your SYS password should work, as it's actually exactly the same authentication you get for your command line.
    Perhaps it would help to know which URL you are calling and which value you enter for username. Note that "SYS AS SYSDBA" would not be a valid username (because it includes the role), whereas just "SYS" is okay.
    The one thing RCU, APEX, etc. have in common is that they're web clients.XE uses the so called "Embedded PL/SQL Gateway" hosted by the database internal XDB HTTP Server by default. Though a web server, it's not a real client to the database, as it doesn't connect external. The only external part is the HTTP communication, but this seems to work fine since you didn't report that you don't get the login screen for APEX...
    -Udo

  • Invalid status of log

    Dear All.
    The database version is oracle 10.2.0.4.0 and the OS is hP UX.
    The out come of the v$logfile is as following below.
    GROUP# STATUS TYPE MEMBER IS_
    4 INVALID ONLINE /u101a/ora10g/oradata/pliv/redo4.log NO
    4 ONLINE /data2/oradata/pliv/pliv/redo4b.log NO
    5 INVALID ONLINE /u101a/ora10g/oradata/pliv/redo5.log NO
    5 ONLINE /data2/oradata/pliv/pliv/redo05b.log NO
    6 INVALID ONLINE /u101a/ora10g/oradata/pliv/redo6.log NO
    6 ONLINE /data2/oradata/pliv/pliv/redo06b.log NO
    6 rows selected.
    We have 3 members status are invalid. The issue is that we want to change the path of the invalid member to new path and we can't shutdown the database.
    So is any way we can do this with out shuting the oracle database?
    Regards

    Hi,
    You must shutdown the db for relocating the logfile or otherwise create a different log group in the
    desired location..
    Refer the link,
    http://docs.oracle.com/cd/B19306_01/server.102/b14231/onlineredo.htm
    Regards,
    Jai

Maybe you are looking for

  • Still unable to save bookmarks in Safari 5.1.2 - any clues?

    Starting with Safari 5.1.1 on Lion I have been unable to save any bookmarks after an initial few hours running when it has been possible. I had hoped that the new release of Safari 5.1.2 might have cured the problem, but it doesn't appear to have don

  • Need suggestion on how to extract data from a table

    Many years ago, I wrote many Perl scripts to increase my work productivity. Now I am starting learning Java, Javascript and PHP for some purposes. Just wrote a simple html2txt java program. Now I need experts' suggestion for one specific purpose - ex

  • Error while executing MFBF for HU storage location

    Hello Experts, Can you please explain me the step by step process as how to perform Backflush for materials stored in HU managed storage location. I am trying to do this for a make to order 'sales order' but I get error "Receving storage location 020

  • Best Bit Rate for Better sound

    I'm new to the iTunes/iPod thing. A friend told me that he re-sets the bit rate from the default of 128 kpbs to the top of 320 kbps for better quality. [He plays everything off of his computer which is wired to speakers throughout his house and does

  • Calling an ABAP program from a document list

    Hi, we have the following problem with a custom ABAP program. This program executes a lot of user's functions, such as documents creation, material movements creation, and so on.. from a single dynpro. We would like to call this program from a list o