ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Flow and Oracle sequence

Post new topic  Reply to topic
 Flow and Oracle sequence « View previous topic :: View next topic » 
Author Message
marcin.kasinski
PostPosted: Thu Jan 08, 2009 7:16 am    Post subject: Flow and Oracle sequence Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

Can I use Oracle sequence in ESQL INSERT sentence or I have to use PASSTHRU ?

Code below doesn't work

Code:
INSERT INTO Database.mytable (id,v1) values (mysequence_id.NEXTAL,123)

_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
elvis_gn
PostPosted: Thu Jan 08, 2009 9:34 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi marcin.kasinski,

Don't even use a Passthru, else you might end up having multiple instances or flows trying to generate nextvals all over. Rather use a stored procedure on the database end, and call it.

Regards.
Back to top
View user's profile Send private message Send e-mail
marcin.kasinski
PostPosted: Thu Jan 08, 2009 9:44 am    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

elvis_gn wrote:
Hi marcin.kasinski,

Don't even use a Passthru, else you might end up having multiple instances or flows trying to generate nextvals all over. Rather use a stored procedure on the database end, and call it.

Regards.


Thanks for reply

I know that Passthru is not a good way.
I can do it with stored procedure. It's not a problem.

The question is : Is it possible to use this simple sentence above with sequence

Code:
INSERT INTO Database.mytable (id,v1) values (mysequence_id.NEXTAL,123)


Do I have error in this code or it is not possible to use in ESQL?
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
Maximreality
PostPosted: Mon Jan 12, 2009 6:33 am    Post subject: Reply with quote

Acolyte

Joined: 04 Jun 2004
Posts: 65
Location: Copenhagen

In general you can not use database specific functions in ESQL

/Rasmus
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Flow and Oracle sequence
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.