JoinStageProblem

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
skp
Premium Member
Premium Member
Posts: 135
Joined: Wed Dec 26, 2007 1:56 am
Location: India

JoinStageProblem

Post by skp »

Hi,

In Join Stage -->can we do join on two different databases tables(Oracle and SQL Server0
I am trying to do but I am getting
Error:
Sort key field not found:

In the join Stage it is not populating any Fields ???

Please let me know how can I resolve






Regard
skp
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Is the key column present as a key? Is it present in both links? Did you declare the "key" in the join stage?
skp
Premium Member
Premium Member
Posts: 135
Joined: Wed Dec 26, 2007 1:56 am
Location: India

Post by skp »

Thanks Andrw

Oracle field FundGroupNumber(Field) is not specified as key in the oracle table.

MSSQLServer field FundGroupNumber(Field) is sepecified as key at SQLServer Table.

In datastage at OracleEnterprizeStage I made 'FundGroupNumber' as key.

In Join Stage at key dropdown it will populate all fieds automatically.

But I am not getting any fields in the drop down.I Declare it by hardcodeing.
skp
Premium Member
Premium Member
Posts: 135
Joined: Wed Dec 26, 2007 1:56 am
Location: India

Post by skp »

Can we jon two different databases(Oracle and SQLServer) tables ?
Maveric
Participant
Posts: 388
Joined: Tue Mar 13, 2007 1:28 am

Post by Maveric »

You can join. your key columns should have the same name. Identify the key fields in both the links. Keep the key field names in one of the link same and change the field names for the other link. Then you will see that the drop down is populated. Select the fields from the drop down. Do the renaming in a copy, modify or transformer stage.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The Join keys must not only have the same name, they must also have the same data type.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sajarman
Participant
Posts: 41
Joined: Mon Nov 28, 2005 6:29 am

Post by sajarman »

Just a thought - check if the column names have same case (both capital or small).

Hope you resolved the problem.
skp
Premium Member
Premium Member
Posts: 135
Joined: Wed Dec 26, 2007 1:56 am
Location: India

Post by skp »

have 1 to many relations between the two tables ,while performing join stage it thrwoing an error .
skp
Premium Member
Premium Member
Posts: 135
Joined: Wed Dec 26, 2007 1:56 am
Location: India

Post by skp »

have 1 to many relations between the two tables ,while performing join stage it thrwoing an error .
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

skp wrote:have 1 to many relations between the two tables ,while performing join stage it thrwoing an error .
What Error :?:
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

:idea: :!: :!:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sajarman
Participant
Posts: 41
Joined: Mon Nov 28, 2005 6:29 am

Post by sajarman »

Are you getting the error at runtime or during compilation?
sajarman
Participant
Posts: 41
Joined: Mon Nov 28, 2005 6:29 am

Post by sajarman »

Have you selected Auto for partition in the join stage or have you repartitioned the input data?
Post Reply