ETL date problem OWB

I have a problem loading a date. The textfile i need to load contains a date in the format 21-12-2007 21:30. The format is then DD-MM-YYYY HH24:MI. Then you run your ctl and it only loads 21-12-2007 into your colunm of your table, thats correct but i miss my time.
Can someone help me?

You can try to insert the values using External Tables. Here is an example to create one external table. And you can use it directly into your OWB maps, with joins, also.
Create Directory first:
create or replace directory TXT_LOCATION as 'complete_path';
Create External Table:
CREATE TABLE testowb
(ACCT_UNIT           VARCHAR2(7),
AU_DESCRIPTION          VARCHAR2(40),
ACTIVITY               VARCHAR2(40),
ACTIVITY_DESCRIPTION     VARCHAR2(40),
ACTIVITY_GRP          VARCHAR2(40),
ACT_GRP_DESCRIPTION     VARCHAR2(40),
BEGIN_DATE          DATE,
END_DATE          DATE)
ORGANIZATION external
(TYPE oracle_loader
DEFAULT DIRECTORY TXT_LOCATION
ACCESS PARAMETERS
(RECORDS DELIMITED BY NEWLINE
BADFILE 'testewb.bad'
LOGFILE 'testewb.log'
READSIZE 1048576
SKIP 1
FIELDS TERMINATED BY X'09' LDRTRIM
REJECT ROWS WITH ALL NULL FIELDS
(ACCT_UNIT           CHAR,
AU_DESCRIPTION     CHAR ,
ACTIVITY           CHAR ,
ACTIVITY_DESCRIPTION      CHAR ,
ACTIVITY_GRP          CHAR ,
ACT_GRP_DESCRIPTION     CHAR ,
BEGIN_DATE          DATE MASK "DD/MM/YYYY HH24:MI:SS" ,
END_DATE           DATE MASK "DD/MM/YYYY HH24:MI:SS"
location
('testewb.txt')
)REJECT LIMIT UNLIMITED;
FIELDS TERMINATED BY X'09' LDRTRIM tells us that the fields is terminated by tabulation, otherwise comma (','). It is usefull when into the fields we find information separeted by comma (',').
Your question is answered in the fields BEGIN_DATE and END_DATE with DATE MASK.
Hope to help,
Gustavo

Similar Messages

  • Error while fetching data from OWB Client using External Table.

    Dear All,
    I am using Oracle Warehouse Builder 11g & Oracle 10gR2 as repository database on Windows 2000 Server.
    I facing some issue in fetching data from a Flat File using external table from OWB Client.
    I have perform all the steps without any error but when I try to view the data, I got the following error.
    ======================================
    RA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file expense_categories.csv in SOURCE_LOCATION not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    java.sql.SQLException: ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file expense_categories.csv in SOURCE_LOCATION not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183)
         at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:774)
         at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:849)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186)
         at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1377)
         at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:386)
         at oracle.wh.ui.owbcommon.QueryResult.<init>(QueryResult.java:18)
         at oracle.wh.ui.owbcommon.dataviewer.relational.OracleQueryResult.<init>(OracleDVTableModel.java:48)
         at oracle.wh.ui.owbcommon.dataviewer.relational.OracleDVTableModel.doFetch(OracleDVTableModel.java:20)
         at oracle.wh.ui.owbcommon.dataviewer.RDVTableModel.fetch(RDVTableModel.java:46)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerPanel$1.actionPerformed(BaseDataViewerPanel.java:218)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:282)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerPanel.executeQuery(BaseDataViewerPanel.java:493)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerEditor.init(BaseDataViewerEditor.java:116)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerEditor.<init>(BaseDataViewerEditor.java:58)
         at oracle.wh.ui.owbcommon.dataviewer.relational.DataViewerEditor.<init>(DataViewerEditor.java:16)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at oracle.wh.ui.owbcommon.IdeUtils._tryLaunchEditorByClass(IdeUtils.java:1412)
         at oracle.wh.ui.owbcommon.IdeUtils._doLaunchEditor(IdeUtils.java:1349)
         at oracle.wh.ui.owbcommon.IdeUtils._doLaunchEditor(IdeUtils.java:1367)
         at oracle.wh.ui.owbcommon.IdeUtils.showDataViewer(IdeUtils.java:869)
         at oracle.wh.ui.owbcommon.IdeUtils.showDataViewer(IdeUtils.java:856)
         at oracle.wh.ui.console.commands.DataViewerCmd.performAction(DataViewerCmd.java:19)
         at oracle.wh.ui.console.commands.TreeMenuHandler$1.run(TreeMenuHandler.java:188)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    ===========================
    In the error it is showing that file expense_categories.csv in SOURCE_LOCATION not found but I am 100% sure that file is very much there.
    Is anybody face the same issue?
    Do we need to configure something before loading data from a flat file from OWB Client?
    Any help would higly appreciable.
    Regards,
    Manmohan Sharma

    Hi Detlef / Gowtham,
    Now I am able to fetch data from flat files from OWB Server as well as OWB Client.
    One way I have achieved as suggested by you
    1) Creating location on the OWB Client
    2) Samples the files at client
    3) Created & Configured external table
    4) Copy all flat files on OWB Server
    5) Updated the location which I created at the client.
    Other way
    1) Creating location on the OWB Client
    2) Samples the files at client
    3) Created & Configured external table
    4) Copied flat files on the sever in same drive & directory . like if my all flat files are on C:\data at OWB Client then I copied flat file C:\data on the OWB Server. But this is feasible for Non-Windows.
    Hence my problem solved.
    Thanks a lot.
    Regards,
    Manmohan

  • Help needed with missing data problem in CRVS2010

    We recently upgraded the reporting engine in our product to use Crystal Reports for Visual Studio 2010 (previously engine was CR9). Our quote report, which has numerous subreports and lots of conditional formatting, started losing data when a quote took more than a single page to be printed. We knew the SQL results included the data, but the report was not printing those lines at all or sometimes printing a partial line. In addition, the running total on the report would exclude the lines that were being missed on the next page. In one example submitted by a customer, 3 lines were skipped between pages.
    I think I have identified two potential issues that document the possibility of data not being included in the report.
    The first potential issue is an issue with the "suppress blank section" option being checked. This issue is supposedly fixed with ADAPT01483793, being released someday with service pack 2 for CRVS2010.
    The second potential issue is using shared variables. This issue is supposedly fixed with ADAPT01484308, also targeted for SP2.
    Our quote report does not explicitly use shared variables with any of the subreports, but it does have several subreports, each in its own section that has the "supress blank section" option checked. We have other reports that use this feature, as well, and they are not exhibiting the problem.
    One different thing about the quote report is that it has a section with multiple suppression options selected. The section has a conditional suppression formula, which controls whether the section is included at all within the report. The section also has the suppress blank section option selected. There are multiple fields within the report that are each conditionally suppressed. In theory, the section's suppress formula could evaluate to true, yet all of the fields within the section are suppressed (due to null values), and then the "suppress blank section" option would kick in.
    The missing data only seems to happen when the section is not being suppressed, and at least one of the fields is being included in the report. If I clear the "suppress blank section" check box, and change the section formula to also include the rules applied to the fields in the section, the missing data problem seems to be resolved.
    Is this related to ADAPT01483793? Will it be fixed in service pack 2?
    If more details are needed, I would be happy to provide a sample report with stored data.

    Hi Don,
    Have a look at the Record Selection formula in CR Designer ( stand alone ) and when exported to RPT format opening that report in the Designer also. 
    There's been a few issues with => logic in the record selection formula. It could be you are running into this problem. Look for NOT inserted into your selection formula.
    Oh and SP2 is coming out shortly so it may resolve the issue. But if you want you could purchase a support, or if you have a support contract then create a case in SMP and get a rep to work with you to debug the issue.
    If you have not try the Trial Version of CR 2011, put it on a VM-ware image or Test PC so you don't corrupt anything for production and have a look at and test it in that designer also. If you purchase a case and it is a bug then you'll get a credit back for the case.
    Don
    Edited by: Don Williams on Oct 26, 2011 7:40 AM

  • Clearing of Balance in GR/IR clearing account due to date problem

    >Hi to All,
    >The scenario is like this :-
    >The client is making back dated entries for quarter between 01.04.2008 to 30.06.2008 in SAP in July 2008 as the system is getting implemented now. He wants to regularise all the transactions in SAP from 01/04/2008.
    >The users entering the data were new and hence though the miro and payment entries were made by F&A in back date. The Purchase Orders and the GRs were prepared in the current date of July 2008.
    >Because of this date problem the GR/IR clearing account is having balance in it, which should have been clear after the processing of the miro document.
    >The documents were handed over to f&a after preparation of GR in the systems for Invoice processing through MIRO.
    >Can anyone plz give a solution to clear the balance GR/IR clearing account.
    >Thanks in advance.
    >Ashutosh M Joglekar.

    Hi Muthuraman,
    No need to clear any thing for PO pending items.
    Regards
    Gitesh

  • My macbook pro recently got swiped and I lost all my data, problem is, just before it was swiped I set up my new iphone 5 which transferred all my photos and music over which is no longer on the computer. What will happen to my phone if I plug it in?

    My macbook pro recently got swiped and I lost all my data, problem is, just before it was swiped I set up my new iphone 5 which transferred all my photos and music over which is no longer on the computer. What will happen to my phone if I plug it in?

    I never used icloud before so there is no data to back up from. I just spoke  to the apple store and they said that if I do plug it in, all the data will be swiped....is there a program I can use to transfer my data from my phone to computer without loosing it all ???
    Renee

  • Will apple next update to help fix the location following data problems will the ipod touch 2g be included ?

    will apple next update to help fix the location following data problems will the ipod touch 2g be included ?

    Chances are the 2g itouch will not be included in the update. Also no one yet knows if it will be fixed in the next firmware but apple has said they know of this bug.

  • A Full DTP is converted into delta DTP and facing some data problem

    Recently Full DTP(DSO to DSO) is converted into delta DTP , we are facing some data problem in first request.Some data in D2 are not updated properly after just converted in full to delta. Please let me know if you have any idea.
    Example :
    DSO : D1
    DSO : D2
    Previously FULL DTP D1->D2
    Now Delta DTP D1->D2

    Hi,
    First time run of delta DTP will extract all the records from the source...
    As u have already run the Full load and followed by delta,i guess u can use direct change log option...
    rgds,

  • Parsing Date Problem

    I have date problem that I am finding hard to resolve. Please
    suggest me what I could do.
    I want to parse String Date values of formats like "19 Jun 2003" and
    "19/06/2003" to a Date object.
    Can I Do it.
    Thanking in Advance.

    Sure. See SimpleDateFormat#parse.
    Kind regards,
      Levi

  • [JHS10.1.3] Date problem

    Running into a date problem for a forms migration.
    I have a date field in the database, normal date field.
    The users want to be able to search on partial dates.
    So adding a between on this field will only generate two date selectors, which is not what they want.
    The format is like a year field, week field, day field.
    I could modify the query to return three extra numeric fields which convert the date to the right format ('yyyy', 'wi', 'dd' ) and then to number and generatie 3 between fields for this.
    This will generate the right layout, 6 input fields for a year from/to week from/to day from/to
    But the query will be like (year between x and x) and (week between x and x) and day (between x and x)
    This will not produce the right results.
    What is possible is a string manipulation of the whereclase in the method getViewCriteriaClause()
    And see if any/all of the fields are filled and build the query there, but this is not a 'clean' solution.
    Any idea on how I can solve this? Basicly a date field in the database, user wants to search that date field on year/week/day between year/week/day or a partial of that.
    This is the way it used to be in the forms application so I really want to give the same functionality with ADF.
    Anton

    Not sure if I completely understand what you said, but this is what I did ( it seems to work )
    All my viewobjects extends a new superviewobjectimp, this class has just 2 setters and getters, one for the datefield I want to search on and one for the partial name I gave the three attributes (<fixed name>Year <fixed name>Week <fixed name>Day).
    In the advancedSearch, in the loop trough the attributes I cast the viewobject to this superviewobjectimp. I can now check if the attribute contains the partial name. If this is the case I build my own string and add it to the viewCriteriaMap.
    One odd thing I found here is that it refuses to let me add a string like
    between to_date( '<startdate>', 'yyyy-mm-dd' ) and to_date( '<enddate>', 'yyyy-mm-dd' )Because if I do this, for some reason the attribute name will be wrapped in a to_char!
    If I just leave:
    between '<startdate>' and '<enddate>'It works, but I dont feel really safe about that, I would rather use the datecast to be sure.
    Any idea how this can be done?
    I also used the java Calendar class to transform a yyyy-iw-d to a yyyy-mm-dd because it seems I cant use 'iw' in a to_date(....). This also solved a problem with partial dates, java will autocomplete them for me.
    In other words if I only supply the year 2005 to 2006 it will auto search from 2005-1-1 - 2006-1-1, same for weeks.
    I have a lot of viewobjects which will require this, I'm trying to make it as solid as I can.
    Any suggestions?
    Anton

  • I have a strange 3g data problem.

    I have a strange 3g data problem.  At home I have zero 3G connectivity even though all bars are showing and says "3G" and wifi is "Off" ... unless I am on the phone and then magically the 3G data connection works perfectly!!  Does anyone have any idea what is happening?  Also when I bring my phone to my dad's or my friends house the problem disappears!! Is this a hardware or a AT&T network problem? os is 4.3.3
    Also called ATT and they said there was no problem with the network and that it was a hardware issue.  Also restored the phone several times but the problem did not go away.

    OK, no trouble shooting. The first thing I'd attempt is restarting in Safe Mode. If you still don't have luck try doing both a SMC and PRAM reset, it wouldn't hurt to do the SMC reset a couple of times. If still no luck let us know.
    SMC RESET
    Shut down the computer.
    Unplug the computer's power cord and all peripherals.
    Press and hold the power button for 5 seconds.
    Release the power button.
    Attach the computers power cable.
    Press the power button to turn on the computer.
    PRAM RESET
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • Interpreting error message; insight into data problems?

    I own a 8310 on AT&T running OS 4.5.011.  I have been having intermittent data problems that have gotten worse over the last week; e.g., the connection box autonomously becomes unchecked, the browser cannot find a connection, data randomly goes form GSM to edge and back, Vlingo cannot find its server.
    AT&T Service suggested a "Master Reset" and I have backed up my data with BB Desktop Mgr. as a first step.  I got the following error message:
    "Uncaught Exception:Application net_rim_bb_app(53) is not responding; process terminated"
    Please help me 1) translate and 2) does that suggest a source of my problems?
    Regards
    Rob 

    You need to enclose carData[0],carData[1] etc in single quotes, if they are String(s). Otherwise you can use PreparedStatement.
    PreparedStatement ps = con.prepareStatement("Insert into car values(22 questions marks)");
    ps.setInt(1,temp);
    for(int i=0;i<21;i++) ps.setString(i+2,carData[ i ]);
    int count=ps.executeUpdate();
    Sudha

  • ETL Data Lineage Question

    Hello,
    Is there a way in Informatica (9)  to generate ETL data lineage for all the mappings and export it to excel?
         Similar to Oracle BI APPS ETL Data Lineage excel document.
    Please suggest
    Thanks in Advance.

    Hi,
    There are
    INFORMATICA REPOSITORY QUERIES - PART I
    http://aambarish.blogspot.co.il/2012/01/normal-0-false-false-false-en-us-x-none.html
    INFORMATICA REPOSITORY QUERIES - PART II
    http://aambarish.blogspot.co.il/2012/04/informatica-repository-queries-part-ii.html
    you can build you queries based on those sql
    Best,
    Ark

  • Serious date problem

    I am using Form 6i.
    I am getting serious date problem.
    The MM/DD/RRRR is converted to DD/MM/RRRR and the result is false record.
    How to avoid this serious problem. I am very shocked to find this error after few hours of brainstorming session.
    I am using following query to create cursor
    [htm]     CURSOR cur_first IS SELECT      a.item_code,
         b.item_description,
         a.lot_no,
         d.name model,
         c.vendname,
         date_of_purchase,
         warrenty_upto,
         quentaty,
         rate,
         pc_type,
         TO_DATE(decode(warrenty_flag_yn,
                        'W', TO_DATE(warrenty_upto),
                        'A', TO_DATE('31-MAR-'||v_year),
                        'X', TO_DATE('31-MAR-'||v_year)),'DD-MM-RR') AS amc_date
         FROM      pc_item_procurement_history a,
                        pc_item_master b,
                        pc_vendor_master c,
                        pc_model_master d
         WHERE a.item_code= b.item_code
         AND a.modelcode=d.modelcode
         AND a.vendcode=c.vendcode
         AND (b.item_description LIKE '%'||:blk_main.item_name||'%' OR :blk_main.item_name IS NULL)
         AND (TO_DATE(a.warrenty_upto,'DD-MM-RR') <= :blk_main.to_date OR :blk_main.to_date IS NULL)
         AND warrenty_flag_yn='W'
         ORDER BY b.item_description;
    /pre][html]
    Thanks and regards,
    Vikas                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    I've just noticed something in the where clause that makes all this a lot easier.
         CURSOR cur_first IS SELECT      a.item_code,
         b.item_description,
         a.lot_no,
         d.name model,
         c.vendname,
         date_of_purchase,
         warrenty_upto,
         quentaty,
         rate,
         pc_type,
         warrenty_upto AS amc_date
         FROM      pc_item_procurement_history a,
                        pc_item_master b,
                        pc_vendor_master c,
                        pc_model_master d
         WHERE a.item_code= b.item_code
         AND a.modelcode=d.modelcode
         AND a.vendcode=c.vendcode
         AND (b.item_description LIKE '%'||:blk_main.item_name||'%' OR :blk_main.item_name IS NULL)
         AND (a.warrenty_upto <= :blk_main.to_date OR :blk_main.to_date IS NULL)
         AND warrenty_flag_yn='W'
         ORDER BY b.item_description;BUT...
    Is Warrenty_upto really a date column? You say it is "stored as m/d/yyyy" but a date is not stored with a format in oracle - it's just a date and the format is applied when you retrieve the data.
    In sql*plus if you Describe the table you can see the column type. If you select the data you only ever get a string.
    I'm assuming :blk_main.to_date is a date.

  • OBIA 7.9.6.3 ETL data lineage document

    Hi everryone
    Do we have seperate ETL data Lineage Document for 7.9.6.3 ?? or is it the same document for both 7.9.6.3 and 7.9.6.2

    Check at
    http://www.cool-bi.com/Ref/Ref.php
    IF helps mark

  • HELP!!!! DATE PROBLEM

    I have a procedure like this. But even though the value of both mdate and mlistdate_cur.leave_from values are the same , the if condition is not validated. Please help!!!!
    PROCEDURE leave_check ( MDATE IN DATE, PDATE OUT DATE) IS
    testflag char(1) := 'N';
    cursor listdate_cur is
    select leave_from,leave_to,type_of_leave from vacation_list;
    BEGIN
         for mlistdate_Cur in listdate_cur loop
         if (mdate = trunc(mlistdate_cur.leave_from) ) then
              pdate := mlistdate_cur.leave_to + 15;
                             testflag := 'Y';
         elsif ( mdate >= trunc(mlistdate_cur.leave_from)) and (mdate <= trunc(mlistdate_cur.leave_to)) then
                   pdate := mlistdate_cur.leave_to + 15;
                             testflag := 'Y';
         end if;
    end loop;
    if testflag = 'N' then
              pdate := mdate;
    end if;
    END;

    Hello
    Welcome to the club of Venezuelan Mac owners with date problems
    There's a thread here about the same problem
    http://discussions.apple.com/message.jspa?messageID=6399776#6399776
    Please add your message to that thread, so there's a common record of this problem
    Omar Vasquez

Maybe you are looking for

  • View page size without opening file

    Is there a way to view the page size of a pdf document without actually opening the file? My use is in a print shop as a part of a preflight check. I often recieve artwork setup to the wrong page size, and it often arrives as part of a dump of 30+ fi

  • Why is InDesign CC freezing while trying to perform various tasks?

    I am on Windows 7 - 64 bit Whenever I try to change the doc setup or delete a color swatch, or other various tasks, INDD CC is freezing and then I have to do a control-alt-delete and "end task" - shut it down. Same problem occurs when I re-open the p

  • Multi-Season TV Shows Mixed Up

    Windows 7 Professional, 64-bit; iTunes V: 11.0.4.4 It's been awhile since using iTunes, but I needed to purchase a bunch of new songs. After purchasing the roughly 12 songs, I plugged in my iPhone 5 to sync the updated playlist. There was still plent

  • Question Bank

    Hi! I purchased Captivate 2 for e-learning issues. I have some problems. I will be very pleased if you help me. 1.Is it possible to make a question bank with captivate 2? 2.And is it possible to make a system which randomly selects questions from the

  • Pricing Date & Account Group

    Hi what is Exact use for Pricing Date in Condition Type? Why does account group control customer? regards [email protected]