ODI 10g Union,Union All,Minus

Hello,
I have to use union,union all or minus set on ODI 10.But it doesn't have uninon,union all minus data set like in ODİ 11.How can ı use union statement in odi 10 g?For example I have to union 6 table in odi 10g.How it can be ?
Thnx a kot

Thx a lot Jerome .it works
I have one more question:
This select captured changed datas.I will delete dataas which returns from this select.And then I will insert new datas.
I added to IKM COntrol append a new step like this:
delete from <%=odiRef.getTable("L","TARG_NAME","A")%> T WHERE (<%=odiRef.getTargetColList("", "t.[COL_NAME]", ", ", "\n", "UK")%>) in
SELECT PK_ID
FROM <%=odiRef.getFrom()%>
WHERE (1=1)
<%=snpRef.getJoin()%>
<%=snpRef.getFilter()%>
<%=snpRef.getJrnFilter()%>
<%=snpRef.getGrpBy()%>
<%=snpRef.getHaving()%>
/*commit*/
I selected "UK" from target.
But I dont know that it works true.I selected PK_ID from source but which PK_ID Will I select?When targets UK is equal to source UK(PK_ID) then these datas will be deleted.Changed datas will be inserted.How can I modify this step?İs there any solution to do this step?Can I get dynamicly PK_ID?
Could you help me ?
Best Regards
Thanks

