CDC timestamp / JRN Date

Hi,
I need to record in my target table the timestamp recorded in the CDC change table field TIMESTAMP$ ..
This field is propagated through to the journalized views and eventually appears as the JRN_DATE field when you selected Journalized data only on the source table in the interface.
When its created it has a type of DATE but I need it to be a timestamp, I've updated it in the change table, recompiled the views but my interface still creates the JRN_DATE field as a DATE type when it builds the work table in step 2 ( LKM SQL to SQL- "Create Work Table" )
All the other fields are timestamps ... how can I change the LKM to build that field as a timestamp?
In the LKM that step looks like this:
create table <%=snpRef.getTable("L", "COLL_NAME", "A")%>
<%=snpRef.getColList("", "[CX_COL_NAME]\t[DEST_WRI_DT] " + snpRef.getInfo("DEST_DDL_NULL"), ",\n\t", "","")%>
Is it snpRef.getInfo("DEST_DDL_NULL") that's not working?
Any advice would be welcome.
Cheers
Damian

It looks like this is working now.
I deleted the target table from my interface and reimported it, I deleted the scenario. I shut down designer and restarted it and regenerated the scenario and deployed and now the JRN_DATE is showing the timestamp data I needed.
I'm not sure if all of the above steps were required but at least one of them solved my problem.

