Time Stamp

I am trying to add Time stamp along with the date. But using the TO_CHAR function getting error as Invalid Number.
Please help me to sort out this problem. The query for which I am facing this issue is.
SELECT A.NAME ,A.ounum ,A.divi,A.lastupd
FROM temp A
WHERE A.div ='2.3 xyz'
and A.OUNUM is NOT NULL
AND A.lastupd BETWEEN TO_CHAR('08-DEC-2008 00:00:00','DD-MON-YYYY HH:MI:SS')
AND TO_CHAR(SYSDATE,'DD-MON-YYYY HH:MI:SS')
getting error as Invalid number ORA-01722. Please suggest some solution for this.

SELECT A.NAME ,A.ounum ,A.divi,A.lastupd
FROM temp A
WHERE A.div ='2.3 xyz'
and A.OUNUM is NOT NULL
AND A.lastupd BETWEEN TO_CHAR('08-DEC-2008 00:00:00','DD-MON-YYYY HH:MI:SS')
AND TO_CHAR(SYSDATE,'DD-MON-YYYY HH:MI:SS')
A.lastupd - Is this a timestamp field or character?
If it is a timestamp then you converting your date in wrong type. It should be TO_TIMESTAMP and not TO_CHAR.
Regards.
Satyaki De.

Similar Messages

  • Appending and add time stamp at a time........

    Hi all,
    i am working on a scenario...
    it is file based..no mapping and bpm can be used.
    I need to pick up file through xi and append it and put in the target with time stamp to it.
    we can achieve this if mapping or bpm is allowed.....
    But,in file processing we can use only one option at a time.....
    I found a way:
    scenario one: files will be appened and kept in a temparory folder
    using another scenario we will pick up the appeneded file and add time stamp and keep in target structure...
    but i dont think this is advisable...
    please suggest me any other ways to achieve this...(can run operating system command be helpfull??)
    thanks in advance..
    Regards,
    Kiran.

    HI,
    Yes you are right, Appending and adding Time Stamp will not be possible simultaneously.
    Refer - this could help you
    Dynamic Filename with TimeStamp  
    Dynamic Filename with TimeStamp
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    But some how you have to use mapping for it. Then if its allowed to use the mapping then as you have suggested, should have to go for two scenarios. No alternative,
    Probably also you can try with Customized Adapter Module for this.
    Thanks
    swarup

  • Changing time stamp format in the file receiver adapter file name

    Hi all,
    How can we change the standard date time stamp from
    filename_yyyymmdd-hhmmss-mil
    to
    filename_yymmdd_hhmmss
    i.e.,  I want "underscores" instead of "hyphens" and also I do not want the MilliSeconds.
    I read in the forums that I have to use the combination of variable substitution and mapping functions to do this, but not sure how exactly.
    Can the experts help me with this please?
    Many thanks.

    Hello Ramesh,
         You can make this possible using runtime filename creation using UDF.
    Please go though the below steps.
    Message mapping:  
    Create an UDF and include the piece of code that captures the Filename and Timestamp from source side via ASMA.
    Modify them according to our requirement by adding the <Timestamp> at the end of <filename> with _.
    Map the UDF to any of the top level node so that the modified filename will be available for the target communication channel
    UDF Code is:
    try {
    String filename    = "";
    String timestamp = "";
    DynamicConfiguration conf1 = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http:/"+"/sap.com/xi/XI/System/File","FileName");
    DynamicConfigurationKey key2 = DynamicConfigurationKey.create( "http:/"+"/sap.com/xi/XI/System/File","SourceFileTimestamp");
    filename = conf1.get(key1);
    timestamp = conf1.get(key2);
    filename = filenametimestamp".xml";
    filename = filename.replaceAll( "-" ,"_" );
    conf1.put(key1,filename);
    return filename;
    catch(Exception e)
         String exception = e.toString();
          return exception;
    Click on Advanced tab and check the Option u201CSetAdapterSpecificMessageAttributesu201D in addition to that check the attribute that are required to be captured during run time. In our case File Name and Source File Time Stamp are required to be checked
    In the receiver communication channel Mention u2018 * u2018as File Name Scheme.
    Click on Advanced tab and check the Option u201CSetAdapterSpecificMessageAttributesu201D in addition to that check the attribute u201CFile Nameu201D which will carry the modified value in the UDF .
    i hope this will help you.
    Monica

  • VOICE MEMOS and Wrong Time Stamps in Itunes

    I've noticed that my voice memos in the new iTunes 11.1.3 (8) have incorrect time stamps all over them now. This is a real problem for me, since I need the dates that the messages were recorded. I just tested this out by recording a new one today (2/11/14) on my new Iphone 5s. It showed up dated 8/13/12 2:13pm. My phone has the correct date on it, so what gives?
    Any solutions out there?
    Not to mention the fact that there are NUMEROUS DUPLICATES of previous memos that have become weird artifacts in my iTunes library each time I've backed up my materials. AND the new iTunes setup makes it incredibly hard to *actually remove data* from my system. I am concerned my private material is no longer private, but being archived elsewhere for meta-data purposes.
    C'mon, Apple. You're really slipping.

    I see all timezones, have you tried setting the time/date manually? I'd do than, then pop an email to support.
    Norwegian and a BB/PB user. Read what I mean, not what I spell.

  • Jabber Voicemail Incorrect Time Stamp

    I just noticed the the time stamp on my voicemails in Jabber v9.0.1 Build 12296 have the incorrect time stamp. They are all one hour behind. I confirmed that this does not happen in any of the following:
    Jabber v9.0.5
    CUPC v8.6
    Jabber for Mac v8.6.1
    Is this happening to anyone else?

    did you get this sorted out?  Im having the same problem with Jabber v9.1.5, CUC 9.1.2 and cucm 9.1.2.  Both cuc and cucm use the same NTP time source.  Time looks fine on the handsets and from the cli..

  • Transfer time stamp from text file into MS Access thru Labview

    Hello everyone,
    I am Cruz; Long time listener, First time caller.
    I am currently monotoring data being collected by an oven. The data is stored in a text file. I am using Labview to take the data from the textfile and place it in an MS access DB for manipulation. The first three columns of the text file are the time stamp of data. When i transfer the data into Access i cant get the first three columns to display as a time stamp. Can have some pointers on what how to get the first three columns to display correctly.
    Additional info:
    the text file is a 1D array that gets overitten with every new mesurement tanken. the transfer to Acces is to not loos any of the information and to better manipulate the data into forms and such.
    Running Labview 2010
    attached is code and text file.
    Any help is greatly appreciated.
    Attachments:
    Oven test other.vi ‏16 KB
    datalog032010003.txt ‏1 KB

    Your first mistake is reading the file as DBL. Your first three columns are obviously not numeric values. Did you ever look at the output array? Read it as strings. Second, you would need to combine those first three columns to create an actual time stamp before you write to the db. Unless of course you have one column for date, one column for time, and one column for AM/PM. I would not recomend that type of structure in the db.

  • Bug report: Time stamp misalignment in recent list

    Bug report: With the new compact design, go to recent pivot, tap on a conversation, press back button to go back to recent, notice the time stamps to the right of the list have moved even more right, with text being cut off the screen.
    Using Lumia 1020 with Cyan and 8.1.1 DP.

    I figured this would be the best place to post it so that an Apple representative might see it.
    Actually it's not as likely to be seen here since there are so many posts for any Apple rep to have to scan. The best way to report an issue to Apple is through the feedback pages or, if you're a member of Apple's developer program, through the bug reporter.
    Regards.

  • Select-options for time stamp

    Any ideas on which data element to be used for select-options for timestamp on the screen so that a user is able to f4 help too.
    i am using data element 'tzntstmps' but i am not getting f4 help for it.

    Hello Trivenn
    I do not think it makes sense to search for any other timestamp data element which might be part of a search help.
    TZNTSTMPS = UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
    How could such a search help look like? A calendar control combined with some kind of "time control"?
    You may facilitate the entry of time stamps in such a way that if the user enters only a date in the LOW field (e.g. 20080422 without time) you change it AT SELECTION-SCREEN (PBO of your selection screen to 20080422000000).
    Correspondingly, you change a date value (e.g. 20080422) at the HIGH field into 20080422235959).
    If, however, the user enters already a complete timestamp you do not change anything.
    Regards
      Uwe

  • How do I add a time stamp to the moving "Major Grid Lines" of a Waveform Chart?

    Hello
    I am using LV 8.5.1
    I am using a Waveform Chart and I have turned on the "Major Grid LInes" using the properties tab of my waveform chart. (properties-->scale->grid lines)
    When the code executes, I want to attach  a time stamp to each moving yellow grid line.
    So as the grid lines move from right to left, there is an associated time stamp for each.
    Can someone help!
    thanks
    J
    Solved!
    Go to Solution.
    Attachments:
    how do I add time to the yellow grid lines.vi ‏16 KB

    hova2010,
    If you right click on your graph and go to X Scale >> Style >> and then choose one of the 3 styles on the far left you shoul see timestamps for those grid lines.
    Ben Sisney
    FlexRIO V&V Engineer
    National Instruments

  • How to get the most current file based on date and time stamp using SSIS?

    Hello,
    Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
    Thanks
    thx regards dinesh vv

    hi simon
    i excuted this script it is giving error..
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
        [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
            The execution engine calls this method when the task executes.
            To access the object model, use the Dts property. Connections, variables, events,
            and logging features are available as members of the Dts property as shown in the following examples.
            To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
            To post a log entry, call Dts.Log("This is my log text", 999, null);
            To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
            To use the connections collection use something like the following:
            ConnectionManager cm = Dts.Connections.Add("OLEDB");
            cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
            Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
            To open Help, press F1.
            public void Main()
                string file = Dts.Variables["User::FolderName"].Value.ToString();
                string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
                System.IO.FileInfo finf;
                DateTime currentDate = new DateTime();
                string lastFile = string.Empty;
                foreach (string f in files)
                    finf = new System.IO.FileInfo(f);
                    if (finf.CreationTime >= currentDate)
                        currentDate = finf.CreationTime;
                        lastFile = f;
                Dts.Variables["User::LastFile"].Value = lastFile;
                Dts.TaskResult = (int)ScriptResults.Success;
    thx regards dinesh vv

  • How to print date & time stamp on photos?

    How to print date & time stamp on photos?

    Three methods:
    File>process multiple files>labels. Be sure to uncheck "same as source", or the originals will be overwritten. It is best to work on duplicate files, esp. while learning.
    Use the horizontal or vertical type tool to add the information manually to each picture file
    If the same information is to be applied to several pictures, e.g. a copyright notice, use  of a brush made in PSE is very efficient

  • How to get system time format in time stamp

    Hello All,
    I have one problem regarding Time stamp. I want system time stamp format in Time control. If my system date/time format change then automatically my time stamp format should also change.If my system Time stamp format is hh:mm:ss AM/PM dd/mm/yy so in my LabVIEW time stamp format should also same. If System time stamp format hh:mm:ss AM/PM mm/dd/yyyy so in my LabVIEW time stamp format should also same.
    So Please help me its a very important for my automation application.
    Thank You.
    Vinal Gandhi
    Kudos are always Welcome.... :-)
    Vinal Gandhi, CLD
    Software Engineer

    Hi Vinal,
    have you tried the FormatDateTimeString function with a standard string indicator and the "%c" formatcode as described in the help instead of the generic timestamp indicator?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How do i find out the tables (data)effected in a schema after a particular time stamp

    how do i find out the tables (data not structure)effected in a schema after a particular time stamp?
    pls email in [email protected]

    You can't do that. That would be a real security risc.
    /KAj

  • How do i find out the tables effected in a schema after a particular time stamp

    how do i find out the tables effected in a schema after a particular time stamp?
    pls email in [email protected]

    If you are doing a reload every time then you can issue following commands to clear data from cube.
    lmt name to all
    allstat
    clear all from <cubename>prttopvar
    You can wrap above commands in pl sql procedure using dbms_aw.execute package and execute it before cube load starts. Instead of clearing it from whole cube you can clear only from one partition also. Just take a look at clear command in olap DML 10.2 reference.
    Thanks,
    Brijesh
    Edited by: Brijesh Gaur on Aug 10, 2010 6:47 AM

  • How to Convert a 'Time Stamp' field to Date......?

    Hello Gurus:
    I am using a Generic Extractor to pull some stats data.  One of the field is a Time Stamp field, which tells me the date and time of Transaction run.  I only need "Date".  I tried mapping the stamp field to Date info-object hoping for a automatic determination of the Date.... (like the Week, Month happens).   Well, I was wrong! 
    I only need the Date part.  How can I do this in BI?  is teher a specific SAP info-object for this that could be used..?  If not, what would be the routine.  The Date field that comes in is a SAP format... "u201C20,070,505.0000000u201D meaning the Transaction was run
    on 05/05/2007.  How can I get this convertion in BI transaformation??  is there a special Routine...?
    Also, we are trying to use "Time Stamp" based DELTA from a generic extraction.  The field used is a System date with time stamp.  Value looks like u201C20100,505,170,113.2918470u201D, u201C20100,505,170,113.4748820u201D  Every record pulled has a different value... probably giving me the time at which the record was created or generated.  Now, with DELTA specifid on this type of field, what will be the 'Current Status" value in Delta queue?  Is it based on the last record created and will that be the highest value?  For next Delta extraction, does it compare the extraction time stamp to this value and bring in those records that are greater than the 'Current Status" value?  I guess with that we can have as many deltas as we want..... right??  is there any particular setting I should be doing or worried/ careful about setting etc....?
    Thanks for the response in advance....
    Best..... SMaa

    Thanks Akshay,
    Your suggestion worked right away and was probably the easiest of all.  I tried the Function Module that Pravender suggested,
    but it did not return me the date back.... may be because it does not need the Micro Seconds in it....?  Routine as suggested by
    Satyam might work too, but did not go there....! 
    Thanks to all of you.
    Best..... SMaa

  • How to display the time stamp in a data log table

    Hello,
         I want to display data during the data acquisition process. How do I  add the time stamp as one of the column in the 'Result Table' located at bottom left of the example code?
    Thanks,
    Ryan
    Solved!
    Go to Solution.
    Attachments:
    Cycle Analysis.vi ‏229 KB

     I inserted the portion you added to my program and it worked but not exactly the way I want. It added the time and date when I start the data acquision. But I want the time stamp to be shown on every single row. Please see attached image.Thanks.
    Attachments:
    Result.JPG ‏54 KB