Similar Messages

  • 집합 연산자(UNION, UNION ALL, INTERSECT, MINUS) 사용 예제

    제품 : ORACLE SERVER
    작성날짜 : 2002-04-12
    집합 연산자(UNION, UNION ALL, INTERSECT, MINUS) 사용 예제
    =========================================================
    Purpose
    집합 연산자인 union, union all, intersect, minus 의 사용방법을 알아보자.
    Explanation
    오라클에서 사용할 수 있는 집합 연산자는 union, union all, intersect,
    minus 가 있다.
    아래의 table은 예제에서 사용될 테이블이다.
    SQL> select * from dept_a;
    DEPTNO DNAME LOC
    10 ACCOUNTING NEW YORK
    20 RESEARCH DALLAS
    30 SALES CHICAGO
    40 OPERATIONS BOSTON
    50 RND SEOUL
    SQL> select * from dept_b;
    DEPTNO DNAME LOC
    20 RESEARCH DALLAS
    30 SALES CHICAGO
    60 FNA SEOUL
    1. UNION Operator
    union은 두 테이블의 자료를 하나의 결과로 가져올 때,
    중복된 row가 있을 경우 하나의 row만을 return한다..
    select 문 절에 사용하는 distinct 와 같은 효과로 생각할 수 있다.
    SQL> select deptno, dname from dept_a
    2 union
    3 select deptno, dname from dept_b;
    DEPTNO DNAME
    10 ACCOUNTING
    20 RESEARCH
    30 SALES
    40 OPERATIONS
    50 RND
    60 FNA
    6 rows selected.
    2. UNION ALL Operator
    union all 은 union이 distinct 를 사용할 때와 달리 중복된
    결과를 모두 return한다. 즉, 결과로 나오는 모든 row를 보여주게 된다.
    SQL> select deptno, dname from dept_a
    2 union all
    3 select deptno, dname from dept_b;
    DEPTNO DNAME
    10 ACCOUNTING
    20 RESEARCH
    30 SALES
    40 OPERATIONS
    50 RND
    20 RESEARCH
    30 SALES
    60 FNA
    8 rows selected.
    3. INTERSECT Operator
    intersect 는 두 테이블의 결과중에 겹치는 row만을 return한다.
    즉, 교집합된 결과로 생각할 수 있다.
    SQL> select deptno, dname from dept_a
    2 intersect
    3 select deptno, dname from dept_b;
    DEPTNO DNAME
    20 RESEARCH
    30 SALES
    4. MINUS Operator
    minus operator는 첫번째 테이블에서 두번째 테이블의 데이터를
    제외한 나머지 row만 return한다.
    SQL> select deptno, dname from dept_a
    2 minus
    3 select deptno, dname from dept_b;
    DEPTNO DNAME
    10 ACCOUNTING
    40 OPERATIONS
    50 RND

    Definitely a bug:
    SQL> ALTER SESSION SET NLS_SORT=BINARY_CI
      2  /
    Session altered.
    SQL> ALTER SESSION SET NLS_COMP=LINGUISTIC
      2  /
    Session altered.
    SQL> with utbl as (
      2                select  chr(ascii('A') + level - 1) letter
      3                  from  dual
      4                  connect by level < 27
      5               ),
      6       ltbl as (
      7                select  chr(ascii('a') + level - 1) letter
      8                  from  dual
      9                  connect by level < 27
    10               )
    11   select  letter
    12     from  utbl
    13  minus
    14   select  letter
    15     from  ltbl
    16  /
    L
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    L
    M
    N
    O
    P
    Q
    R
    S
    T
    U
    V
    L
    W
    X
    Y
    Z
    26 rows selected.
    SQL> with utbl as (
      2                select  chr(ascii('A') + level - 1) letter
      3                  from  dual
      4                  connect by level < 27
      5               ),
      6       ltbl as (
      7                select  chr(ascii('a') + level - 1) letter
      8                  from  dual
      9                  connect by level < 27
    10               )
    11  select * from (
    12   select  letter
    13     from  utbl
    14  minus
    15   select  letter
    16     from  ltbl
    17  )
    18  /
    no rows selected
    SQL> SY.

  • Performing UNION/UNION ALL in views

    I have two databases (DB1 AND DB2) in same server. I have to create two views (V1 AND V2) respectively in DB1 and DB2. And I have to make an union/union all operation in these views (V1 and V2). Is this possible.???.
    Or can I create a single view instead of two views in such a way that the single view contains an union/union all operation between the data taken from two DBs (DB1 and DB2).?
    Any ideas or suggestions on these questions. Your help is well appreciated.
    Thanks in advance.

    Or can I create a single view instead of two views in such a way that the single view contains an union/union all operation between the data taken from two DBs (DB1 and DB2).?
    Make sure you do very thorough testing if you plan to use UNION since that requires a sort operation. And that means that the data from one query has to be sent to the other server before it can be sorted.
    So a query issued on DB1 might sent the DB1 data to DB2 and then send the sorted result back to DB1. But the same query issued on DB2 would already have the DB2 data so after the DB1 data is sent to DB2 and sorted the query is done.
    That is, in one case the entire result set may be sent over the network from one server to the other instead of just one table.

  • Union of all the selection variables

    Hi All,
    Is there a way to get a Union of all the available values of selection variables in BEx? For example, if I have a selection variable for 0material and 0country, and I put in 1234 and USA as the selection input.  Normally, you would get a report with '1234' AND 'USA'.  For my case, I want to get the report with '1234' OR 'USA'.  Basically, I want  report with both 0Material = '1234' OR with 0Country = 'USA' in one report.  Thanks in advance for your advice.
    VV

    To only list the material for a particular country.....In the first step, we would list the country before the material in the "rows" section.
    In the "Columns" section, it sounds like there is only one key figure column needed with the variable for the "Country", but do NOT restrict by the "Material".  This should work whether you are showing a count of items or $ cost.
    If this is not right... maybe we could see a simple example from you showing 5 total records with what you want to see in the final report for the columns and rows for 3 records you are trying to capture, etc....
    Edited by: Sharon West on Nov 26, 2008 9:41 AM

  • Query  Regarding Updation/Migration of ODI 10g To ODI 11g.

    Hi All,
    Currently I am using ODI 10g Version & Repositories ( Work & Master) have been installed on Oracle database version "Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi"
    We are thinking to migrate from ODI 10g to ODI 11g Version 11.1.1.5 & i have some queries which are metioned below.
    1. Can we install ODI 11g Version 11.1.1.5 version with Repositories ( Work & Master) on Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi" or do i need to upgrade my database version to 11G?.
    2. If yes then, Can i upgrade or use exting Repositoires ( 10g one) for ODI 11g OR i have to create new Repositoires & move/migrate the objects of 10G repositories as mentioned in the Oracle installation doc.
    3. Currently I am using OBIEE 10g for reposrting purpose & if i switch to ODI 11g , Do i need to use OBIEE 11g?
    ODI gurus, I need your reponse ASAP & i have to share it on urgent basis.
    Thanks
    Edited by: neeraj_singh on May 15, 2013 9:58 PM

    neeraj_singh wrote:
    Hi All,
    Currently I am using ODI 10g Version & Repositories ( Work & Master) have been installed on Oracle database version "Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi"
    We are thinking to migrate from ODI 10g to ODI 11g Version 11.1.1.5 & i have some queries which are metioned below.
    1. Can we install ODI 11g Version 11.1.1.5 version with Repositories ( Work & Master) on Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi" or do i need to upgrade my database version to 11G?.You can install ODI 11.1.1.5 but you have to upgrade your repositories using upgrade assistant
    refer http://docs.oracle.com/cd/E23943_01/upgrade.1111/e12642/tasklist.htm#CIHGIDFG
    2. If yes then, Can i upgrade or use exting Repositoires ( 10g one) for ODI 11g OR i have to create new Repositoires & move/migrate the objects of 10G repositories as mentioned in the Oracle installation doc.No need to create new repositories. You just upgrade them. But you need to takecare of certain things as you are a 10g user. Refer below link for the prerequisite
    http://docs.oracle.com/cd/E23943_01/upgrade.1111/e12642/prevusers.htm
    3. Currently I am using OBIEE 10g for reposrting purpose & if i switch to ODI 11g , Do i need to use OBIEE 11g?Not clear about the question ?
    >
    ODI gurus, I need your reponse ASAP & i have to share it on urgent basis.
    Thanks
    Edited by: neeraj_singh on May 15, 2013 9:58 PM

  • Problem when exporting and importing project from odi 10g to odi 11g

    Hi,
    I want to migrate my project from odi 10g to odi 11g.
    But when i am importing the interface then it is giving the error of mising references .
    I have exported the project(without its child component),models
    (including my datastore),KM's,folder (without its child component),packages(with child components),interaces(with child components),procedures(with child components),variables from odi 10g.
    After exporting all these objects i imported all the objects with import type set as "Synonym mode insert" into odi 11g but when i imported the interface it is giving the error of missing references.
    Source technolgy is Oracle and target technolgy is Postgres.
    Topologies have been made in the ODI 11g same as in ODI 10g.
    Please help.

    You dont need to migrate the complete repository. You can migrate a project at a time into ODI 11.1.1.5.x
    You have to be careful while importing. You have to follow a sequence when importing.
    Empty Project -> KMs -> Models (with DB Stores) -> Variable -> Empty Folders -> Interfaces -> Procedures -> Packages ---- All in SYNONYM mode insert (no exceptions)
    And your repository id in 11g MUST be different from the one in 10g.

  • Install ODI 10g on  64 bit Windows 2008 server

    Can we install ODI 10g on 64 bit Windows 2008 server ? if so Please provide the me the link for download
    Edited by: user1137989 on Oct 27, 2010 10:51 PM

    If you are looking for 10g then scroll down in the link (http://www.oracle.com/technetwork/middleware/data-integrator/downloads/index.html) Oracle Data Integrator 10g (10.1.3.5.0) and select for Microsoft Windows (x86) and extract and install .
    11g comes in 32 and 64 bit version .
    32 bit version is
    Oracle Data Integrator 11g (11.1.1.3.0)
    for Microsoft Windows (x86)
    64 bit version is .
    Oracle Data Integrator Companion 11g (11.1.1.3.0)
    for All Platforms
    Hope this helps .

  • Exporting & Importing Contexts in ODI 10g

    Hi,
    I am using ODI 10g.
    I want to export Contexts from topology manager from my ODI test environment and import those contexts in ODI production environment.
    My requirement is that I want to export & import the contexts using some scripts and not manually.
    What steps can I follow for this?
    Thanks,
    Divya

    Hi Divya,
    Personally i feel rather than exporting individual components/objects, its suggested to export master repository as such.
    You can make use of ODI utility OdiExportMaster (under <ur package>->Tools->Oracle Data Integrator Objects) for exporting and Import Master Repository wizard (All Programs->Oracle-> Oracle Data Integrator->Repository Management-> Master Repository Import )for importing.
    Thanks,
    Guru.

  • ODI: Is ODI 10g compatible with SOA 11g ?

    hi all,
    I have a requirement where ODI should invoke web services in SOA 11g fusion middleware.
    Is it required that i use ODI 11g?
    Or is ODI 10g compatible working with SOA 11g.
    In case if i have to use ODI 10g to invoke webservices in SOA 11g den do i have to follow any other different procedure?
    Also, Please let me know the version of ODI to be used in either case. Thanks in advance

    Thanks Kiran.
    Can u provide any docs which supports this feature(ODI 10g working/used with SOA 11g) would be very helpful.
    Thanks,
    Edwin.

  • Cannot Connect Agents created for ODI 10g

    Hi All,
    As part of installation of BI Apps 7.9.5.2, i have created two odi agents ( WORKFLOW and INTERFACE ). I can see them as part of my services in windows. I have started them. But when have set the required things in the topology manager. when i try to do a test from the topology my ODI 10g completely hangs.
    Is there anything i need to check why this is happening.
    How can i check whether the connectivity to the ODI10g agents is correct or not ?
    Thanks and Regards,
    Krishna Prasad.

    Hi Krishna Prasad,
    Normally when you setup agents as windows services, there is a log file generated in %odi%\bin\agentservice.log, that could be checked for troubleshooting.
    If i were you, Before setting them as windows services, i would try running agents as command prompt based services first
    The syntax to run the agent from command promt, for windows is given below,
    agent.bat -PORT=<portnumber> "-NAME=<agent name>"
    Once you have tested them successfully, you can run them as windows services.
    Hope this helps.
    Regards,
    Rickson Philip Lewis
    http://www.linkedin.com/in/rickson

  • Odi 10g Issue while implenting CDC on table

    Hi All,
    Am new to odi 10g ,
    Am getting following error while selecting journalize data only option in the interface
    Error:
    This data source is not journalized in this context .
    com.sunopsis.tools.core.exception.snpsSimpleMessageExcption:null
    Thanks
    Edited by: vam on Dec 24, 2012 1:03 AM

    Hi and welcome,
    You first have to journalize your datastore.
    You should follow a tutorial like this one : http://odiexperts.com/changed-data-capture-cdc/
    Hope it helps.
    Regards,
    JeromeFr

  • Deduplication in ODI 10g

    Hi All,
    I was just wondering if ODI 10g alone can and is intended to perform deduplication (data cleansing)? By deduplication, I mean that from an error table (where the duplicates were stored), we'll perform a series of pattern matching checks until eventually, only one record is left among the duplicates and loaded to the target.
    Example of the checks needed to be done:
    Assume:
    Table Columns: col0 | col1 | col2 | col3 | col4 | col5
    *PK is col0
    Scenario#1: between duplicate records (same PK), if their non-PK col1 value is the same and their non-PK col2 value is the same, select the record where non-PK col3 is not equal to 0; if there is no such record or if there are still 2 or more duplicate records that satisfy this, apply another rule
    Scenario#2: between duplicate records (same PK), if their non-PK col1 value is the same but their non-PK col2 is different, select the record with the most number of fields that are not null; if there are records with the same number of 'not null' fields, select the one where col4 is filled over the record where col5 is filled, etc.
    Scenario#3: ...
    Scenario#4: ...
    Basing on the data integrity checks available in ODI, this cannot be done without doing a manual way of cleansing (setting up one interface per scenario/case in the set of pattern matching rules and creating a lot of temporary staging tables) which will result in a more complex setup. Is this a correct approach or is there an alternative way of doing this? (customizing the KM, etc.) Will the ODQ tool be useful in this kind of situation? Hope someone knowledgeable on this would be able to help.
    Thanks a lot,
    Marco

    Your approach sounds feasible but its a lot of data churn.
    An alternative approach can be to create a data cleansing procedure.
    And for each scenario that you have, you can create a step (hence series of steps) that perform the data cleansing.

  • Need clustering of ODI 10g

    Hi Gurus,
    We have a requirement in which we need to install Clustering (High Availability) for ODI 10g.
    Can anyone please help me regarding this issue ASAP.
    Any Help is Greatly Appreciable.
    Regards,
    Pavan Kumar.

    ODI 11g by itself does not have any failover mechanism, ODI uses the fail-over mechanism implemented by the Application Server under which ODI J2EE Agents will be running i.e. if we have an ODI J2EE agent deployed on Weblogic for instance.
    However, we can use the Load Balancing feature in ODI 10g or 11g to attain Pseudo High Availability, which can be implemented in the below mentioned steps,
    1.     On a specific host machine, define a "parent" Agent whose only function is to route ODI Scenario start-up commands to the appropriate "child" Agents.
    2.     Define more than one "child" Agent
    3.     For each "child" Agent on the cluster set the Concurrent Session Number parameter with a large value.
    4.     Open the Load balancing tab of the "parent" Agent and activate the checkbox for the "child" Agents on the cluster nodes (and not for the "parent" Agent itself). Limit the number of sessions on the "parent" Agent to (number of "child" Agents+2).
    5.     Route all ODI Scenario start-up commands and schedules to the "parent" Agent. This Agent will then forward ODI Scenarios to the most suitable child Agent
    Roles of the “Parent” agent:
         The "parent" Agent should be used to dispatch the executions on its "child" Agents that are alive or running.
         The "parent" Agent is able to detect that a "child" Agent is no longer running.
         Also, “parent” Agent is able to detect a "child" Agent that has just been started.
    Note however that, once an execution has started on Agent A, if Agent A "dies", the current execution will NOT be moved on another Agent.
    The "dying" execution should be manually pushed into the queue in order to have the "parent" Agent redistribute it on its still alive "child" Agents.
    One concern is the "parent" Agent:
         If it dies, the already distributed tasks will continue to be executed on the corresponding "child" Agent.
         If the "parent" Agent dies, it should be restarted as soon as possible, in order to keep the flow active.
         Given its very important role, it should be placed on a machine that has a high uptime coefficient. If the machine stops, the Agent should be restarted ASAP.
    Regards,
    Rickson Lewis
    http://www.linkedin.com/in/rickson

  • Getting Error Out Of Memory while importing the work repository in ODI 10g

    I exported the work repository from topology of ODI 10g of one DB and tried importing it in the another ODI 10g topology of another DB.While importing i got the error 'Out of Memory' .
    Can somebody suggest me ,how to solve the heap size out of memory issue while importing in ODI 10g.
    Thanks in Advance.

    Hi,
    you have to post your question in ODI forum
    Data Integrator
    Suresh

  • Implement MAX / JOIN in ODI 10g?

    What is the approach for using MAX functions in ODI 10g? I need it to filter source data:
    SELECT SRC_TAB.*       
    FROM SRC_TAB
    INNER JOIN
    (SELECT MAX(COL1) COL1, COL2  FROM SRC_TAB GROUP BY COL2) B
    ON SRC_TAB.COL1=B.COL1 AND SRC_TAB.COL2 = B.COL2
    Luckily this issue has been addressed in ODI 11g.
    Thank you.

    That's not good especially when you have large volume of data.
    In this case, in 10g it's better to rely on a underline view rather than 2 interfaces.

Maybe you are looking for

  • Problem in using OVI Nokia Suite with c2-03

    Dear Moderators. i use OVI Nokia Pc Suite with my Nokia C2-03, it worked properly. but now a  days it is not working properly. sending msgs via pc suites very very late. new sms received is not showing in pc suite but it was showing before some days.

  • Syncing with Outlook Contacts

    Why doesn't the iPhone use the 'File As' name in the Outlook Contacts? Many of my contacts have both an individual and company name and I usually set the 'File As' to the company name as it is easier for me to remember. When I look use the iPhone I c

  • [svn:bz-trunk] 14330: BLZ-476 : Getting different error message in server' s servlet log and console log when class is not of expected type.

    Revision: 14330 Revision: 14330 Author:   [email protected] Date:     2010-02-22 10:03:03 -0800 (Mon, 22 Feb 2010) Log Message: BLZ-476 : Getting different error message in server's servlet log and console log when class is not of expected type. QA:

  • Sorting images by pixel size?

    is there a way to sort images by pixel size (ie, all pis over 640x480)? i can't see any way in finder, vitaminSEE or iphoto to sort images this way. am i missing something? or could someone recommend a grogram that can do this (preferably freeware)?

  • Exporting (dragging) Cover Art from iTunes just makes a picture clipping?

    I have dragged cover art JPGs to songs in iTunes. Now I want to drag them back out to the desktop as JPGs. This used to be possible, but now I only get a picture clipping that I can't open with any other program than the Finder. Any ideas? I just wan