Subquery in owb

Hi,
How do i implement sub-queries in owb. Something like this
select * from t1
where t1.claimno > select t2.claimno from t2
What are the transformations I need to use and their order in the mapping?
Thank you
Billu

select * from t1
where t1.claimno > select t2.claimno from t2
Use the joiner operator to join these two tables with condition t1.claimno > t2.claimno

Similar Messages

  • 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 model in OWB if you have a subquery in your select statement? (11.2)

    Which operator (is it the Table operator) to use if I have a subquery as part of my select statement? (The way I do it works, but is not elegant. What I do is create a table for the subquery and than join that with the other sources to point to my target.) But, would appreciate the best way with OWB's features.
    Here is the entire SQL (including the subquery):
    SELECT to_numbe (null), course_id
    at.book, lp.NAME,
    (select b.pricing from qp_pricing_attributes b
    where b.list_id = ll.list_id and b.product = at.product) sign,
    ll.operand AS price, lhb.comments
    FROM
    pricing_attribs at,
    list_lines ll,
    list_h lp,
    list_b lhb
    WHERE 1 = 1
    and ll.list_line_id = atrib.list_line_id
    AND ll.list_header_id = lp.list_header_id
    AND lp.list_header_id = lhb.list_header_id
    Thanks you.

    Hi
    Doesn't need to be a table in the target. Let's take a very simple example, let's say you wanted to do the following;
    select ename,(select dname from dept d where d.deptno=e.deptno) from emp e
    Then DEPT is your lookup table and EMP is your driving table.
    1. Add EMP on to the canvas.
    2. Add in lookup operator
    3. Bind lookup to DEPT
    4. Hit finish
    5. Map EMP.DEPT to DEPT.INGRP1 (the lookup operator)
    6. Edit lookup operator, on Lookup Conditions tab set DEPTNO for lookup column, and DEPTNO for input attribute
    7. Lookup complete now
    You can add in a target table operator and map from the source EMP table and the output attributes of the lookup operator. you can change step 4 to carry on through wizard and define lookup, but I have chosen to do 5, to automatically get the names and datatypes of the inputs. There are lot of other options now in 11gR2 in the lookup.
    Hope this makes sense.
    Cheers
    David

  • How to use subquery factoring ("with" clause) in OWB?

    Hi,
    Is it possible to use subquery factoring (popularly known as "with" clause) in OWB 10gR2? I have a mapping with a splitter and union-all, which generates a query that has repeated scans of the same table. Subquery Factoring would be very useful here. I think this is a very common situation, so, I hope there's a way to achieve this. (If not in this version, this would be my wishlist item for the next version.)
    Appreciate your help.
    Regards,
    Rahul

    Hi Rahul,
    I'm afraid you have to put this on your wishlist. You may put the query with the "with"-clause into a view (or table function if you need parameters) if performance is too bad. But that is somehow against the idea (and benefits) of owb.
    Another possibility is to use a temporary table and spilt the mappings into two parts: first fill the temp table, then the target table.
    Regards,
    Carsten.

  • Dynamic Lookup in OWB 10.1g

    Can we execute dynamic lookup in OWB 10.1g?
    I want update the columns of the target table, based on the previous values of the columns.
    Suppose there is a record in the target table with previous status and current status columns.
    The source table consist of 10 records which need to be processed one at a time in a single batch. Now we need to compare the status of record with the current status of target table. If the source contains next higher status then the current status of target record need to go to previous status and the new status coming from source need to overwrite the current status of target record.
    We have tried using row based option as well as setting commit frequency equal to 1 but we are not able to get the required result.
    how can we implement this in OWB10.1g?

    OK, now what I would do in an odd case like this is to look at the desired FINAL result of a run rather than worry so much about the intermediate steps.
    Based on your statement of the status incrementing upward, and only upward, your logic can actually be distilled down to the following:
    At the end of the load, the current status for a given primary key is the maximum status, and the previous status will be the second highest status. All the intermediate status values are transitional status values that have no real bearing on the desired final result.
    So, let's try a simple prototype:
    --drop table mb_tmp_src; /* SOURCE TABLE */
    --drop table mb_tmp_tgt; /*TARGET TABLE */
    create table mb_tmp_src (pk number, val number);
    insert into mb_tmp_src (pk, val) values (1,1);
    insert into mb_tmp_src (pk, val) values (1,2);
    insert into mb_tmp_src (pk, val) values (1,3);
    insert into mb_tmp_src (pk, val) values (2,2);
    insert into mb_tmp_src (pk, val) values (2,3);
    insert into mb_tmp_src (pk, val) values (3,1);
    insert into mb_tmp_src (pk, val) values (4,1);
    insert into mb_tmp_src (pk, val) values (4,3);
    insert into mb_tmp_src (pk, val) values (4,4);
    insert into mb_tmp_src (pk, val) values (4,5);
    insert into mb_tmp_src (pk, val) values (4,6);
    insert into mb_tmp_src (pk, val) values (5,5);
    commit;
    create table mb_tmp_tgt (pk number, val number, prv_val number);
    insert into mb_tmp_tgt (pk, val, prv_val) values (2,1,null);
    insert into mb_tmp_tgt (pk, val, prv_val) values (5,4,2);
    commit;
    -- for PK=1 we will want a current status of 3, prev =2
    -- for PK=2 we will want a current status of 3, prev =2
    -- for PK=3 we will want a current status of 1, prev = null
    -- for PK=4 we will want a current status of 6, prev = 5
    -- for PK=5 we will want a current status of 5, prev = 4
    Now, lets's create a pure SQL query that gives us this result:
    select pk, val, lastval
    from
    select pk,
    val,
    max(val) over (partition by pk) maxval,
    lag(val) over (partition by pk order by val ) lastval
    from (
    select pk, val
    from mb_tmp_src mts
    union
    select pk, val
    from mb_tmp_tgt mtt
    where val = maxval
    (NOTE: UNION, not UNION ALL to avoid multiples where tgt = src, and would want a distinct in the union if multiple instances of same value can occur in source table too)
    OK, now I'm not at my work right now, but you can see how unioning (SET operator) the target with the source, passing the union through an expression to get the analytics, and then through a filter to get the final rows before updating the target table will get you what you want. And the bonus is that you don't have to commit per row. If you can get OWB to generate this sort of statement, then it can go set-based.
    EDIT: And if you can't figure out how to get OWB to generate thisentirely within the mapping editor, then use it to create a view from the main subquery with the analytics, and then use that as the source in your mapping.
    If your problem was time-based where the code values could go up or down, then you would do pretty much the same thing except you want to grab the last change and have that become the current value in your dimension. The only time you would care about the intermediate values is if you were coding for a type 2 SCD, in which case you would need to track all the changes.
    Hope this helps.
    Mike
    Edited by: zeppo on Oct 25, 2008 10:46 AM

  • OWB does not allow full outer join

    I got following error (twice) while validating my mapping: "VLD-1506: Invalid Expression: Mixing full and partial outer joins in one mapping is not supported".
    I have following join conditions in my mapping:
    1) INGRP1.DISTRICT_ID = INGRP2.DISTRICT_ID And INGRP1.CHARGE_PERIOD_ID = INGRP2.CHARGE_PERIOD_ID And INGRP1.UTL_ID = INGRP2.UTL_ID
    2) The same
    3) INGRP1.CHARGE_PERIOD_ID (+) = INGRP2.CHARGE_PERIOD_ID (+) And
    INGRP1.DISTRICT_ID (+) = INGRP2.DISTRICT_ID (+) And
    INGRP1.PROVIDER# (+) = INGRP2.PROVIDER# (+)
    I suppose there is not any partial joins here. I tried to make first and second conditions with full outer joins too:
    INGRP1.DISTRICT_ID (+) = INGRP2.DISTRICT_ID (+) And
    INGRP1.CHARGE_PERIOD_ID (+) = INGRP2.CHARGE_PERIOD_ID (+) And
    INGRP1.UTL_ID (+) = INGRP2.UTL_ID (+) And
    INGRP1.DISTRICT_ID IS NOT NULL And
    INGRP2.DISTRICT_ID IS NOT NULL
    If I do this, validation reports the same error, but six times instead of twice.
    If I remove outer joins OWB generates following mapping statement:
    MERGE
    /*+ APPEND PARALLEL(MMB$ACCOUNT, DEFAULT, DEFAULT) */
    INTO
    "MMB$ACCOUNT"
    USING
    (SELECT
    /*+ NO_MERGE */
    "INGRP1"."DISTRICT_ID" "DISTRICT_ID",
    DIC$TIME_RECODER."MONTH_ID" "MONTH_ID",
    "INGRP1"."PROVIDER#" "PROVIDER#",
    "INGRP1"."ACCOUNT_NO" "ACCOUNT_NO",
    "INGRP2"."ACCOUNT_NO" "ACCOUNT_NO_1"
    FROM "DIC$TIME_RECODER" DIC$TIME_RECODER,
    (SELECT
    /*+ DRIVING_SITE("AGG"."AGG_INPUT_SUBQUERY"."FC_CHARGES_1_GKH_REL2_GKH_STAR") */
    "AGG"."CHARGE_PERIOD_ID" "CHARGE_PERIOD_ID",
    "AGG"."DISTRICT_ID$0" "DISTRICT_ID",
    "AGG"."PROVIDER#$0" "PROVIDER#",
    "AGG"."ACCOUNT_NO$0" "ACCOUNT_NO"
    FROM (SELECT
    ("AGG_INPUT_SUBQUERY"."CHARGE_PERIOD_ID$0") "CHARGE_PERIOD_ID",
    ("AGG_INPUT_SUBQUERY"."DISTRICT_ID$1") "DISTRICT_ID$0",
    ("AGG_INPUT_SUBQUERY"."PROVIDER#$1") "PROVIDER#$0",
    COUNT(DISTINCT ("AGG_INPUT_SUBQUERY"."ACCOUNT_NO$1")) "ACCOUNT_NO$0"
    FROM (SELECT
    "INGRP1"."DISTRICT_ID" "DISTRICT_ID$1",
    "INGRP1"."CHARGE_PERIOD_ID" "CHARGE_PERIOD_ID$0",
    DM_UTILITIES_1_GKH_R14554."PROVIDER#" "PROVIDER#$1",
    "FC_CHARGES_1_GKH_REL2_GKH_STAR"."ACCOUNT_NO" "ACCOUNT_NO$1"
    FROM {"FC_CHARGES"@GKH_REL2_GKH_STAR} "FC_CHARGES_1_GKH_REL2_GKH_STAR",
    {"DM_UTILITIES"@GKH_REL2_GKH_STAR} DM_UTILITIES_1_GKH_R14554,
    (SELECT
    "DEDUP"."DISTRICT_ID$2" "DISTRICT_ID",
    "DEDUP"."CHARGE_PERIOD_ID$1" "CHARGE_PERIOD_ID",
    "DEDUP"."UTL_ID" "UTL_ID"
    FROM (SELECT
    DISTINCT
    "FC_CHARGES_GKH_REL2_GKH_STAR"."DISTRICT_ID" "DISTRICT_ID$2",
    "FC_CHARGES_GKH_REL2_GKH_STAR"."CHARGE_PERIOD_ID" "CHARGE_PERIOD_ID$1",
    "FC_CHARGES_GKH_REL2_GKH_STAR"."UTL_ID" "UTL_ID"
    FROM {"FC_CHARGES"@GKH_REL2_GKH_STAR} "FC_CHARGES_GKH_REL2_GKH_STAR" WHERE ( (MAP_DIC$ACCOUNT."DATE_START") <= coalesce ( "FC_CHARGES_GKH_REL2_GKH_STAR"."CHANGED_DATE_#" , "FC_CHARGES_GKH_REL2_GKH_STAR"."CREATED_DATE_#" ) )) "DEDUP" ) "INGRP1" WHERE ( "INGRP1"."DISTRICT_ID" = "FC_CHARGES_1_GKH_REL2_GKH_STAR"."DISTRICT_ID" ) AND
    ( "INGRP1"."CHARGE_PERIOD_ID" = "FC_CHARGES_1_GKH_REL2_GKH_STAR"."CHARGE_PERIOD_ID" ) AND
    ( "INGRP1"."UTL_ID" = "FC_CHARGES_1_GKH_REL2_GKH_STAR"."UTL_ID" ) AND
    ( ( DM_UTILITIES_1_GKH_R14554."UTL_ID" (+) = "INGRP1"."UTL_ID" ) )) "AGG_INPUT_SUBQUERY"
    GROUP BY
    ("AGG_INPUT_SUBQUERY"."DISTRICT_ID$1"), ("AGG_INPUT_SUBQUERY"."CHARGE_PERIOD_ID$0"), ("AGG_INPUT_SUBQUERY"."PROVIDER#$1")) "AGG" ) "INGRP1",
    (SELECT
    /*+ DRIVING_SITE("AGG_1"."AGG_INPUT_SUBQUERY$0"."FC_PAYMENTS_1_GKH_RE143940") */
    "AGG_1"."PROVIDER#$2" "PROVIDER#",
    "AGG_1"."DISTRICT_ID$3" "DISTRICT_ID",
    "AGG_1"."CHARGE_PERIOD_ID$2" "CHARGE_PERIOD_ID",
    "AGG_1"."ACCOUNT_NO$2" "ACCOUNT_NO"
    FROM (SELECT
    ("AGG_INPUT_SUBQUERY$0"."PROVIDER#$3") "PROVIDER#$2",
    ("AGG_INPUT_SUBQUERY$0"."DISTRICT_ID$4") "DISTRICT_ID$3",
    ("AGG_INPUT_SUBQUERY$0"."CHARGE_PERIOD_ID$3") "CHARGE_PERIOD_ID$2",
    COUNT(DISTINCT ("AGG_INPUT_SUBQUERY$0"."ACCOUNT_NO$3")) "ACCOUNT_NO$2"
    FROM (SELECT
    "INGRP1"."DISTRICT_ID" "DISTRICT_ID$4",
    "INGRP1"."CHARGE_PERIOD_ID" "CHARGE_PERIOD_ID$3",
    DM_UTILITIES_GKH_REL2_GKH."PROVIDER#" "PROVIDER#$3",
    "FC_PAYMENTS_1_GKH_RE143940"."ACCOUNT_NO" "ACCOUNT_NO$3"
    FROM {"FC_PAYMENTS"@GKH_REL2_GKH_STAR} "FC_PAYMENTS_1_GKH_RE143940",
    {"DM_UTILITIES"@GKH_REL2_GKH_STAR} DM_UTILITIES_GKH_REL2_GKH,
    (SELECT
    "DEDUP_1"."DISTRICT_ID$5" "DISTRICT_ID",
    "DEDUP_1"."CHARGE_PERIOD_ID$4" "CHARGE_PERIOD_ID",
    "DEDUP_1"."UTL_ID$0" "UTL_ID"
    FROM (SELECT
    DISTINCT
    "FC_PAYMENTS_GKH_REL2_GKH_STAR"."DISTRICT_ID" "DISTRICT_ID$5",
    "FC_PAYMENTS_GKH_REL2_GKH_STAR"."CHARGE_PERIOD_ID" "CHARGE_PERIOD_ID$4",
    "FC_PAYMENTS_GKH_REL2_GKH_STAR"."UTL_ID" "UTL_ID$0"
    FROM {"FC_PAYMENTS"@GKH_REL2_GKH_STAR} "FC_PAYMENTS_GKH_REL2_GKH_STAR" WHERE ( (MAP_DIC$ACCOUNT."DATE_START") <= coalesce ( "FC_PAYMENTS_GKH_REL2_GKH_STAR"."CHANGED_DATE_#" , "FC_PAYMENTS_GKH_REL2_GKH_STAR"."CREATED_DATE_#" ) )) "DEDUP_1" ) "INGRP1" WHERE ( "INGRP1"."DISTRICT_ID" = "FC_PAYMENTS_1_GKH_RE143940"."DISTRICT_ID" ) AND
    ( "INGRP1"."CHARGE_PERIOD_ID" = "FC_PAYMENTS_1_GKH_RE143940"."CHARGE_PERIOD_ID" ) AND
    ( "INGRP1"."UTL_ID" = "FC_PAYMENTS_1_GKH_RE143940"."UTL_ID" ) AND
    ( ( DM_UTILITIES_GKH_REL2_GKH."UTL_ID" (+) = "INGRP1"."UTL_ID" ) )) "AGG_INPUT_SUBQUERY$0"
    GROUP BY
    ("AGG_INPUT_SUBQUERY$0"."DISTRICT_ID$4"), ("AGG_INPUT_SUBQUERY$0"."CHARGE_PERIOD_ID$3"), ("AGG_INPUT_SUBQUERY$0"."PROVIDER#$3")) "AGG_1" ) "INGRP2" WHERE ( "INGRP1"."CHARGE_PERIOD_ID" = "INGRP2"."CHARGE_PERIOD_ID" ) AND
    ( "INGRP1"."DISTRICT_ID" = "INGRP2"."DISTRICT_ID" ) AND
    ( "INGRP1"."PROVIDER#" = "INGRP2"."PROVIDER#" ) AND
    ( ( DIC$TIME_RECODER."PERIOD_ID" (+) = "INGRP1"."CHARGE_PERIOD_ID" ) )
    ) "MERGEQUERY_325"
    ON (
    "MMB$ACCOUNT"."DISTRICT_ID" = "MERGEQUERY_325"."DISTRICT_ID" AND
    "MMB$ACCOUNT"."MONTH_ID" = "MERGEQUERY_325"."MONTH_ID" AND
    "MMB$ACCOUNT"."PROVIDER_ID" = "MERGEQUERY_325"."PROVIDER#" )
    WHEN NOT MATCHED THEN
    INSERT
    ("MMB$ACCOUNT"."DISTRICT_ID",
    "MMB$ACCOUNT"."MONTH_ID",
    "MMB$ACCOUNT"."PROVIDER_ID",
    "MMB$ACCOUNT"."QNT_CHARGED",
    "MMB$ACCOUNT"."QNT_PAID")
    VALUES
    ("MERGEQUERY_325"."DISTRICT_ID",
    "MERGEQUERY_325"."MONTH_ID",
    "MERGEQUERY_325"."PROVIDER#",
    "MERGEQUERY_325"."ACCOUNT_NO",
    "MERGEQUERY_325"."ACCOUNT_NO_1")
    WHEN MATCHED THEN
    UPDATE
    SET
    "QNT_CHARGED" = "MERGEQUERY_325"."ACCOUNT_NO",
    "QNT_PAID" = "MERGEQUERY_325"."ACCOUNT_NO_1";
    What does it mean? Is JOINER's full outer join is incompatible with KEY LOOKUP operator and KL should be replaced with WB_LOOKUP_NUM?

    Sanders,
    Key lookup always does a partial outer join. When the full outer join and partial outer join conditions are put together, there is no available syntax to facilitate it.
    The way to this to generate the join operator (with full outer join) first in a subquery, then generate the key lookup as the outer query. Or the other way around, first the key lookup then the full outer join. The important part is that the key lookup can't be merged into the FROM-list.
    So there are two workarounds. One is what you already pointed out, using WB_LOOKUP_NUM.
    The other is to explicitly spell out the key lookup logic in the mapping by introducing a join with the lookup table, like this.
    Change
    Table1
    .......... Join (w/ foj cond.) ---> KeyLookup
    Table2
    to
    Table1
    .......... Join (w/ foj cond)
    Table2 ........................ Join (w/ poj cond.) ---> Lookup table
    Nikolai Rochnik

  • How can I convert "exists (select 1 from . ." into OWB

    Hello,
    I have sql statement that have to convert from PL/SQL to utilize OWB
    select a.1, a.2, b.1,b.2
    from a, b
    where a.1 = b.1
    and exists in (select 1 from c where a.3 = c.3)
    Thank you in advance.

    OWB does support EXISTS
    you can join tables a and b using simple joiner. from the output of this joiner , use a.3 to lookup on table c. select the business/primary key of table c from lookup operator and all other required fields from joiner into a filter. in the filter condition put condition
    c.businesskey is not null.
    Its like performing
    select a1,b1 from
    (SELECT
    c.businesskey bk,a.1 a1,b.1 b1
    FROM
    c lkp_tbl
    RIGHT OUTER JOIN a ON ( ( c.3 = a.3 ) )
    LEFT OUTER JOIN b ON ( ( b.1 = a.1 ))
    ) SUBQUERY
    WHERE
    SUBQUERY.bk is not null
    try it and let me know. I have tried not exists and it works in OWB fine

  • Correlated Queries in OWB?

    Hi
    I have a query like
    Select HL.LOCATION_ID,
         HL.DESCRIPTION,
         HL.LOCATION_CODE,
         HL.ADDRESS_LINE_1,
         HL.ADDRESS_LINE_2,
         HL.ADDRESS_LINE_3,
         HL.TOWN_OR_CITY,
         HL.COUNTRY,
         HL.REGION_1,
         HL.REGION_2,
         HL.REGION_3,
         HL.POSTAL_CODE ZIP,
         (select MEANING from FND_LOOKUP_VALUES where LOOKUP_TYPE ='CA_PROVINCE' and LOOKUP_CODE=HL.REGION_1 and LANGUAGE ='US') PROVINCE
    from HR_LOCATIONS HL
    How can i implement this query using OWB?
    Regards
    Vibhuti

    Hey i got another doubt what if my query is as below
    Select HL.LOCATION_ID,
    HL.DESCRIPTION,
    HL.LOCATION_CODE,
    HL.ADDRESS_LINE_1,
    HL.ADDRESS_LINE_2,
    HL.ADDRESS_LINE_3,
    HL.TOWN_OR_CITY,
    HL.COUNTRY,
    HL.REGION_1,
    HL.REGION_2,
    HL.REGION_3,
    HL.POSTAL_CODE ZIP,
    (select DISTINCT MEANING from FND_LOOKUP_VALUES where LOOKUP_TYPE ='CA_PROVINCE' and LOOKUP_CODE=HL.REGION_1 and LANGUAGE ='US') PROVINCE
    from HR_LOCATIONS HL
    Here im applying Distinct function in the subquery.
    Regards
    Vibhuti

  • OWB sql

    How can I use my own written SQL in mapping without using the expression builder. Like if I want a subquery.
    Is there any function to get start and end date of month from current date.

    Hi Tom
    I'm pretty sure you can use yur own SQL inside OWB, I'm just not certain how. As I have mentioned before I don't have an OWB version up and running where I am so I am unable to check.
    Regarding the functions you asked, it all depends as to whether you are using a fiscal period or a calendar period. Let's assume you're using a calendar period where the 1st of the month is the start date and the 30th or 31st (or 28th or 29th if February) is the end date. Look at this code:
    Start date:
    TRUNC(SYSDATE, 'MM')
    End date:
    TRUNC(ADD_MONTHS(SYSDATE, 1), 'MM') - 1
    I hope this helps
    Best wishes
    Michael Armstrong-Smith
    URL: http://learndiscoverer.com
    Blog: http://learndiscoverer.blogspot.com

  • Error while deploying a workflow in OWB

    Hi,
    I am getting the below error while deploying a workflow in Control Center.
    ORA-29532: Java call terminated by uncaught Java exception: java.sql.SQLException: The file /u01/app/oracle/product/11.2.0.2/dbhome_1/owb/bin/admin/rtrepos.properties cannot be accessed or has not been properly created on the server XXXXXX. If the file does not exist or if the database owner (normally user 'oracle') does not have the required file permissions or if the file has not been properly created then the file can be recreated by running the SQL*Plus script /u01/app/oracle/product/11.2.0.2/dbhome_1/owb/rtp/sql/reset_repository.sql (in a RAC environment the file must be manually copied to each server which is used for OWB). Otherwise if using a 10.2 database instance, then please run the SQL*Plus script /u01/app/oracle/product/11.2.0.2/dbhome_1/owb/UnifiedRepos/reset_owbcc_home.sql.
    Did any one faced this issue before?
    Kindly let me know the steps to resolve the issue.
    Thanks.

    Hi Vidyanand,
    Did you create the runtime access user using the runtime assistant? Did you select the correct runtime repository (if you have more) to associate your runtime access user with?
    Note that there are 4 database roles being created when you create a runtime repository owner:
    - OWB_A_<runtime repository owner>
    - OWB_D_<runtime repository owner>
    - OWB_R_<runtime repository owner>
    - OWB_U_<runtime repository owner>
    If you would grant those roles to a user, then that user becomes an access user for the user with username <runtime repository owner>.
    Note that you can also use the runtime repository credentials to connect to the runtime repository for deployment purposes, but you may not want that because of security concerns.
    Thanks,
    Mark.

  • Error in installing a new Repository in OWB 10g Release 2

    Hi,
    I am facing a consistent problem in creating a new repository, even after uninstalling and re-installing the OWB client many times. While creating a repository, I get the following three errors, after which the Repository Assistant automaticlly shuts down:
    1. The wizard noticed that the installation parameter 'enqueue_resources' of the database GRUSIT is set to 968. The recommended value for Warehouse Builder is 3000.
    2.The Warehouse Builder repository owner installation failed on user REPOWNER.
    java.sql.SQLException: ORA-04031: unable to allocate 4080 bytes of shared memory ("shared pool", "BEGIN
    DECLARE
    PROCEDURE brow...", "PL/SQL MPCODE", "pl/sql DS pg")
    3.INS0029: Error occured during installation. Check the log file
    F:\OraHome_1\owb\UnifiedRepos\log_070504_115828.000.log
    for details.
    Could you pls help me in resolving this issue?
    Thanks in advance,
    Tanvi

    Does this mean, ... we have to install the OWB 64 bit and install a new repository in the 64 bit server?In my opinion you don't need to create new repository.
    After migrating database to 64bit perform steps from Metalink note 434272.1 "How To Update Warehouse Builder 10.2 After A Database Cloning".
    It is better to save the same path for new OWB 64bit software. If you install OWB into different path you need to update OWBRTPS table with new path to OWB software (look at metalink note 550271.1).
    Regards,
    Oleg

  • Error while installing OWB

    Error while installing OWB
    after 50% install.. it says
    "Error in writing to file c:\oracle\ora9201\bin\oci.dll
    The process cannot access the file because it is being used by another process"
    Apparently I have restarted the workstation and closed all oracle related services in services and no other program is running expect the installer.
    Can any one help in resolving the issue. Or can I hit the ignore button and continue installing?

    Always install OWB into a new ORACLE_HOME unless the Installation and Configuration Guide states otherwise. This has only happened twice. OWB 9.0.2.62.3 was the last version to allow installation into an existing ORACLE_HOME. Another thing you can do is go to www.sysinternals.com and download the utility LISTDLLs. It is great. From a command prompt, start it with the syntax: listdlls >log.txt
    This will output the DLLs in use and which executable is using it. Search for the DLL in the log.txt and scroll up until the double line. The executable name locking the DLL will be above the double line. If you have the Microsoft Distributed Transaction Coordinator Service running on the client, it will lock Oracle DLLs. This has been a common issue in the past, going back to the days of Data Mart Suite. This was documented in the Release Notes for it and may still be in the system in a note somewhere. It is in: DMS: Unable To Install; Filesopen/Service Running On Compaq Server Doc ID: Note:1080977.6 and Certain Files which need to be Reinstalled are Being Used Doc ID: Note:117672.1
    The first note I wrote back before 2000.
    Barry

  • Error while deploying a mapping in OWB.

    Hi All,
    OWB configuration is as follows:
    Oracle9i Warehouse Builder Client: 9.2.0.2.8
    Oracle9i Warehouse Builder Client: 9.2.0.2.0
    OS: Windows XP Professional.
    Following is error message displayed when i tried to deploy a mapping thru OWB Client.
    RTC-5260 Failed to connect to runtime platform. Please check you have provided the correct host,user, password, service_name.
    RTC-5324" This Runtime Access user is not associated with the specified runtime repository. Please use the OWB Runtime Assistant to ressolve this problem.
    Steps followed are as follows:
    1> Defined Source Module, Added Connection & Location information.
    Dblink created to point to source schema. Tables imported from the source schema.
    2> Defined Target Module, Added Connection & Location information. Dblink created to point to target schema. Tables imported from the target schema.
    3> Created a simple mapping which involves a source & target table, Aggregator operator.
    4> Validated & Generated the mapping.
    5> Created Runtime Repository Connections.
    6> Selected the Repository Connection at time of Deploy entered the password.
    Am i missing few steps for deployment of the mapping?
    The error message RTC-5260 suggests that
    This Runtime Access user is not associated with the specified runtime repository. How this can be done?
    Thanks in Advance.
    Regards,
    Vidyanand

    Hi Vidyanand,
    Did you create the runtime access user using the runtime assistant? Did you select the correct runtime repository (if you have more) to associate your runtime access user with?
    Note that there are 4 database roles being created when you create a runtime repository owner:
    - OWB_A_<runtime repository owner>
    - OWB_D_<runtime repository owner>
    - OWB_R_<runtime repository owner>
    - OWB_U_<runtime repository owner>
    If you would grant those roles to a user, then that user becomes an access user for the user with username <runtime repository owner>.
    Note that you can also use the runtime repository credentials to connect to the runtime repository for deployment purposes, but you may not want that because of security concerns.
    Thanks,
    Mark.

  • Error while deploying a mapping in owb 11.2

    Hi,
    I am using OWB 11.2 and when i try to deploy a mapping i get the following error. Is it some permission issue.
    Please let me know if anyone has faced similar issue. Its very urgent.
    ORA-06550: line 1, column 7:
    PLS-00201: identifier 'DBMS_LOB' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00201: identifier 'DBMS_LOB' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
         at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:202)
         at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1005)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1307)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3449)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3530)
         at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:4718)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1062)
         at sqlj.runtime.ExecutionContext$OracleContext.oracleExecuteUpdate(ExecutionContext.java:1570)
         at oracle.wh.service.impl.runtime.runtime_access.RuntimeDeploymentDefiner.defineDeployment(RuntimeDeploymentDefiner.java:1094)
         at oracle.wh.service.impl.runtime.RuntimePlatformServiceImpl.createDeploymentAuditId(RuntimePlatformServiceImpl.java:1409)
         at oracle.wh.ui.runtime.application.WHRuntimeCommandGenerateDeploy._internalDeploy(WHRuntimeCommandGenerateDeploy.java:2382)
         at oracle.wh.ui.runtime.application.WHRuntimeCommandGenerateDeploy.doDeploymentAsynch(WHRuntimeCommandGenerateDeploy.java:2117)
         at oracle.wh.ui.runtime.application.WHRuntimeCommandGenerateDeploy.doDeploymentAsynch(WHRuntimeCommandGenerateDeploy.java:2112)
         at oracle.wh.ui.runtime.application.WHRuntimeCommandHandler$3.construct(WHRuntimeCommandHandler.java:1194)
         at oracle.wh.ui.runtime.SwingWorker$2.run(SwingWorker.java:124)
         at java.lang.Thread.run(Thread.java:595)

    Hi,
    have you tried to grant the user you use for connecting:
    GRANT EXECUTE ON DBMS_LOB TO your_usr WITH GRANT OPTIONYou need the "WITH GRANT OPTION" if the sql is executed within some view or package.
    Regards,
    Carsten.

  • Getting an error while viewing a data in owb

    Hi,
    I created an External table based on a flat file. But I am not able to view the data in the external table while the flat file has the data.
    I am using this external table as a source in my mapping but no data is getting loaded even after the successful execution of the mapping.I am getting the following error while viewing the data
    ORA-29913: error in executing ODCIEXTTABLEFETCH callout
    ORA-29400: data cartridge error
    KUP-04040: file ATLAS in ATLAS_LOCATION1 not found
    Please help me regarding this. I am new to the owb 11g.

    Thanks for you reply. Still I can't view the data. Actually what i did is imported a .csv file using files then created a external table configured , validated and deployed.In next step created a mapping with this excel this using table operator validated and genrated code. In next step using the control center manager i deployed it. But i can't view the data still in the external table.
    Is this procedure is correct for loading the excel sheet in to databse. My client environment is on windows xp and database is on linux environment.
    Please help me regarding this.I am new to owb.

Maybe you are looking for