Maybe you are looking for

  • Voice memos recorded since iOS7 missing when syncing

    Hi All, I regularly use voice memos to record lectures on my iPhone 4 and then transfer to computer for editing.  However, since I installed iOS7, all voice memos recorded since then show up on the phone itself, but not in iTunes (or the DeTune App)

  • Audio player with some extra's - can't get player realized

    I try to build an audio player with some extra's like looping between 2 time marks. Till now i have an interface that can play back audio files but after that the problems start. There is no way i can add functions without creating a {color:#ff0000}N

  • Af:iterator and view accessors with bind variables

    I have a page with an af:iterator where I list up each row in a form layout. On each row there are 2 SelectOneChoice items where the current value is provided by the row. The 2 LOVs are Master-Detail-LOVs. The value of the first one restricts the val

  • How do I replace one JPanel on a JFrame with another?

    I want to replace one JPanel on a JFrame with a different JPanel when the user clicks on a certain menu item. The menu item is working corrrectly but I cant seem to repaint / refresh the component. My code is as follows: c.add(knotPanel, BorderLayout

  • Error Duplicate Table

    Hi all, when I generate DLL...+ !http://lh3.ggpht.com/_V2lpPpulbm0/SmBVR3EDjFI/AAAAAAAACbI/QatJ7QDayqE/s512/odi170709.PNG! I have this error.+ !http://lh6.ggpht.com/_V2lpPpulbm0/SmBVR32GmhI/AAAAAAAACbM/L8MZ8t1Nu1w/odi2170709.PNG! Why say me this mess