One target table is loading from two different source but same columns but one source is in a database and other is in a flat file.

Hope you all are doing good.
I have a business issue to be implemented in ODI 11G. Here it is. I am trying to load a target table from two sources having same coulmn names. But one source is in file format and other is in Oracle Database.
This is what i think i will create two mappings in the same interface using Union between the sources. But i am not sure how the interface would connect to different logical architecture to connect to two different sources.
Thanks,
SM

You are on the right track, this can all be done in a single interface. Do the following
1) Pull your file data model into the source designer and and your target table model to the target pane.
2) Map all the relevant columns
3) In the source designer create a new dataset and choose the UNION join type (this will create a separate tab in the source designer pane)
4) Select the new dataset tab in the source designer pane and pull your source oracle table data model into the source designer. Map all the relevant columns to the target
5) Make sure that your staging location is defined on a relational technology i.e. in this case the target would be an ideal candidate as that is where ODI will stage the data from both file and oracle source and perform the UNION before loading to the target
If you want to look at some pretty screenshots showing the steps above take a look at http://odiexperts.com/11g-oracle-data-integrator-part-611g-union-minus-intersect/

Similar Messages

  • How does one combine the history from two different profiles, so that my current profile will show both my old and my new history

    No details

    You can't do that.
    The best that you can do is to copy and paste the history items to a bookmarks folder and export the bookmarks to an HTML file.
    Then you can import that file in the other profile.
    If both profiles are on the same computer and are open at the same time then you can use the clipboard to do the C&P.
    http://kb.mozillazine.org/Opening_a_new_instance_of_Firefox_with_another_profile

  • Publishing from two different machines to same DOT MAC - WATCH OUT!

    As of this week - not sure if it's iWeb 08 or changes on the DOT MAC back end, but here's what I can reproduce:
    I have two machines set up with iWeb: a MBPro and an iMac.
    The MBPro has iWeb set to publish about 6-8 sites to my dot mac account - I often use it for scratch sites or temp sites.
    The iMac has iWeb set to publish 3 additional (different) sites to my dot mac account. One of these sites is part of a business site - and is rather critical.
    As of this week, when publishing from the MBPro, it wipes out the dot mac installation of the first of three sites published from the iMac (the first site listed in the site list column in iWeb on the iMac).
    If I publish from the iMac, it wipes out the dot mac installation of the first of eight sites published from the MBPro (the first site listed in the site list column in iWeb on the MBPro).

    I just found this overwriting problem when my daughter updated her site to our shared .Mac account. I have developed this workaround that is not too painful. Only one computer can post directly to the .Mac account. The other computers will have to mount the iDisk and use iWeb's "Publish to a Folder..." option to save the site on the iDisk. Before you can save the site, you have to create a new folder for it. Go to your iDisk, then to the /Web/Sites/ folder. There create a new folder that is appropriate to the name of the site you will be publishing. Now publish to that new folder from iWeb. After that you should be able to get to the new site by going to http://web.mac.com/YOURDOT_MAC_NAME/NEW_FOLDERNAME/
    Hope that works for you, AskJacob.

  • Query - data from two versions in the same column

    Hello
    Let me share my business scenario. Maybe you will be able to help me to desgn a query I am looking for.
    I have data in my Info Cube:
    - Version (A for plans and B for actuals)
    - Calendar Month,
    - Sales Amount.
    I would like to create a query which presents Sales Amount per every Calendar Month, but:
    - Data of version B for all of the months before current one (actuals)
    - Data of version A for the current one and all of the nex ones (plans)
    In result I expect the matrix like this:
    Calendar Month     Sales Amount
    2011.01          200 (it is taken from version B - actuals)
    2011.02          300 (it is taken from version B - actuals)
    2011.03          260 (it is taken from version A - plans)
    2011.04          230 (it is taken from version A - plans)
    2011.05          200 (it is taken from version A - plans)
    Is it possible?
    Cheers,
    A.

    Hello Brian,
    Thank you for your answer. It is approach I will use, I think. However let me ask: Would it be possible to have a Version in this layout, too? I mean to see, which value comes from Version A and which comes from Version B? Something like this:
    Calendar Month Version Sales Amount
    2011.01  B  200
    2011.02  B  300
    2011.03  A  260
    2011.04  A  230
    2011.05  A  200
    A

  • Sum two different types in same column

    Hi I have the below as sql output.
    TYPE SUM(UPDATE_COUNT)
    Legis 93
    Acds 43
    Updates 41
    Multibases 345
    but i want updates to be displayed as Sum of updates and Multibases. It should be like the below.
    Updates 386
    the query i used for the first output is
    SELECT type, SUM(Update_Count) FROM Scope1 where type in ('Updates','Multibases','DAIS','Acds','Legis','LegAll') and (RECVD_DATE >='04/02/2012' and RECVD_DATE <='11/30/2012') group by type
    please help me how do i get the second output.
    Thanks

    I suspect you just need to provide an appropriate format mask, i.e.
    SQL> select to_char(7, '999999999.999' ) from dual;
    TO_CHAR(7,'999
             7.000
    SQL> ed
    Wrote file afiedt.buf
      1* select to_char(17.2, '999999999.999' ) from dual
    SQL> /
    TO_CHAR(17.2,'
            17.200Justin

  • Loading master data from two different infosource.

    Hi Experts,
    I would like understand the mechanism behind loading data to masterdata infoobject from two different infosource.
    Ex: I have one master data infoobject called A and it has 4 attributes B C D E.
    now I am loading values for A B and C from INFOSOURCE1
           D and E is getting loaded from INFOSOURCE2.
    could ne one please explanin how this works and how all five values get merged in single record?
    Please help
    Best Regards
    Falgun

    Dear Falgun,
    Component of an InfoSource:
    An InfoSource is always a quantity of InfoObjects that logically belong together and are updated in data targets.
    a. <b>InfoSources with flexible update</b>
    An InfoSource with flexible update can be updated in any data targets (with the exception of hierarchies). Update rules are created for this InfoSource.
    InfoObjects can be used in as many InfoSources and data targets as you like.
    b. <b> InfoSources with direct update</b>
    Using an InfoSource with direct update, master data (characteristics with attributes or texts) for an InfoObject can be written directly (without update rules) to the master data table.
    Visit the following link for more information:
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    Hope this is helpful.
    Regards,
    Naveen.

  • Table transformation from two different database

    Hi all,
    I am trying to load table from one database table to another database table in ODI 10g.I have created two physical and logical topology.
    But when in interface design i have drag the source and target tables in the diagram window, but here it doesnot shows the auto mapping options, when i try it manually by dragging a field, i have failed. when i execute the operation the following error occured:
    create or replace view db1."C$_0 W_INT_ORG_D"
    as select     
    from     db1.W_INT_ORG_DS W_INT_ORG_DS
    where     (1=1)
    here both the source and target db are same..
    How can i resolve it

    Hi,
    Thanks it worked.
    I am getting another error on Insert flow into I$ table step.
    I am connecting two database from two different hosts, both are in oracle.
    I have two logical schema prepared for both database.
    should i have to mentioned these schema in one physical topology? what should be placed in schema and work schema option.
    I have used LKM Oracle to Oracle(DBLINK) as KM.
    Please help
    Best regards,
    manish

  • How to create a foreign key for the table from two different tables?

    Hi All,
    I have a three table like below. In the below table SAMPLE_CONS_CHECK and SAMPLE_CONS2_CHECK will be having the primary key for NAME column. The same SAMPLE_CONS3_CHECK table also having the primary key for NAME column and forieign key for SAMPLE_CONS_CHECK and SAMPLE_CONS2_CHECK tables. See the below code 2
    code 1:
    CREATE TABLE SAMPLE_CONS_CHECK
            (NAME VARCHAR2(10),
            SERIES  VARCHAR2(5)
    CREATE TABLE SAMPLE_CONS2_CHECK
            (NAME  VARCHAR2(5),
             MODEL  NUMBER
    CREATE TABLE SAMPLE_CONS3_CHECK
            (NAME  VARCHAR2(5),
             MODEL_NO  NUMBER
            )code 2
    alter table SAMPLE_CONS_CHECK
    add constraint SAMPLE_CONS_CHECK_pk primary key (NAME)
    alter table SAMPLE_CONS2_CHECK
    add constraint SAMPLE_CONS2_CHECK_pk primary key (NAME)
    alter table SAMPLE_CONS3_CHECK
    add constraint SAMPLE_CONS3_CHECK_pk primary key (NAME)
    ALTER TABLE SAMPLE_CONS3_CHECK ADD
    CONSTRAINT SAMPLE_CONS3_CHECK_FK1 FOREIGN KEY
         NAME
    ) REFERENCES SAMPLE_CONS_CHECK
        NAME
    ) ON DELETE CASCADE;
    ALTER TABLE SAMPLE_CONS3_CHECK ADD
    CONSTRAINT SAMPLE_CONS3_CHECK_FK2 FOREIGN KEY
         NAME
    ) REFERENCES SAMPLE_CONS2_CHECK
        NAME
    ) ON DELETE CASCADE;From the above schenario i am able to insert the data to SAMPLE_CONS3_CHECK table. But the parent data is already available in the parent table. The problem is here two different constarints from two different tables. While inserting, it is checking from both the tables whether the parent is exist or not.
    How can i solve this problem? Can anyone halp me about this?
    Thanks
    Edited by: orasuriya on Aug 8, 2009 2:02 AM

    Actually the design is completely incorrect.
    What you say is
    I have
    'foo', 'foo series'
    'foo','foo model'
    'foo',666
    By virtue of table3 referring to both table1 and table2.
    This means you actually need to have 1 (one) table:
    'foo','foo series','foo model', 666
    And the 'problem' disappears.
    Sybrand Bakker
    Senior Oracle DBA

  • Is it possible to load an IPAD from two different ITune accounts?  When I try it says it'll delete all the other account first.

    Is it possible to load an IPAD from two different ITune accounts?  When I try it says it'll delete all the other account first.

    This is correct.
    Ipad wilol sync itunes content and pics with one and only one computer at a time.  Syncing to another will erase the current content.

  • Is it possible to show data from two different sql tables?

    Is it possible to show data from two different sql tables? Either to show combined data by using a join on a foreign key or showing a typical master detail view?
    I have one table With data about a house, and another table With URL's to images in the blob. Could these two be combined in the same Gallery?
    Best regards Terje F - Norway

    Hi Terje,
    If you have a unique key, you could use one of the following functions for your scenarios:
    If you only have one image per house, you can use LookUp:
    http://siena.blob.core.windows.net/beta/ProjectSienaBetaFunctionReference.html#_Toc373745501
    If you have multiple images per house, you can use Filter:
    http://siena.blob.core.windows.net/beta/ProjectSienaBetaFunctionReference.html#_Toc373745487
    Thanks
    Robin

  • Selecting data from two different tables.

    Do we need to use join two tables with primary/foreign key while trying to use select statement for getting data from those to table.? If no who can i go about do it.

    872959 wrote:
    If i am using From clause to get data from two different tables, is it necessary that both tables have column of identical data in them.In general, they ought to (or you need to join in a third table that tells you how to map rows from one table to rows of the other table).
    It is not strictly necessary that there be any join condition between tables. If you don't provide a join condition, Oracle has to do a Cartesian product. That means that if there are n rows in one table and m rows in the other, the result set will have n * m rows. It is very rarely a good idea to write queries that do Cartesian products but it does occasionally happen.
    Justin

  • Possible solution to avoid deadlock when two inserts happen on same table from two different machines.

    Possible solution to avoid deadlock when two inserts happen on same table from two different machines.
    Below are the details from deadlock trace.
    Deadlock encountered .... Printing deadlock information
    Wait-for graph
    NULL
    Node:1
    KEY: 8:72057594811318272 (ffffffffffff) CleanCnt:3 Mode:RangeS-S Flags: 0x1
    Grant List 2:
    Owner:0x00000013F494A980 Mode: RangeS-S Flg:0x40 Ref:0 Life:02000000 SPID:376 ECID:0 XactLockInfo: 0x000000055014F400
    SPID: 376 ECID: 0 Statement Type: INSERT Line #: 70
    Input Buf: RPC Event: Proc [Database Id = 8 Object Id = 89923542]
    Requested by:
    ResType:LockOwner Stype:'OR'Xdes:0x0000002AA53383B0 Mode: RangeI-N SPID:238 BatchID:0 ECID:0 TaskProxy:(0x00000027669B4538) Value:0x10d8d500 Cost:(0/38828)
    NULL
    Node:2
    KEY: 8:72057594811318272 (ffffffffffff) CleanCnt:3 Mode:RangeS-S Flags: 0x1
    Grant List 2:
    Owner:0x0000000B3486A780 Mode: RangeS-S Flg:0x40 Ref:0 Life:02000000 SPID:238 ECID:0 XactLockInfo: 0x0000002AA53383F0
    SPID: 238 ECID: 0 Statement Type: INSERT Line #: 70
    Input Buf: RPC Event: Proc [Database Id = 8 Object Id = 89923542]
    Requested by:
    ResType:LockOwner Stype:'OR'Xdes:0x000000055014F3C0 Mode: RangeI-N SPID:376 BatchID:0 ECID:0 TaskProxy:(0x000000080426E538) Value:0x30614e80 Cost:(0/41748)
    NULL
    Victim Resource Owner:
    ResType:LockOwner Stype:'OR'Xdes:0x0000002AA53383B0 Mode: RangeI-N SPID:238 BatchID:0 ECID:0 TaskProxy:(0x00000027669B4538) Value:0x10d8d500 Cost:(0/38828)
    deadlock-list
    deadlock victim=process5daddc8
    process-list
    process id=process5daddc8 taskpriority=0 logused=38828 waitresource=KEY: 8:72057594811318272 (ffffffffffff) waittime=2444 ownerId=2994026815 transactionname=user_transaction lasttranstarted=2014-07-25T12:46:57.347 XDES=0x2aa53383b0 lockMode=RangeI-N schedulerid=43 kpid=14156 status=suspended spid=238 sbid=0 ecid=0 priority=0 trancount=2 lastbatchstarted=2014-07-25T12:46:57.463 lastbatchcompleted=2014-07-25T12:46:57.463 clientapp=pa hostname=pa02 hostpid=1596 loginname=myuser isolationlevel=serializable (4) xactid=2994026815 currentdb=8 lockTimeout=4294967295 clientoption1=671088672 clientoption2=128056
    executionStack
    frame procname=mydb.dbo.SaveBill line=70 stmtstart=6148 stmtend=8060 sqlhandle=0x03000800d61f5c056bd3860170a300000100000000000000
    INSERT INTO [dbo].[Prod1] .....
    inputbuf
    Proc [Database Id = 8 Object Id = 89923542]
    process id=process5d84988 taskpriority=0 logused=41748 waitresource=KEY: 8:72057594811318272 (ffffffffffff) waittime=2444 ownerId=2994024748 transactionname=user_transaction lasttranstarted=2014-07-25T12:46:57.320 XDES=0x55014f3c0 lockMode=RangeI-N schedulerid=39 kpid=14292 status=suspended spid=376 sbid=0 ecid=0 priority=0 trancount=2 lastbatchstarted=2014-07-25T12:46:57.440 lastbatchcompleted=2014-07-25T12:46:57.440 clientapp=pa hostname=pa01 hostpid=1548 loginname=myuser isolationlevel=serializable (4) xactid=2994024748 currentdb=8 lockTimeout=4294967295 clientoption1=671088672 clientoption2=128056
    executionStack
    frame procname=pa.dbo.SaveBill line=70 stmtstart=6148 stmtend=8060 sqlhandle=0x03000800d61f5c056bd3860170a300000100000000000000
    INSERT INTO [dbo].[Prod1]....
    inputbuf
    Proc [Database Id = 8 Object Id = 89923542]
    resource-list
    keylock hobtid=72057594811318272 dbid=8 objectname=pa.dbo.prod1 indexname=PK_a id=lock1608ee1380 mode=RangeS-S associatedObjectId=72057594811318272
    owner-list
    owner id=process5d84988 mode=RangeS-S
    waiter-list
    waiter id=process5daddc8 mode=RangeI-N requestType=convert
    keylock hobtid=72057594811318272 dbid=8 objectname=pa.dbo.prod1 indexname=PK_a id=lock1608ee1380 mode=RangeS-S associatedObjectId=72057594811318272
    owner-list
    owner id=process5daddc8 mode=RangeS-S
    waiter-list
    waiter id=process5d84988 mode=RangeI-N requestType=convert

    Don't know. Perhaps these can help. I scanned the second link but didn't see much about Ending Deadlocks. I'd say the Fourth link probably has better information than the first three links. But maybe read them all just in case the Fourth is missing something
    one of the first three have.
    Deadlocking
    Detecting and Ending Deadlocks
    Minimizing Deadlocks
    Handling Deadlocks in SQL Server
    Google search for "SQL Deadlock"
    La vida loca

  • Can I sync the songs from two different Apple IDs (HK and JP) into one iPhone?

    I want to buy some songs from a HK Apple ID and a JP Apple ID.
    I just hope the songs of two Apple ID can appear in one iPhone.
    But I don't want can I sync the songs from two different Apple IDs (HK and JP) into one iPhone.

    Are you currently in Japan or Hong Kong ? You have to be in a country (and have a billing address in that country on your account) to buy or download from its store, that is included in the store's terms.
    You can sync content from different accounts from your computer's iTunes library.

  • Sum two different columns from two different tables

    Can you select and sum two different columns, from two different tables in the same sql statement?
    i.e.
    table1
    Item----OnHand_Qty
    A--------10
    A--------15
    B--------10
    B--------10
    C--------20
    table2
    Item----Trx_Qty
    A--------2
    A--------4
    A--------6
    B--------1
    B--------1
    C--------4
    I'm looking for the following results from a query
    Item----Sum(Onhand_Qty)---Sum(Trx_Qty)
    A--------25

    Like this?
    SQL> create table table1 (item,onhand_qty)
      2  as
      3  select 'A', 10 from dual union all
      4  select 'A', 15 from dual union all
      5  select 'B', 10 from dual union all
      6  select 'B', 10 from dual union all
      7  select 'C', 20 from dual union all
      8  select 'D', 30 from dual
      9  /
    Tabel is aangemaakt.
    SQL> create table table2 (item, trx_qty)
      2  as
      3  select 'A', 2 from dual union all
      4  select 'A', 4 from dual union all
      5  select 'A', 6 from dual union all
      6  select 'B', 1 from dual union all
      7  select 'B', 1 from dual union all
      8  select 'C', 4 from dual union all
      9  select 'E', 3 from dual
    10  /
    Tabel is aangemaakt.
    SQL> select nvl(t1.item,t2.item) item
      2       , t1.sum_onhand_qty
      3       , t2.sum_trx_qty
      4    from ( select item, sum(onhand_qty) sum_onhand_qty
      5             from table1
      6            group by item
      7         ) t1
      8         full outer join
      9         ( select item, sum(trx_qty) sum_trx_qty
    10             from table2
    11            group by item
    12         ) t2
    13         on (t1.item = t2.item)
    14  /
    I SUM_ONHAND_QTY SUM_TRX_QTY
    A             25          12
    B             20           2
    C             20           4
    E                          3
    D             30
    5 rijen zijn geselecteerd.Regards,
    Rob.

  • APEX Application accessing data from two different databases

    Hi All,
    Currently as we all know that APEX Application resides in database and is connected to the schema of that database.
    I want APEX Application to be running and accessing data from two different databases. Elaborating my question,
    Currently, my APEX Production Application is connected with XXXX Schema of DB1 Database(Where APEX Resides). Now I want to add some pages into this APEX Application for REPORT Purpose, But I want to connect this REPORT APEX Pages to get data from Different Schema YYYY for Database DB2.
    Is it possible to configure this scenario?
    The reason for doing this is to avoid the REPORT related (adhoc queries) resource utilization effect on Production DB1 Database.
    Thanks
    Nil

    1. If you do the joining of two or more tables in DB1 then all data is pulled over to DB1 and then the join is executed: so more data over the databaselink and more work for DB1. Better keep the joining stuff where the data resides and just pull exactly that data over that you need.
    2. Don't know about your different block sizes. Seems a nice question for one of the other forums (DBA or SQL).
    3. I mean create synonyms on DB1 for reports VIEWS in DB2.
    Hope all is clear!

