Oracle sequence issue

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

rohitchattar
Premium Member
Premium Member
Posts: 24
Joined: Thu Jun 21, 2007 1:20 am

Post by rohitchattar »

We have upgraded our server edition from 7.5 to 7.5.2. What is the difference between these two versions?
We have checked all the possibilities suggested by chulett and ray but did't get nay set up difference with our existing system.

We have the prob only with whenever we are calling the oracle sequence from oracle stage. We are using oracle stage with reference link without any key column. Is this causing the prob?

Please suggest.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Suggest you open a case with your official Support provider at this point if you truly can't find any differences between the two servers.

And no, that kind of reference lookup without a key field is not a problem.
-craig

"You can never have too many knives" -- Logan Nine Fingers
rohitchattar
Premium Member
Premium Member
Posts: 24
Joined: Thu Jun 21, 2007 1:20 am

Post by rohitchattar »

We have upgraded our server edition from 7.5 to 7.5.2. What is the difference between these two versions?
We have checked all the possibilities suggested by chulett and ray but did't get nay set up difference with our existing system.

We have the prob only with whenever we are calling the oracle sequence from oracle stage. We are using oracle stage with reference link without any key column. Is this causing the prob?

Please suggest.
rohitchattar
Premium Member
Premium Member
Posts: 24
Joined: Thu Jun 21, 2007 1:20 am

Post by rohitchattar »

We have upgraded our server edition from 7.5 to 7.5.2. What is the difference between these two versions?
We have checked all the possibilities suggested by chulett and ray but did't get nay set up difference with our existing system.

We have the prob only with whenever we are calling the oracle sequence from oracle stage. We are using oracle stage with reference link without any key column. Is this causing the prob?

Please suggest.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It is impossible - on either system - to have a reference link without a key column. How would you specify which row(s) to return?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Actually, it's not impossible. For an Oracle sequence, you simply use a query of "select X.NEXTVAL from DUAL" with a single non-key column to hold the result. No key is supplied in the reference link and it returns a new key for every record through the job.

I've done this and it works 'fine' although it is not my preferred methodology.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

OK, not impossible, but insane if the reference column has many rows.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply