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 » Auto Sequencing from ESQL

Post new topic  Reply to topic Goto page Previous  1, 2
 Auto Sequencing from ESQL « View previous topic :: View next topic » 
Author Message
JLRowe
PostPosted: Tue Feb 26, 2008 8:44 am    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

You're doing something wrong, all I can think of is that your transactions are rolling back.

But remember a sequence is designed to create ascending unique values, they may not be consecutive. This is to reduce contention.

If you want sequence numbers that are guaranteed to be ascending, then use a table, it may however reduce concurrency.
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Tue Feb 26, 2008 8:49 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The last time I did something like this, I used an incrementing default value.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
chandu
PostPosted: Thu Oct 14, 2010 8:25 am    Post subject: Reply with quote

Novice

Joined: 05 Aug 2009
Posts: 16

I have a similar issue.I am using test_seq.
set environment.x = passthru('select test_seq.nextval from dual');
insert into database.schema.table(col1,col2) values (environment.x,y);

After executing it is inserting null value.
But in oracle the same query returns a value.Y not in broker passthru.Help resolve.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Oct 14, 2010 8:42 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

chandu wrote:
I have a similar issue.


A moderator has already split your virtually unrelated post from this thread once!

It's considered bad form to reopen a really old thread as it's unlikely to be the same situation - software levels change for one thing. If you're convinced it's the same problem, include a link in your post to the old thread.

It's considered even worse to have 2 threads running on the same problem. Do not do this. Do not reopen old threads.


_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
chandu
PostPosted: Thu Oct 14, 2010 9:38 am    Post subject: Reply with quote

Novice

Joined: 05 Aug 2009
Posts: 16

I am sorry.I will open a new thread.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Oct 14, 2010 10:28 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

chandu wrote:
I am sorry.I will open a new thread.


You already have a new thread. Are you even looking at what's happening in this forum?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Oct 14, 2010 11:50 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

See the answer in http://www.mqseries.net/phpBB2/viewtopic.php?t=55479

Your code is wrong. Working as designed.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Auto Sequencing from ESQL
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.