Similar Messages

  • Can you explain what exactly cdc mean in data services......?

    Hello!
    I would like to know  what exactly change data capture (cdc) mean in data services......?

    Hi sudheer kore
    CDC is basically a technical term - Change data capture. We use a few approaches to work capture changed data during ETL process. This can be called incremental approach/ delta loading of data.
    Source Based CDC
    -Using a timestamp, date, datetime, or int column to uniquely identify the next "band" of rows to be loaded into the delta process in combination with a status table, global variable, and where clauses of the query transform. This is demonstrated in the Tutorial file provided with Data Services in the CDC chapter.
    -Using the Database native CDC functionality, available in Oracle, SQL Server and I believe Attunity
    Changes are replicated to change tables in the source, marked as insert/update/delete. Data Services can natively read these tables through the use of CDC Datastore objects and Map_CDC_Operation transform.
    Target Based CDC
    -Must be used if the methods above are not available. The Table_Comparison transform is capable of comparing all source records to the target table to determine if an INSERT or UPDATE is required for that row.
    Few links that would explain this better
    Source Versus Target Based Change Data Capture
    Map_CDC_Operation in Data Services
    http://sapsimplified.com/sap-bods/map-cdc-operation-transformation/
    Regards
    Anil Kumar Mehar G

  • In my opinion, the real solution is for Apple to offer us a choice of the photo sort order in ITunes. My preference would be filename, perhaps with options to choose the Date Taken attribute, file timestamp or date modified filestamp (EXIF date fields as

    I tryed to sort my pictures with buying Apps and following suggestion from apple, but without any success. In my opinion, the real solution is for Apple to offer us a choice of the photo sort order in ITunes. My preference would be filename, perhaps with options to choose the Date Taken attribute, file timestamp or date modified filestamp.

    Not a problem when using iPhoto on a Mac, which the transfer of photos is primarily based on - not manually managing photo storage as seems to be common with Windoze.
    The same should be available with a supported photo management app on a PC.
    http://support.apple.com/kb/HT4221

  • Timestamp vs date datatype

    I am transferring data from table A to table B. there is a column in table A with datatype 'timestamp' that has the fraction seconds in the data. However I am using data type 'date' in table B where I am transferring the timestamp data to. I can query the fraction saconds using the hh:mm:ss.ff in table A but when I use it in table B it shows nothing and errors out.
    i tried to use the CAST function to query the fraction seconds in table B but it shows zeroes.
    question is - is the fraction second being transferred to table B? what can I do to make sure fractions are being transferred from A to B
    any help will be appreciated

    Hi,
    question is - is the fraction second being transferred to table B? what can I do to make sure fractions are being transferred from A to BThat is the one of the difference between TIMESTAMP and DATE. TIMESTAMP holds the miliseconds also. To transfer fraction of second you need to convert B table's datatype to TIMESTAMP.
    Cheers,
    Avinash

  • Conversion from timestamp to date

    Hi All,
    Does anyone know how to convert a timestamp value to a date???
    Any help is appreciated

    I want to send the value as a date. This is because
    in other .java file i accept this value as
    java.sql.Date as a parameterWhy do you have java.sql.Timestamp objects then?
    Why not directly getting java.sql.Date object from database?
    Why do your java classes use java.sql.Date instead of java.util.Date?

  • CDC Error (JOURNALIZED DATA is not loading into tartet database)

    HI,
    I have enabled source database for CDC and got green mark on source database model tables.
    while inserting data into source, J$ tables updating JRN_SUBSCRIBER and other filed.
    when I run the package/ interface JOURNALIZED DATA is not loading into target database.
    i have implemented cdc for 7 source table.
    and using JKM MSSQL Simple
    and enable JOURNALIZED DATA in interface level.
    and
    source database is : MSSQL Server
    Target Database : Oralce 11g.
    please advice me.
    thanks in advance.
    Zakeer Hussain

    Zakeer look into this link , -http://odiexperts.com/?p=1096 . Hope this helps.
    also before running Can you right click on the Source Datastore and click on Journal Data and can you see the data ? and if still the data is not passing through ,in that case make temporary objects t- yes in LKM , IKM and debug and see at which step data is not flowing through and look if there is any filter or condition which is stopping it .
    Still not able to figure out please tell us which step the data is not flowing through we will try to guide you.

  • How to convert a timestamp to date/time in CDS View?

    Dear experts,
    I would like to convert a timestamp to a date and time within a CDS view.
    This is what I tried to do:
    Cast (Cast(<timestamp> as abap.dec(8,0)) as abap.dats) as <date>
    I also thought about first converting the timestamp into a plain numerical character, then using substring and then casting it to abap.dats. Then its giving me an error that says: "dec can't be converted into numc".
    The above written code also throws an error - "function not allowed/ no cast within a cast".
    It is quite nasty not being able to write a cast within a cast - how else am i supposed to achieve a date here?
    I am looking forward to have your answers!
    Thanks and BR
    Anja

    Hi Anja,
    what you try to do is currently not possible, a feature not available in CDS views.
    Yet it surely is a feature, ABAP developers would like to see on the feature request list .
    Cheers,
      Jasmin

  • Why won't my Set Dynaminc Data Attributes timestamp my data

    Using LabView 2011. Built a program that uses a DAQ Assistant to read some sensors. Output is a Dynamic Data Array. Using the Write to Measurement File Express vi to log the data. Set the X Value (time) Columns to One Column only. Result: I get the dt value in the X Value column. How do I get it to display the timestamp instead?
    I have tried inserting a Set Attributes express vi between the DAQ Assistant and the Write to Measurement file and selected Start timestamp. No effect. Selected Timestamp under signal index. Nope. That didn't work. Tried setting them both. Still no luck.
    Any assistance would be appreciated.
    Thanks in advanced,
    Dean

    You are NOT going to belive this. After spending the afternoon writing VIs for handling existing filenames and exporting waveforms to spreadshet files, I start mucking around with the string because it is putting a blank line between the DAQ reads (5 rows for 5 samples, then a blank row and then the acquisition loops again). In the process of testing (removing the extra carriage returns in the string) I start getting Excel files that no longer have the date or hour, just the minutes and seconds. Wt?
    Turns out, Excel sometimes does that. Format the cells using the custom feature and chose dd/mm/yyyy hh:mm:ss.00 and suddenly its all back to normal.
    To add to my frustration I went back to the original data file my student was complaining about and formatted the cells and guess what? The standard express vi's export the date, hour, minutes, seconds. All you have to do is use the custom cell format in excel.
    However, the standard express vis will still drop those stupid blank rows in your data.
    Thanks for your assistance Dennis. I hope my frustrations as noted above will be of some use to you in the future.
    Best regards,
    Dean

  • Timestamp to date format SQL

    hi there,
    I was getting data in this format
    0x00000000004890D4
    0x0000000000489121
    0x0000000000480004
    I want to convert this to proper date format ......
    is there any Query to convert this to date format in SQL ? Can anyone guide me please

    timestamp is just an automatically bumped sequential number, it is not datetime.
    BOL: " timestamp is a  data type that exposes automatically generated binary numbers, which are guaranteed to be unique within a database.
    timestamp is used typically as a mechanism for version-stamping table rows. The storage size is 8 bytes.
    Remarks
    The Transact-SQL timestamp data type is not the same as the
    timestamp data type defined in the SQL-92 standard. The SQL-92 timestamp data type is equivalent to the Transact-SQL
    datetime data type. "
    http://technet.microsoft.com/en-us/library/aa260631(v=sql.80).aspx
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Cast a timestamp to date in a "where" clause

    Hi everybody :)
    I've got a little problem that seems very simple, but I can't solved it myself :(
    I've got a column with a "timestamp" format, and I'd like to select all the records that are from a precise date, let's say "12/14/2009".
    I have the following SQL statement :
    SELECT * FROM myTable WHERE (CAST (myTimestampField AS DATE))= TO_DATE('12/14/2009', 'mm/dd/yyyy')
    But that returns me nothing... However, I've got records with timestamps that where created the 14th of december.
    Can you help me with that, I'm really out of ideas... And I'm not a SQL expert :p
    Thanks a lot!

    what is the bbcode for the code ? simple code ?write before and after your code snippet.
    Max
    [My Italian Oracle blog|http://oracleitalia.wordpress.com/2010/01/02/query-gerarchiche/]                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Convert from timestamp to date in a table

    Hi All,
    I have a table in oracle 10g r2.
    I want to convert from time-stamp to date in a column of my table.
    The table contain 10 million records.Please help me out with the easiest way to proceed.
    Thanks in advance
    USR0072

    Add a date column to the table
    run an UPDATE statement to update the date column from the timestamp column
    mark the timestamp column unused (or drop the column)

  • Analytic View join issue between TIMESTAMP and DATE formats

    I have a fact table in my data foundation that has a TIMESTAMP date that i am trying to join with to my calendar table that has  a DATE format .  I am unable to query this view after creating it and it appears to be because of the data type differences.  Is there a way to convert when joining? i can not seem to find a way to do this

    Yes, you can use a generated always statement to create a join predicate and join against that in the view.
    Or you can join against the M_TIME_DIMENSION table in an attribute view to convert.
    Or you can create a calculated column and do a union.
    Depending on the requirements, one of these will be the best fit.

  • Apply cdc to existing data warehouse

    Hi all,
    I'm building an education data warehouse. I have various dimensions that i would like to track changes to i.e. DimStudent, DimClass, DimCollege, DimExamPaper etc. etc. My solution currently drops keys, truncates tables and recreates keys before loading staging
    tables, which then go on to load Dimension and fact tables.
    Therefore, my question is what are the minimum physical changes i need to put in place to --> truncate staging tables prior to load, track changes between staging tables, dim tables and fact tables, to incrementally load rows to dim tables and fact tables?
    Do i need to add a table/tables to track changes for EACH dimension or fact table? I have looked at examples but there seems to be a fair amount of work for just one table. I have 11 dimensions, 4 fact tables and 22 staging tables.  Also, do i need a
    CDC state table for EACH table? Fast response would be greatly appreciated as this is holding me up.  I basically want to know what the best method would be to apply to a data warehouse to track changes with lowish volumes.  (few million rows in
    total DWH).

    Hi all,
    I'm building an education data warehouse. I have various dimensions that i would like to track changes to i.e. DimStudent, DimClass, DimCollege, DimExamPaper etc. etc. My solution currently drops keys, truncates tables and recreates keys before loading staging
    tables, which then go on to load Dimension and fact tables.
    Therefore, my question is what are the minimum physical changes i need to put in place to --> truncate staging tables prior to load, track changes between staging tables, dim tables and fact tables, to incrementally load rows to dim tables and fact tables?
    Do i need to add a table/tables to track changes for EACH dimension or fact table? I have looked at examples but there seems to be a fair amount of work for just one table. I have 11 dimensions, 4 fact tables and 22 staging tables.  Also, do i need a
    CDC state table for EACH table? Fast response would be greatly appreciated as this is holding me up.  I basically want to know what the best method would be to apply to a data warehouse to track changes with lowish volumes.  (few million rows in
    total DWH).
    can someone help with this pls

  • Timestamp to Date format

    Hi all
    Can anyone tell me how to convert Timestamp to Oracle date format please. This is Timestamp and I need to convert it to Oracle Date format e.g 02-FEB-10
    String p_event_date = req.getParameter("EVENT_DATE");I'm working with stored procedures and this is the way the Date is stored;
    ADD_MONTHS(TRUNC(SYSDATE, 'YYYY'),12)+10 Some help will be much appreciated
    Thanks
    Zed

    Anyone with any suggestions please, slightly desperate now. Your help will be greatly appreciated. This was my last code that I tried.
    Date dtTmp = null;
         try {
              dtTmp = new SimpleDateFormat("yyyy-MM-dd").parse(p_event_date);
         } catch (ParseException e1) {
              // TODO Auto-generated catch block
              e1.printStackTrace();
        String strOutDt = new SimpleDateFormat("yyyy-MM-dd").format(dtTmp);
        System.out.println("Formatted" + strOutDt);And the error I get is;
    SQLException caught: ORA-01847: day of month must be between 1 and last day of month ORA-06512: at line 1 Thanks
    Zed

  • Cast Timestamp to Date ?

    Hello,
    Is i ok to cast a Timestamp to a Date ?
    Olek
    Edited by: Olek on Nov 10, 2007 5:15 PM

    Olek wrote:
    java.util.Date or java.sql.Date
    Olekjava.sql.Date extends java.util.Date and
    java.sql.Timestamp extends java.util.Date
    So you cannot "cast" Timestamp to java.sql.Date. Try it and you will get a compiler error:
    java.sql.Timestamp ts = ...;
    java.sql.Date date = (java.sql.Date) ts; //error: inconvertible types

Maybe you are looking for