Skip to main content
simply more productive

The Data Specialist

Thanks to our intuitive transformation designer, you can convert data effortlessly to a variety of formats without knowing how to program. It’s not only efficient, it’s also easy to use.
Flowheater Chart

Data Migration from XML To Oracle using key value pair

  • rajat kumar barik
  • Topic Author
  • Offline
  • User
  • User
More
6 years 5 months ago #3431 by rajat kumar barik


Hello Sir,

I am trying to read data from XML File and insert/update to the oracle database table.

My Scenario as per the image shared give below:

From the XML Adapter Side I have to make a combination of ID and Name field from read side and search it with combination of oracle adapter table ID and Asset_ID at write side. if the Search criteria matches then for that corresponding record the thickness value from read side can we add or update to MAWT column at write side.

Please let me know what adaptor or control structure I need to use, an it will be helpful if u can attach a sample which will be helpful of all other users as well.

Thanks for your time.

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago #3432 by FlowHeater-Team
Replied by FlowHeater-Team on topic Data Migration from XML To Oracle using key value pair
Hi Rajat,

I suppose you want to detect whether a row is already inserted and in this case FlowHeater should perform an UPDATE and if not FlowHeater should perform to INSERT a new row.

FlowHeater can handle this automatically! You just have to enable both option “insert data” and “update data” in the Oracel Adapter on the WRITE side (see Screenshot).

In order to check a combination of two fields (not only the table based primary key) you just have to switch on the “Primary Key” option for the second field “Asset_ID” on the “Fields and Data types” tab (see Screenshot).

With this settings the Oracel Adapter checks automatically based on the fields “ID” and “Asset_ID” whether a row exist and perform an update or insert.

Atteched you´ll find a brief example.

Oracle insert or update


Key combination


File Attachment:

File Name: oracle-ins...date.zip
File Size:2 KB

Best wishes
Robert Stark

Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.

Please Log in or Create an account to join the conversation.

  • rajat kumar barik
  • Topic Author
  • Offline
  • User
  • User
More
6 years 5 months ago - 6 years 5 months ago #3433 by rajat kumar barik
Replied by rajat kumar barik on topic Data Migration from XML To Oracle using key value pair
From the Read Side,

1.if ID and NAME are not null values and matches to the Write Side, then data need to be updated.
2.if ID and NAME are not null values and not matches to the Write Side, then data need to be inserted.
3.if ID and NAME are null values or either one null, then we don't want to list out that row in the scripts for insert.

How can we achieve the 3 number scenario.
Last edit: 6 years 5 months ago by rajat kumar barik.

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago #3434 by FlowHeater-Team
Replied by FlowHeater-Team on topic Data Migration from XML To Oracle using key value pair
Hi Rajat,

I´ve just modified the Definition with 2 Filter Heater and IF-THEN-ELSE Condition to filter the them when be a null value. The Definition decides automatically whether an INSERT or UPDATE is necesarry, it should work for your purpose.

NULL value filter condition


File Attachment:

File Name: oracle-ins...5-24.zip
File Size:2 KB

Best wishes
Robert Stark

Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.

Please Log in or Create an account to join the conversation.

Time to create page: 0.289 seconds
FlowHeater Logo

FlowHeater - The Data Specialist

Efficient data integration and transformation with FlowHeater – the perfect solution for a seamless transfer of your data.

Legal information

Support & Contact

Contact

Phone:
0951 / 9933 9792

eMail:
This email address is being protected from spambots. You need JavaScript enabled to view it.


Copyright © 2009-2024 by FlowHeater GmbH. All rights reserved.