Maybe you are looking for

  • How to Vertically center dynamic text?

    I am trying to vertically center and wrap text within a Text div. I have figured out how to center text if it is a single line, but the text that I am using will be diffrent for each user depending on what language they view the page in. How can i ma

  • Locked / password  by Mail

    Hi, # File name - Lock.sh # # Description - Script which sends mail to DBA team # # if any Locked Users found. # #!/bin/ksh export ORACLE_OWNER=oracle export ORACLE_BASE=/u01/oracle export ORACLE_HOME=$ORACLE_BASE/product/10.2.0.3 export ORACLE_SID=P

  • Installation Guide of OAS 4.0.8.1 (Linux) is missing

    Folks, I just downloaded the OAS 4.0.8.1 (Linux) from technet and the read me file indicated that the installation guide should be located in "ows/4.0/doc/books/install/install.pdf". However, I cannot find this file or even directory form my download

  • Pagination Bug

    We meet a strange bug when we processing a document recently. For example, one paragraph have 3 lines, 2 lines are in the page 1, and the last line is in the page 2. So we set the Widow/Orphan Lines to 2, and click Apply, then the whole paragraph wil

  • Itunes does not open menu on connection with Iphone 5 windows 8

    Upon connecting my iphone to my windows 8.1 (64bit) computer, Itunes does not open the Iphone interface.  How can I sync or back-up the iphone. Itunes recognizes the Iphone on the main menu but the menu for the Iphone does not come up.  This is IOS 7