Page 1 of 1

Sequence number in Oracle DB

Posted: Wed Apr 04, 2007 12:37 pm
by shilpa79
Do we have any function for generating the sequence number in Oracle
in PX.

Thanks,

Posted: Wed Apr 04, 2007 12:56 pm
by chulett
Be more specific. Are you referring to leveraging an Oracle sequence object, the kind of thing you would 'select x.nextval from dual' to use?

If so, why not just use the Surrogate Key Generator stage?

Posted: Wed Apr 04, 2007 4:24 pm
by Madhusv
There are routines KeyMgtGetNextValue and KeyMgtGetNextValueConcurrent, You can use this to genrate sequence in server jobs

Posted: Wed Apr 04, 2007 5:03 pm
by DSguru2B
Madhusv wrote:There are routines KeyMgtGetNextValue and KeyMgtGetNextValueConcurrent, You can use this to genrate sequence in server jobs
The routines mentioned above will help you if you are on server edition.
If px, the follow Craig's advice. As both the advices are specific to the edition your working on.

Posted: Mon Apr 09, 2007 12:20 pm
by shilpa79
DSguru2B wrote:
Madhusv wrote:There are routines KeyMgtGetNextValue and KeyMgtGetNextValueConcurrent, You can use this to genrate sequence in server jobs
The routines mentioned above will help you if you are on server edition.
If px, the follow Craig's advice. As both the advices are specific to the edition your working on.
I tried in server with the above two key translomations its working fine and I have used surrogatekey stage in PX it also worked fine.

Thanks for all your help

Posted: Mon Apr 09, 2007 3:01 pm
by ray.wurlod
:roll: Watch this space.