CDC with multiple tables

Dear experts,
we would like to use CDC for capturing data from two tables A and B in a source system. Both tables should be joined in a table C in the target system.
If we update table A we would like to get the changed values from A and the unchanged values from A and B as well.
So we will able to join this information in target system and insert the result into the table C.
Is this posssible? Can you provide us an example.
Thanks a lot!

What's your Oracle version?
What's CDC stand for?
What's connection between two systems?

Similar Messages

  • How to build a form with multiple tables in oracle application express

    Hi everyone,
    I have got problem in building a form with multiple tables.I have a main table with (20) columns and this main table is related to the other tables with the primary key-foreign key relation ship.My requirement is i have to build a form which has fields from many tables and all the fields are related to the main table using (ID) column.In that form if i enter ID field i have to get information from differnt tables.
    Please help me to solve this (building a form with mutiple tables)
    Thank you
    sans

    Sans,
    I am no Apex expert, but with a situation as "complex" as yours, have you thought about creating a VIEW that joins these 7/8 tables, placing an INSTEAD OF trigger on that view to do all the business logic in the database, and base your application on the view?
    This is the "thick-database" approach that has been gaining momentum of late. The idea is to put your business logic in the database wherever possible, and let the application (Form, Apex, J2EE, whatever) concentrate on UI issues,

  • Create View table with multiple table

    I want to create View table with relation with multiple tables.
    for ex
    table 1
    mrnno
    mrnqty
    table 2
    mrnno
    issqty
    table 3
    mrnno
    retqty
    want to create view table where i can see the sum (mrnqty), sum(issqty),sum(retqty) group by mrnno
    sandy

    Hi
    CREATE OR REPLACE FORCE VIEW my_view AS
    WITH t1 AS
    (SELECT mrnno,
                      SUM(mrnqty) sum1
    FROM table_1
    GROUP BY mrnno),
    t2 AS
    (SELECT mrnno,
                      SUM(issqty) sum2
    FROM table_2
    GROUP BY mrnno),
    t3AS
    (SELECT mrnno,
                      SUM(retqty) sum3
    FROM table_3
    GROUP BY mrnno)
    SELECT mrnno,
                    sum1,
                   sum2,
                   sum3
    FROM t1,t2,t3
    WHERE t1.mrnno = t2.mrnno
    AND       t1.mrnno = t3.mrnnoCheers
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)

  • BaseTableName blank when calling GetSchema on a query with multiple tables

    I am using ODP.NET 11.2.0.3.0 and when calling GetSchemaTable on a DataReader that contains a join the returned SchemaTable has the BaseTableName and BaseColumnName fields blank - this is different than what I see with the Oracle OLE DB Provider and with how SQL Server's native provider works. I can't find any discussion of this - is this on purpose or is it a bug? why does the available schema information vary so drastically between a single table query and a query with multiple tables joined?
    Thanks,
    Bryan Hinton

    Hi Bryan,
    I am also facing the same issue. Did u find any work around or any suggestions will be well appreciated.
    Thanks,
    Naresh.

  • Create opaque view in OBIEE with multiple tables

    Hi,
    I need some help with the opaque view since i have never created it in past. I want to create an opaque view which fetches data from multiple tables. Is it possible to do that ? Or is there any other alternate option available in OBIEE ? I read the following blog and other similar blogs on opaque views but could not find option to use it for query with multiple tables:
    Oracle Business Intelligence: Creating Opaque View in Physical Layer in OBIEE 10g
    Also can you please advice how to join two tables from different databases in OBIEE ?
    Kindly advice.
    Regards,
    Andy

    Hi Andy,
    As per my knowledge you can create Opaque View on one table at a time.Joining two tables from different databases yes we can create a report from multiple data sources.Check this
    Rittman Mead Consulting » Blog Archive » Reporting Against Multiple Datasources in OBIEE
    Mark if helps.
    Thanks,

  • Ability to query on all columns from a view with multiple tables

    I have view with 4 tables. view has about 50 columns.
    hypothetically, I want to build a form to give the user an ability to query on any of those 50 columns. user can search on one or more fields.
    what is the best way to write the query to retrieve the results without performance impact.
    please let me know if the question is not clear.

    If you want to permit them to query any of 10 fields with no restrictions, you could create 10 separate single-column indexes. The optimizer would have to try to pick the best of these indexes if you specified multiple search criteria. But since you have a view which presumably means that you've got multiple other indexes involved for the underlying join conditions, you'd probably want/need to combine the column lists of the indexes you're adding for searches with the indexes you've created for joins, which requires looking at the text of the view and figuring out the best way to optimize the 10 single-column searches. Of course, it is possible that the optimizer could chose to do something like a b-tree to bitmap conversion on multiple indexes which could allow it to use multiple independent indexes for your queries, but that's generally not ideal performance-wise.
    All this is a fancy way of saying that there probably isn't a cut and dried answer to your question. You need to figure out the queries you're trying to optimize (say, the 10 single-condition queries) and you need to figure out what set of indexes on the various underlying tables provides the best performance weighing those benefits against the cost on other side of maintenance during DML. Which is going to depend on the text of the view, the underlying tables, the existing indexes, etc.
    Justin

  • Best way to do a lookup with multiple tables

    Hello,
    I am looking for an example or how to do a lookup through ESB XSL transformation. What I am wanting to accomplish is something like below:
    I am reading in a flat file and then want to use a field in that file to do a lookup in multiple tables.
    i.e.
    Select c.customer_name
    from customers c, order_lines ol, order_headers oh
    where ol.customer_id = c.customer_id
    and ol.header_id = oh.header_id
    and oh.order_number = p_order_num;
    I know that there is the lookup-table function but didnt know if that would work with this scenario. Any suggestions are appreciated.
    Thanks,
    Jason
    Edited by: Colby J on Oct 21, 2008 11:13 AM

    Hello,
    I am looking for an example or how to do a lookup through ESB XSL transformation. What I am wanting to accomplish is something like below:
    I am reading in a flat file and then want to use a field in that file to do a lookup in multiple tables.
    i.e.
    Select c.customer_name
    from customers c, order_lines ol, order_headers oh
    where ol.customer_id = c.customer_id
    and ol.header_id = oh.header_id
    and oh.order_number = p_order_num;
    I know that there is the lookup-table function but didnt know if that would work with this scenario. Any suggestions are appreciated.
    Thanks,
    Jason
    Edited by: Colby J on Oct 21, 2008 11:13 AM

  • Help with multiple table joins

    I'm trying to limit the results of a query joining multiple tables. I have a main table, tbl_webrequests, and multiple tables with supporting information. The unique column for tbl_webrequests is reqID. There is another table, tbl_instructions, that holds all the instructions tied to each request. I join the tables using reqID.
    I'm trying to construct a page that has all of the records in tbl_webrequests. The problem I'm having is that with each request that has multiple instructions, I have multiple results because of the multiple instructions for one reqID. For now, all I want is the original instruction to display. Below is the original query, and below that is what I'm trying to get the query to do for each record in tbl_webrequest. Note that 319 is a random uniqueID in tbl_webrequests.
    SELECT
    DISTINCT W.reqID, W.dt_close, W.dt_due, W.subject, W.statusid, W.empID, W.priorityid, W.assigneeid, W.categoryid, W.url, W.hrs,
    W.closingNotes, W.mins, W.requestTypeID, I.instructions, I.instID
    from tbl_webrequests W left join
    (select reqID, instID, instructions from tbl_instructions) I on W.reqID = I.reqID
    ORDER BY I.instID asc;
    SELECT
    distinct I.instructions, I.instID, W.reqID, W.dt_close, W.dt_due, W.subject, W.statusid, W.empID, W.priorityid, W.assigneeid, W.categoryid, W.url, W.hrs,
    W.closingNotes, W.mins, W.requestTypeID
    from tbl_webrequests W left join
    (select reqID, instID, instructions from tbl_instructions where rowNum = 1 and reqid = 319 order by instID asc) I on W.reqID = I.reqID
    where W.reqID = 319
    ORDER BY I.instID asc;
    My question is, how do I pass the reqID as a variable into the join subquery so that the query returns only returns the first joined item in tbl_instructions for each record in tbl_webrequests?
    Any help is appreciated
    Thanks!

    Scrap the "DISTINCT" and try something like this:
    Select
           I.Instructions, I.Instid
         , W.Reqid, W.Dt_Close, W.Dt_Due, W.Subject, W.Statusid, W.Empid, W.Priorityid
         , W.Assigneeid, W.Categoryid, W.Url, W.Hrs, W.Closingnotes, W.Mins, W.Requesttypeid
      From Tbl_Webrequests W Left Join
         ( Select Reqid, Instid, Instructions
             From Tbl_Instructions I0
            Where Instid = (Select Min(Instid) From Tbl_Instructions I1
                             Where I1.Reqid = I0.Reqid)
         ) I On W.Reqid = I.Reqid
    Where W.Reqid = 319
    Order By I.Instid Asc;;)

  • Issue with Multiple Tables in Report

    Post Author: dwessell
    CA Forum: General
    Hi,
    I'm using Crystal Reports 2k8.
    I'm doing a report with three tables, CQ_HEADER, SO_HEADER and SALESPERSON. Both the CQ_HEADER and the SO_HEADER tables link to the SALESPERSON table via a SPN_AUTO_KEY field.
    However, I always receive duplicates in my result set, due to the joins made, and I don't receive results that are valid in one table, and empty in another (Such that it only counts a CQ, if there is a SO associated with it. Here's the query that's produced by CR.
      SELECT "CQ_HEADER"."CQ_NUMBER", "CQ_HEADER"."ENTRY_DATE", "CQ_HEADER"."TOTAL_PRICE", "SALESPERSON"."SALESPERSON_NAME", "SO_HEADER"."ENTRY_DATE", "SO_HEADER"."TOTAL_PRICE"
    FROM   "CQ_HEADER" "CQ_HEADER" INNER JOIN ("SO_HEADER" "SO_HEADER" INNER JOIN "SALESPERSON" "SALESPERSON" ON "SO_HEADER"."SPN_AUTO_KEY"="SALESPERSON"."SPN_AUTO_KEY") ON "CQ_HEADER"."SPN_AUTO_KEY"="SALESPERSON"."SPN_AUTO_KEY"
    WHERE  ("CQ_HEADER"."ENTRY_DATE">={ts '2007-12-01 00:00:00'} AND "CQ_HEADER"."ENTRY_DATE"<{ts '2007-12-18 00:00:00'}) AND ("SO_HEADER"."ENTRY_DATE">={ts '2007-12-01 00:00:00'} AND "SO_HEADER"."ENTRY_DATE"<{ts '2007-12-18 00:00:00'})
    ORDER BY "SALESPERSON"."SALESPERSON_NAME"
    There is no link between the SO_HEADER and the CQ_HEADER.  Can anyone make a suggestion as to how I could go about structuring this such that it doesn't return duplicate values?
    Thanks
    David     

    Hey,
    I understand you used Retainsameconnection property true for all the OLEDB connections you used in the package if not make sure its for all the connection including file connection as well.
    Additionally, you can try to set Delayvalidation property to true for all the dataflows and control flows in the connection and try running the package for 10MB file.
    I hope this will fix the intermittent failure issue you are facing with SSIS.
    (Please mark solved if I've answered your question, vote for it as helpful to help other user's find a solution quicker)
    Thanks,
    Atul Gaikwad.

  • HTML Client Entering/Editing Data With Multiple Tables

    Hi guys,
    I've been stumped on what seems to be a relatively simple problem for quite some time now. I have a bunch of Products - Dairy, Meat, Produce and Candy, for example. Each Product has multiple ProductConfigurations - say, Monday, Tuesday, Wednesday, Thursday,
    and Weekend. Each Product also has its own unique set of ProductAttributes; Meat may have Animal, ExpirationDate, CostPerPound, Kosher for example, while Candy may have Type, Manufacturer, Price, Distributor, and Dairy may have Source, ExpirationDate, UnitCost.
    These are just examples, but the point is each Product has unique ProductAttributes. 
    For each ProductConfiguration (which has a Product), I want to be able to go to this ProductConfiguration and see a list of all its ProductAttributes, and provide an option to edit the ProductAttributeValue (a separate table) for each ProductAttribute. A
    ProductAttributeValue has a Value, a ProductAttribute (ie, Manufacturer) and a ProductConfiguration (ie, Tuesday).
    The way I currently have it set up is with a clickable List of all ProductAttributes for a given Product (which I get by querying the filter 'ProductAttribute.ProductID = Screen.ProductID' from the ProductAttributes tables). When you click, it brings up
    an 'AddNewProductAttributeValue' screen, in which the ProductAttribute is already populated. However, this requires a looot of clicks for Product(Configurations) which have many ProductAttributes. I'd love to be able to configure all of the ProductAttributeValues
    for a given ProductConfiguration on one screen.
    Any ideas how I could do this?

    Matt, there are two bits to get the in-built table to play nicely.
    // This makes the input textbox focus work better
    myapp.AddEditProductConfiguration.created = function (screen) {
    var scr = screen;
    scr.ProductAttributeValues.addChangeListener("selectedItem", function (eventArgs) {
    if (scr.ProductAttributeValues.selectedItem != null) {
    var item = scr.ProductAttributeValues.selectedItem;
    setTimeout(function () {
    $("input", item.details.focusElement).focus();
    }, 100);
    myapp.AddEditProductConfiguration.Value_postRender = function (element, contentItem) {
    contentItem.details._details.focusElement = element;
    ... the maintenance screen is based on a standard 'AddEdit<entity>' screen tweaked and in msls-2.5.2.js (or earlier) ...
    case $.mobile.keyCode.TAB:
    //Xpert360: tab
    //updateSelectedHeader(table, table._headerRowElement[0]);
    break;
    ... to stop the keyup handler messing up tabbing between input textboxes.
    Some code similar to this could pre-populate (or verify) that a configuration has rows of ProductAttributeValues matching ProductAttributes ...
    scr.getProductAttributeValues().then(function (values) {
    if (scr.ProductAttributeValues.count <= 0) {
    scr.getProductAttributes().then(function (values) {
    if (scr.ProductAttributes.count > 0) {
    scr.ProductAttributes.data.forEach(function(attr, idx, obj){
    var attrvalue = scr.ProductAttributeValues.addNew();
    attrvalue.ProductAttribute = scr.ProductAttributes.data[idx];
    attrvalue.ProductConfiguration = scr.ProductConfiguration;
    attrvalue.Value = "";
    ... which could be used in a variety of places.
    I will look to uploading the sample application.
    Dave
    Dave Baker | AIDE for LightSwitch | Xpert360 blog | twitter : @xpert360 | Xpert360 website | Opinions are my own. For better forums, remember to mark posts as helpful/answer.

  • Page Processing with multiple tables

    Hello to all sql experts!
    I have been successful in inserting a row into a table and creating the PK using Page Processing. The parent table is called Facility.
    I used the following sql to insert a row into the table and now need to add data to the child tables.
    Parent table==>
    INSERT INTO FACILITY(fac_pk, fac_type, fac_name, street1, city, state, zip, state_or_tribe, tribe_yn)
    VALUES (FAC_SEQ.nextval,
    NVL(:P211_FAC_TYPE, 'N'),
    NVL(:P211_FAC_NAME,'No Data'),
    NVL(:P211_STREET1,'No Data'),
    NVL(:P211_CITY, 'No Data'),
    NVL(:P211_STATE,'CA'),
    NVL(:P211_ZIP,'00000'),
    NVL(:P211_STATE_OR_TRIBE,'CA'),
    NVL(:P211_TRIBE_YN,'N'));
    Child table == >
    INSERT INTO CONTACT(cnt_pk, fullname, street1, city, state, zip, phone, title)
    VALUES (CNT_SEQ.nextval,
    NVL(:P36_FULLNAME, 'No Data'),
    NVL(:P36_STREET1,'No Data'),
    NVL(:P36_CITY, 'No Data'),
    NVL(:P36_STATE,'CA'),
    NVL(:P36_ZIP,'00000'),
    NVL(:P36_PHONE,'555-1212'),
    NVL(:P36_TITLE,'No Data'));
    My Questions:
    1. How do I reference the Facility PK that was already created?
    2. If I have several child tables where I want to insert a row, is the sql the same as above?
    I did run the separate Insert sql for Contact table, but all it did was create a new row, but no link to the facility record.
    Thanks for looking at this. I am new to sql and want to use the PL/SQL to process the inserts into the tables.
    Judy

    hi judy
    check this forum
    Re: How to insert into 2 tables from the same page (with one button  link)
    you will have an idea
    think, this help u better.
    bye
    srikavi

  • SQL query with multiple tables - what is the most efficient way?

    Hello I am learning PL/SQL. I have a simple procedure where I need to find number of employees and departments per location as per user input of location_id.
    I have 3 Tables:
    LOCATIONS
    location_id (pk)
    location_name
    DEPARTMENTS
    department_id (pk)
    location_id (fk)
    department_name
    EMPLOYEES
    employee_id (pk)
    department_id (fk)
    employee_name
    1 Location can have 0-MANY Departments
    1 Employee has 1 Department
    Here is the query I came up with for PL/SQL procedure:
    /*Ecount, Dcount are NUMBER variables */
    SELECT SUM (EmployeeCount), COUNT(DepartmentNumber)
         INTO Ecount, Dcount
         FROM     
         (SELECT COUNT(employee_id) EmployeeCount, department_id DepartmentNumber
              FROM employees
              GROUP BY department_id
              HAVING department_id IN
                        (SELECT department_id
                        FROM departments
                        WHERE location_id = userInput));
    I do get the correct result, but I am just wondering if my query is on the right track and if there is a more "efficient" way of doing this.
    Thanks in advance for helping a newbie out.

    Hi,
    Welcome to the forum!
    Something like this will be more efficient:
    SELECT    COUNT (employee_id)               AS ECount
    ,       COUNT (DISTINCT department_id)     AS DCount
    FROM       employees
    WHERE       department_id IN (     SELECT     department_id
                        FROM      departments
                        WHERE      location_id = :userInput
    ;You should also try a join instead of the IN subquery.
    For efficiency, do only the things you need to do.
    For example, you don't need a count of employees in each department, so don't compute one. That means you won't need the in-line view, so don't have one.
    You don't need PL/SQL for this job, so don't use PL/SQL if you don't have to. (I realize this question was out of context, so you may have good reasons for doing this in PL/SQL.)
    Do all filtering as early as possible. Don't waste effort computing things that won't be used .
    A particular example of this is: Never use a HAVING clause when you can use a WHERE clause. What's the difference between a WHERE clause and a HAVING clause? The WHERE clause is applied before aggregate functions are computed, and the HAVING clause is applied after; there's no other difference. Therefore, if the HAVING clause isn't referencing an aggregate function, it could be done in a WHERE clause instead.

  • How to import csv file with multiple tables into sql server

    I have multiple csv files that has one sheet but has 130 headers with each header having different data. 
    I'd like to import each one of these header rows with data into its own file in sql server. 
    I know very basic SSIS and am but am not familiar with the scripting in it though which what I assume I'd have to use. 
    Each header in the csv file is structured as such(also see example pic):
    first header would be this:                             
          ITEM = ORG_V                              
          DATE = 2013-07-22 10:00 ~ 2013-07-22 10:15      
    column names
    data
    second header would be this:
    ITEM = TER_V
          DATE = 2013-07-22 10:00 ~ 2013-07-22 10:15
    column names
    data
    The headers can be at any random row number as well as the data size in each excel file differs but they all start with "ITEM ="
    and then in the next row "DATE ="
    I could also convert these to excel files if it makes this process easier. 

    Why don't you put a filter on D3, filter out the blanks, copy/paste to a new CSV file, save it, and import it.
    There's no way you're going to get SQL to do that kind of thing for you.  The language is for set based operations, not for complex data manipulation tasks.
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • DML Error Logging with multiple tables = OALL8

    I have a mapping that, via a splitter, loads 3 tables. This mapping works perfectly.
    Recently we upgraded to OWB 10.2.0.3 so we decided to make use of the new feature of DML error logging. So three error-tables where created and the "error table name" property of each table was entered. When re-creating this mapping in the database the following errors occur: "State of OALL8 is inconsistent", "No more data to read from Socket" (translated from dutch). When removing the value from the "error table name" property again, the mapping can be recreated again.
    What am I doing wrong? Have I run into a bug?

    Which database version are you using?
    Also not sure when exactly the error occurs, when you deploy the map...or when you execute the map? Can you describe as simple a scenario for it to fail that you can?
    I did find a bug 5942415 which was to do with this area..worth checking anyway.
    Cheers
    David

  • How to insert records in database from a dataset with multiple tables

    Hi,
    I'm struggling with the following problem:
    I have saved a dataset to an XML file by executing the following statement:
       ds.WriteXml( "Export\\ModuleChain_Mdata.xml" );The dataset, ds, includes records from several tables.
    Is there an easy way to retrieve those records to the database, I.E inserting them again?
    regards Peter

    you can try Associative Arrays:
    http://www.oracle.com/technology/oramag/oracle/07-jan/o17odp.html
    you need to convert yore DataTables to array first and than pass them in to the associative array procedure.

Maybe you are looking for

  • How to keep files from disappearing when using Dynamic link to AE from PremProCS4?

    I am at my wits end here and hope someone can offer a solution.  I use Dynamic Link in PremProCS4 to link a clip in my timeline to AfterEffects.  I follow the instructions in my book and everytime I close my files and reopen..I loose the clip along w

  • How to set JFrame's LayeredPane?

    Hello,eveyone! I wat to set JFrame's LayeredPane by JFrame's setLayeredPane() method. My code as follow: import javax.swing.*; import java.awt.*; public class LayeredTest{     public static void main(String[] args){         SwingUtilities.invokeLater

  • Font Book and Trash

    First. when FB finds a serious issue, does it not load it? Next. is it possible to extract a faulty version of a font that has several variations of that font inside. In the "olden" days with ... was it called "Suitcase" or something like that... we

  • Order Quantity Change After Delivery

    The Scenerio is like this I m using order related billing now the user had made the delivery of the order and billing document is also created now if i go back into the order and change the already delivered qty system is allowing this change but als

  • HT3867 Can I get a the Internet on my iPad, even that it does not have 3g

    I am going to portugul on the31st July, I was wondering if there was a way of getting Internet on my ipad2 which hasn't got 3G?