Oracle sequence
Moderators: chulett, rschirm, roy
Oracle sequence
Hi,
how can I insert a oracle sequence with DataStage 8.1?
tks for help
how can I insert a oracle sequence with DataStage 8.1?
tks for help
-
- Participant
- Posts: 111
- Joined: Mon Nov 30, 2009 7:21 am
- Location: Bangalore
Re: Oracle sequence
We can invoke oracle sequence within transformer stage or we can call SequenceName.nextval in insert sql.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You can use an Oracle sequence in user-defined SQL, for example
I leave it to Poovalingam to explain how to invoke within a Transformer stage; it's not something I'd do directly.
Instead, I would connect a Surrogate Key Generator stage to the Oracle sequence, and use the appropriate function to get the next surrogate key within the Transformer stage.
Code: Select all
INSERT INTO myschema.mytable(C1,C2,C3) VALUES mysequence.NEXTVAL, ORCHESTRATE.C2, ORCHESTRATE.C3);
Instead, I would connect a Surrogate Key Generator stage to the Oracle sequence, and use the appropriate function to get the next surrogate key within the Transformer stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
I did address that in my response. You need to get yourself a premium membership to be able to view the entire response from the five premium posters. (This is the mechanism by which DSXchange is funded.)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: