How to set up a capture from multiple sources when all the tables in the channel don’t reside in all of the source locations

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #15025
    Pallavik
    Keymaster

    How to: Set up a capture from multiple sources when all the tables in the channel don’t reside in all of the source locations

    Scenario:

    Consider a use case where you want to capture some tables from oracle and some tables from sqlserver. And each of these tables belong to only one source. Assume you want to capture table ‘customer’ and ‘orders’ from oracle location (orcl) and tables ‘item’ and ‘order_line’ from SQL server database (sqlw2).

    Pre-requistes:

    1. Channel chn1 is created
    2. Source oracle (orcl) and source SQL server are created in Location Configuration

    Steps:

    1. Define SOURCE group
    • Right click on Location groups under chn1 and select New Group

     

    • In the new group window select the 2 sources that you want to capture from. In our case it is orcl and sqlw2.

    • Click ok to confirm

    2. Define TARGET group

    • Right click on Location groups under chn1 and select New Group

    • In the new group window select the target. In our case it is oracle on Linux (olx)

    • Click ok to confirm.

    3. Add Tables to the channel from respective sources. In our case we add tables ‘customer’ and ‘orders’ from orcl and tables ‘item’ and ‘order_line’ from SQL server.

    4. Add action Capture for SRC group

    • Right click on the SRC group to select Capture under New Action

    • On the Capture Action window click on ok to confirm

    • Action will look as below

    5.Next step will be to expand the capture action so that it is assigned for each table. This extra step is required in this kind of scenario.

    • Right click on asterisk under the Tables which will open a drop down box. And click on Expand option

    • After clicking on Expand it will list capture action for all the tables as shown below.

    6.Select correct Location for each table.

    • Right click on the action and go to its properties

    • In the pop up window check box for Configuration Action and select the correct source location where the table exists. In our case table customer resides in orcl.

    • Similarly we need to do this for all the tables. Perform step 6 again to specify that table ‘orders’ reside in orcl, ‘item’ resides in sqlw2 and order_line resides in sqlw2.

    7.Create Integrate action for TGT group

    • Perform HVR Initialize which will create 3 jobs, 2 for capture and 1 for integrate.
    • Perform HVR Refresh
    • Start the capture and Integrate Jobs
Viewing 1 post (of 1 total)
  • The forum ‘How to’ is closed to new topics and replies.

© 2020 HVR

Test drive Contact us