Sequences

Archive of postings to DataStageUsers@Oliver.com. This forum intended only as a reference and cannot be posted to.

Moderators: chulett, rschirm

Locked
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Sequences

Post by admin »

how to call oracle pl/sql sequences in data stage.

_________________________________________________________________
Stay informed on Election 2004 and the race to Super Tuesday.
http://special.msn.com/msn/election2004.armx

_______________________________________________
datastage-users mailing list
datastage-users@oliver.com
http://www.oliver.com/mailman/listinfo/datastage-users
<b>PLEASE READ</b>
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Sequences

Post by admin »

hi

In an OCI stage, go to output tab in that you will
find user-defined sql. Write SQL in the Before tab.

Ex. select Nextval. from dual.

mahesh
mgotur_mca@yahoo.com















--- indumathi venketapathi
wrote:
> how to call oracle pl/sql sequences in data stage.
>
>
_________________________________________________________________
> Stay informed on Election 2004 and the race to Super
> Tuesday.
> http://special.msn.com/msn/election2004.armx
>
> _______________________________________________
> datastage-users mailing list
> datastage-users@oliver.com
>
http://www.oliver.com/mailman/listinfo/datastage-users


__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
_______________________________________________
datastage-users mailing list
datastage-users@oliver.com
http://www.oliver.com/mailman/listinfo/datastage-users
<b>PLEASE READ</b>
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Sequences

Post by admin »

have you read your manual yet

indumathi venketapathi wrote:

> how to call oracle pl/sql sequences in data stage.
>
> _________________________________________________________________
> Stay informed on Election 2004 and the race to Super Tuesday.
> http://special.msn.com/msn/election2004.armx
>
> _______________________________________________
> datastage-users mailing list
> datastage-users@oliver.com
> http://www.oliver.com/mailman/listinfo/datastage-users
>


_______________________________________________
datastage-users mailing list
datastage-users@oliver.com
http://www.oliver.com/mailman/listinfo/datastage-users
<b>PLEASE READ</b>
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Sequences

Post by admin »

Sequences are not part of PL/SQL. They are independently created objects in the Oracle database.

You invoke them from DataStage the same way you invoke them anywhere else, by referring to them in an SQL statement.

You may need to switch from generated to user-defined SQL to do this.
For example, you want to insert a row containing four columns, the first of which is to have its value obtained from a sequence.

Your job design has THREE columns on the input link to the stage (you do not supply a value from the job for the sequenced column).

Your SQL will have the appearance
INSERT into tablename(col1, col2, col3, col4) VALUES (seqname.NEXTVAL, :1, :2, :3);

The parameter markers refer to the three columns delivered from your DataStage job.

----- Original Message -----
From: "indumathi venketapathi"
Date: Wed, 18 Feb 2004 01:32:43 +0000
To: datastage-users@oliver.com
Subject: Sequences

> how to call oracle pl/sql sequences in data stage.
>
> _________________________________________________________________
> Stay informed on Election 2004 and the race to Super Tuesday.
> http://special.msn.com/msn/election2004.armx
>
> _______________________________________________
> datastage-users mailing list
> datastage-users@oliver.com
> http://www.oliver.com/mailman/listinfo/datastage-users

_______________________________________________
datastage-users mailing list
datastage-users@oliver.com
http://www.oliver.com/mailman/listinfo/datastage-users
<b>PLEASE READ</b>
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
Locked