How to implement Lag over  in OWB?

Hi,
Could any one please explain, how we can implement lag over in OWB?
Thanks and regards
Gowtham Sen.

Hi Borkur,
Thanks for reply.
Actually I want to implement it in OWB. But after I got the answer from you, I decided to do in some othere way.
The way you mentioned is right when we are performing the operations directly on a table.
But in my scenario, an intermediate data is generating. I want to perform lag over operation on those records. Its possible by view.
So for performing operations for intermediate result, Oracle is providing Table Function concept. I can pass the result to it.
But the problem again is, how to implement the lag over operation there.
Any idea.?
Thanks and regards
Gowtham sen.

Similar Messages

  • How to implement checkpoint restart in OWB 11gR2?

    How to implement checkpoint restart in OWB 11gR2?
    Which will enable us to restart the OWB mapping from the last successfully inserted checkpoint onwards.
    Edited by: user4593813 on Jul 6, 2010 10:23 AM

    Hi Borkur,
    Thanks for reply.
    Actually I want to implement it in OWB. But after I got the answer from you, I decided to do in some othere way.
    The way you mentioned is right when we are performing the operations directly on a table.
    But in my scenario, an intermediate data is generating. I want to perform lag over operation on those records. Its possible by view.
    So for performing operations for intermediate result, Oracle is providing Table Function concept. I can pass the result to it.
    But the problem again is, how to implement the lag over operation there.
    Any idea.?
    Thanks and regards
    Gowtham sen.

  • How to implement VoIP over SIP in J2ME

    Hi All,
    This is kapil from India and i want to implement VoIP over SIP in j2me.Any help will be appreciated.
    I know about SIP API in J2ME. I want to use VoIP over it.Please help.I will be grateful to you.
    regards
    kapil

    Why don't you give us the money your Boss pays you.. then we'll see what can be done ;)
    Seriously, it might be smart to start your own research first. Check out what VoiP and SIP are all about, and the check how it fits into J2me.

  • How to implement dynamic sql in owb

    Hi everybody,
    I am new to OWB and hence i want to know how i can implement the following dynamic sql statement in owb...
    Declare
    Cursor C_tab_col is
    Select cat from tbl_cat_edesc_1 ;
    Vcat varchar2(240);
    Cursor C_edesc_col is
    Select edesc from tbl_cat_edesc_1 ;
    Vedesc varchar2(240);
    V_Command varchar2(30000);
    Begin
    Open C_Tab_col;
    Fetch C_tab_col into vcat;
    Open C_edesc_col;
    Fetch C_edesc_col into vedesc;
    loop
    V_Command := 'update upd_catseg_1 c set c.'||vcat||'=';
    V_Command := V_Command||'(select d.sales from TEST_catseg d' ;
    V_Command := V_Command||' where edesc = '||''''||vedesc||''''||' and c.cardno=d.cardno)';
    dbms_output.put_line('10 '||V_command);
    Execute immediate v_command;
    Fetch C_tab_col into vcat;
    Exit when c_tab_col%notfound;
    Fetch C_edesc_col into vedesc;
    Exit when c_edesc_col%notfound;
    end loop;
    commit;
    end;
    Thanks a many

    Hi,
    first i have created a procedure witht he following code in the code editor...
    BEGIN
    Declare
    Cursor C_brand_col is
    Select cat from TBL_CAT_EDESC_BRAND ;
    Vbrand varchar2(240);
    Cursor C_bredesc_col is
    Select EDESC_BRAND from TBL_CAT_EDESC_BRAND;
    Vbredesc varchar2(240);
    V_Command varchar2(30000);
    Begin
    Open C_brand_col;
    Fetch C_brand_col into vbrand;
    Open C_bredesc_col;
    Fetch C_bredesc_col into vbredesc;
    loop
    V_Command := 'update sav_fc_sa_pc c set c.'||vbrand||'=';
    V_Command := V_Command||'(select d.fc_brands_sa from TEST_brand d' ;
    V_Command := V_Command||' where d.brand_edesc = '||''''||vbredesc||''''||' and c.cardno=d.cardno)';
    dbms_output.put_line('10 '||V_command);
    Execute immediate v_command;
    Fetch C_brand_col into vbrand;
    Exit when c_brand_col%notfound;
    Fetch C_bredesc_col into vbredesc;
    Exit when c_bredesc_col%notfound;
    end loop;
    commit;
    end;
    END;
    then i validate it and deply it..
    after that i create a mapping and in that mapping i first import the table TBL_CAT_EDESC_BRAND and drag and drop it into the mapping and again the i put the procedure into a transformation operator and connect the inoutgrp of the table to the transformation operator ingrp deploy it and run it...this is taking a lot of time .... so i am not sure whether i am doing the right thing...for this dynamic sql i dont need to pass any parameters. can i juz execute this procedure or should i create a mapping ???? i am totally confused... could you please help me.....how to proceed........
    if i juz execute the dynamic sql it takes only 5 min in sql but i am not sure how ti implement it in owb... can you please help...
    Thanks a many

  • How to implement Dynamic lookup in OWB mappings(10g)

    Hi,
    Iam using OWB 10g version for developing the mappings.
    Now I need to implement the Dynamic lookup in the mapping.Is there any transformations available in OWB to achieve this.
    Please give me some information about the same.
    Thanks in advance...

    Hi,
    first i have created a procedure witht he following code in the code editor...
    BEGIN
    Declare
    Cursor C_brand_col is
    Select cat from TBL_CAT_EDESC_BRAND ;
    Vbrand varchar2(240);
    Cursor C_bredesc_col is
    Select EDESC_BRAND from TBL_CAT_EDESC_BRAND;
    Vbredesc varchar2(240);
    V_Command varchar2(30000);
    Begin
    Open C_brand_col;
    Fetch C_brand_col into vbrand;
    Open C_bredesc_col;
    Fetch C_bredesc_col into vbredesc;
    loop
    V_Command := 'update sav_fc_sa_pc c set c.'||vbrand||'=';
    V_Command := V_Command||'(select d.fc_brands_sa from TEST_brand d' ;
    V_Command := V_Command||' where d.brand_edesc = '||''''||vbredesc||''''||' and c.cardno=d.cardno)';
    dbms_output.put_line('10 '||V_command);
    Execute immediate v_command;
    Fetch C_brand_col into vbrand;
    Exit when c_brand_col%notfound;
    Fetch C_bredesc_col into vbredesc;
    Exit when c_bredesc_col%notfound;
    end loop;
    commit;
    end;
    END;
    then i validate it and deply it..
    after that i create a mapping and in that mapping i first import the table TBL_CAT_EDESC_BRAND and drag and drop it into the mapping and again the i put the procedure into a transformation operator and connect the inoutgrp of the table to the transformation operator ingrp deploy it and run it...this is taking a lot of time .... so i am not sure whether i am doing the right thing...for this dynamic sql i dont need to pass any parameters. can i juz execute this procedure or should i create a mapping ???? i am totally confused... could you please help me.....how to proceed........
    if i juz execute the dynamic sql it takes only 5 min in sql but i am not sure how ti implement it in owb... can you please help...
    Thanks a many

  • How to implement scd1,scd2 in OWB

    Hi,
    i want to implement scd1,2 using OWB earlier i am working on informatica i am new to OWB pls guide me

    check this
    http://www.rittmanmead.com/2006/09/working-through-some-scd-2-and-3-examples-using-owb10gr2/

  • How to implement SQL Over-ride on Source Tables in OWB?

    How can we acheive SQL-Override feature similar to the one available in informatica on OWB.
    We are thinking of using a view to filter the required data.And defiinig the view as the source in the mapping.
    Is this the best approach to go by,any thoughts suggestions?

    Informatica is a pipelined client/server ETL tool which means that if you read from a table and then apply a filter it will read all of the data onto the client (i.e. the application server, not a user machine) and then filter the data so it is not unusual for developers to want to put a lot of the logic into the SQL to reduce the number of records (which sort of defies the purpose of using the tool in the first place).
    OWB is more of a ELT/code generator so if you create a similar mapping with a table and filter it will generate the SQL with the filter included. To be honest, I'm not 100% sure about this bit but I believe if you have a source via dblink (or even ODBC) then that full generated SQL should be sent to the source. In other words, although some people might be more comfortable with custom SQL I dont think it is actually necessary in most if not all cases.

  • How to Implement Dimension Operator in OWB

    Hi,
    Actually I am new to OWB and I am confused about the use of dimension operator and cube operator
    I want to know how data is mapped with dimension operator as source and target(in different cases) and also how the cube operator is attached to the dimension operator..
    Bottom line is what is the use of dimension operator and cube operator in mapping.
    Please help me out with this..its urgent
    Thank you
    Edited by: rishiraj on Jan 3, 2012 11:10 PM

    The dimension and cube operator encapsulate a lot of standard ETL for loading dimension and cubes (semantics on top of implementing tables). For example the operators handle hierarchy loading, surrogate key management, slowly changing dimensions, late arriving facts and all sorts. In many tools this kind of behavior has to be manually developed by users.
    You can expand the dimension operator and see under the hood to look at the code that is produced.
    Cheers
    David

  • How to implement wait activity in OWB process flows?

    Hi,
    I am using OWB 10G R1.
    There is no wait activity in process flows.
    My scenario is, whenver a trigger file is created, I want to proceed with the process flow. If the trigger file doesnot exist, then I want to put the process flow in a wait state, until the trigger file is created.
    Here I used File_Exists activity. But it is checking for the file only once. And it returns warning.
    After that, I want to add an wait activity for certain period of time. How can I do this? Is there is any package,procedure or function to do that?
    Any help is appreciated.
    Thank you,
    Regards,
    Gowtham Sen.

    Gowtham,
    Well the following hint is provided by oracle warehouse builder help.........
    The time-out setting for the workflow engine determines how long the File Exist activity waits for a file. If the file does not arrive before the time-out setting expires, the File Exists activity terminates with errors.
    well someone with deep workflow knowledge can answer this one...
    If you get the answer please share with us.....
    Regards,
    Suraj.

  • How to implement QoS over UDP ?

    Hi
    Excuse me fo my poor english.
    Is-it possible to implement QoS with java and socket UDP ?
    Thanks

    The term QoS means a number of different things. Which one do you mean? See here: http://en.wikipedia.org/wiki/Quality_of_service
    Are you sure you want to use UDP? It is an unreliable protocol, and often takes quite a bit of work to use properly.
    Also google for udp qos etc.

  • How to implement "delete" on a table using OWB?

    Hi All,
    How do I implement a simple delete using OWB?
    Assumption:
    (1) Table abcd (id number, age number, amt number)
    (2) the_number is a variable
    (3) the_id is a variable
    Want to implement following transformation in OWB?
    DELETE FROM ABCD WHERE AMT=0 AND number = the_number AND id = the_id ;
    Rgds,
    Deepak

    We implemented delete mappings, and delete flows to be able to reverse a failed load. This is in my opinion a very sound and valid reason for deleting from a datawarehouse. Also if the need is there it could be used for deleting old superfluous data from the datawarehouse.
    There are a few things to consider: closed records in type II should be opened up (post mapping).
    Test, test, test.
    It is indeed a bit tricky to realize,but certainly working and possible.
    steps to take are following:
    1) create new mapping
    2) drop mapping table where to delete from onto mapping (2 times, 1 source, 1 target)
    3) map all fields from source to their corresponding fields in target, except the ones that determine the "where" clause (Refered to as filter fields)
    4) Either create a select, or a mapping input parameter which should result in generating the filter-values for your delete.
    5) map above step to the filter fields.
    6)define a delete mapping by altering target table properties as follows:
    6a) Loading Type => Delete
    6b) Match by constraint => No constraints
    7) set properties each field as folows:
    7a) filter fields match column when deleting => Yes
    7b) other fields match column when deleting => No
    Hope this helps,
    Wilco

  • How to implement subquery in OWB mapping

    I am trying to build a mapping (OWB 10gR2) which uses a single driver table (COLLEGE) and requires additional columns from 2 other tables (CONTACT and DEMOGRAPHIC) which have a many-to-one relationship with the driver table. The output should be a single record for each record in the driver table.
    For the join to the CONTACT table I only want to return the first record found. The join for the DEMOGRAPHIC table should return the record with the MAXIMUM year. In SQL I would handle these relationships via subqueries. Here is a sample of the SQL that I would use:
    select college_CODE,
    college_DESC,
    contact_NAME,
    contact_PTYP_CODE,
    demographic_DEMO_YEAR,
    demographic_CALENDAR_TYPE,
    demographic_ACCREDITATION_TYPE
    from college, contact, demographic
    where college_code = contact_sbgI_code
    AND contact.ROWID = (SELECT MIN(A.contact.ROWID)
    FROM contact A
    WHERE A.contact_SBGI_CODE = college.college_CODE )
    AND college.college_CODE = demographic.demographic_SBGI_CODE
    And demographic.demographic_DEMO_YEAR = (SELECT MAX(B.demographic_DEMO_YEAR)
    FROM demographic B
    WHERE B.demographic_SBGI_CODE = college.college_CODE)
    How do I implement this logic within OWB? Is there any way to do it without using views?
    Thank you in advance!
    Chuck

    Hi,
    Try this way....join college and contact tables (if u r maintaining history in contact table use the dates also to join) and get the min of effective date form the contact table thru the aggregator...this will give u the first record....then join the result with the DEMOGRAPHIC table and get use the aggregator to get max of the year...this should give u the right result...
    Regards
    Bharath

  • How to implement SCD type 2 in OWB 11g

    Hi all,
    I would like to know that how to implement SCD type 2 in OWB 11g.
    Actually I have tried to implement it but the target table which contains the effective_date and expiration_date are null after running the mapping.
    I have set the effective date and expiration date settings in the SCD tab of dimension object.
    Kindly help me the same if anyone knows.
    Kind regards,
    shikha

    You were able to get OWB11g to move data?
    Are you running on a 64-bit windows server? I could not get it to do a basic data move on this type of server install.

  • Select distinct cardno how ti implement in owb

    Hi, everyone,
    i am quiet new to owb and i want to know how to use the distinct in owb...
    my query is
    select distinct cardno,brand_edesc
    from table tlog where
    edesc = 'AAAA'
    and tmonth >=200807 and tmonth<=200809
    so my question is
    for the where clause i use the filter operator now i want know in owb what operator do we use to select distinct ????
    Thanks a many

    You can use Deduplicator operator.
    Drag the Deduplicator operator and pass cardno,brand_edesc to it .
    Cheers
    Nawneet

  • Can't Figure Out How To Implement IEnumerable T

    I have no problem implementing IEnumerable but can't figure out how to implement IEnumerable<T>. Using the non-generic ArrayList, I have this code:
    class PeopleCollection : IEnumerable
    ArrayList people = new ArrayList();
    public PeopleCollection() { }
    public IEnumerator GetEnumerator()
    return people.GetEnumerator();
    class Program
    static void Main(string[] args)
    PeopleCollection collection = new PeopleCollection();
    foreach (Person p in collection)
    Console.WriteLine(p);
    I'm trying to do the same thing (using a List<Person> as the member variable instead of ArrayList) but get compile errors involving improper return types on my GetEnumerator() method. I start out with this:
    class PeopleCollection : IEnumerable<Person>
    List<Person> myPeople = new List<Person>();
    public PeopleCollection() { }
    public IEnumerator<Person> GetEnumerator()
    throw new NotImplementedException();
    IEnumerator IEnumerable.GetEnumerator()
    throw new NotImplementedException();
    class Program
    static void Main(string[] args)
    // Create a PeopleCollection object.
    PeopleCollection peopleCollection = new PeopleCollection();
    // Iterate over the collection.
    foreach (Person p in peopleCollection)
    Console.WriteLine(p);
    Console.ReadLine();
    That code compiles (basically because I haven't really done anything yet), but I get compile errors when I try to implement the GetEnumerator() methods.

    The List<T> class implements the IEnumerable<T> interface, so your enumerator can return the GetEnumerator call from the list.
    class PeopleCollection : IEnumerable<Person>
    List<Person> myPeople = new List<Person>();
    public PeopleCollection() { }
    public IEnumerator<Person> GetEnumerator()
    return myPeople.GetEnumerator();
    IEnumerator IEnumerable.GetEnumerator()
    return myPeople.GetEnumerator();
    class Program
    static void Main(string[] args)
    // Create a PeopleCollection object.
    PeopleCollection peopleCollection = new PeopleCollection();
    // Iterate over the collection.
    foreach (Person p in peopleCollection)
    Console.WriteLine(p);
    Console.ReadLine();

Maybe you are looking for

  • Regarding error message in a different locale

    Hi I have 2 applicaions . one contains task flow containing 1 jsff having one input text required property set to true. other contains page template having 2 links to switch language based on locale. If I use another adf application and import task f

  • Problem opening PDF attachments

    When I try to open some PDF attachments from Mail, I get a blank screen.  If I try to open the same attachment in a program like Good Reader, I get a message that the file is not valid.  I can however open the file from Microsoft Outlook without any

  • Database not returning search results

    I am a complete newbie to mySQL and php, but I have managed to create a database in Dreamweaver. It seems (using 'seems' broadly) I have done everything correctly, following step-by-step instruction from the Dreamweaver help website. But when I load

  • How to add.. Fake access point... To disabled wats...

    my watsapp is olways online... In nokia asha 302

  • Calling script logic

    Hey guys, I know how to create a custom script logic but lets say i have abcd.lgf file. Now can someone please tell me how to have the user run this script logic? I know that if i do #include abcd.lgf in default.lgf it will run automatically anytime