inserting the diff files data in to target table

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
amreesh_singh
Participant
Posts: 15
Joined: Tue Aug 26, 2008 5:07 am

inserting the diff files data in to target table

Post by amreesh_singh »

Hi,

The job have 3 sequential files , 1st one contains 4 columns and the 2nd one contains 5 columns and the 3rd one 2 columns.

All the seq. files contains diff. data with no common column.

There are 2 different target tables. 1st one contains total 6 columns ;4 columns of 1st seq file and 2 columns of 3rd seq file.

2nd target table contains total 7 columns;5 columns of 2nd seq. file and 2 columns 3rd seq. file.


File1 ------> Tran------> Oracle1
File2-------->Tran------>Oracle2

File3--------->???????
I tried to develop the job but the issue is that the transformer and oracle stage doesnt allow multiple inputs and File3 columns values is needed by both the oracle stages.
How to get it done.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Add two more Oracle stages. Link both from the 'third' transformer.
-craig

"You can never have too many knives" -- Logan Nine Fingers
amreesh_singh
Participant
Posts: 15
Joined: Tue Aug 26, 2008 5:07 am

Post by amreesh_singh »

chulett wrote:Add two more Oracle stages. Link both from the 'third' transformer. ...
Thanks for the reply chulett . can you brief me on that , i could not get the point. I am having only two target tables and those are mapped to the two oracle stages.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Map them again. No rule against having multiple stages writing to the same instance / schema / table as long as you don't create locking issues. Or use another stage to combine the two streams before sending the data to Oracle.
-craig

"You can never have too many knives" -- Logan Nine Fingers
amreesh_singh
Participant
Posts: 15
Joined: Tue Aug 26, 2008 5:07 am

Post by amreesh_singh »

chulett wrote:Map them again. No rule against having multiple stages writing to the same instance / schema / table as long as you don't create locking issues. Or use another stage to combine the two streams before ...
Thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

amreesh_singh wrote:But I need to update only records which i have inserted in to the table using 1st job.
First mention of more than one job or of this particular requirement.

How can you recognize the records inserted by the first job? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
amreesh_singh
Participant
Posts: 15
Joined: Tue Aug 26, 2008 5:07 am

Post by amreesh_singh »

chulett wrote:
amreesh_singh wrote:But I need to update only records which i have inserted in to the table using 1st job.
First mention of more than one job or of this particular requirement.

How can ...
i need to update only those records with the file 2 column value which i have inserted in the table in job 1
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You've said that already. Let's try this again.

How can you recognize the records inserted by the first job? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
amreesh_singh
Participant
Posts: 15
Joined: Tue Aug 26, 2008 5:07 am

Post by amreesh_singh »

chulett wrote:You've said that already. Let's try this again.

How can you recognize the records inserted by the first job? :? ...
with the 4 column values inserted
Post Reply