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 » WMB 6.1: Select from Oracle Sequence - DUAL

Post new topic  Reply to topic
 WMB 6.1: Select from Oracle Sequence - DUAL « View previous topic :: View next topic » 
Author Message
scravr
PostPosted: Wed Nov 12, 2008 8:44 am    Post subject: WMB 6.1: Select from Oracle Sequence - DUAL Reply with quote

Partisan

Joined: 03 Apr 2003
Posts: 391
Location: NY NY USA 10021

In ESQL: I have this select from oracle sequence:
SET Environment.Variables.IntegData[] = SELECT WMB.IMADSEQ.NEXTVAL FROM Database.DUAL;

geting deploy error:
BIP2432E: The correlation name 'WMB.IMADSEQ.NEXTVAL' is not valid. Those in scope are: Environment, InputLocalEnvironment, OutputLocalEnvironment, InputRoot, InputBody, InputProperties, OutputRoot, InputExceptionList, OutputExceptionList, InputDestinationList, OutputDestinationList, P1, P2, T2, GT, MsgProc, temp1, temp2, temp3, DUAL.

The first element of a field reference must be a valid correlation name, from those in scope. This message may sometimes be due to an incorrectly formed or spelled expression which is not intended to be a field reference being parsed as if it were a field reference because the parser does not recognize it.


This works when runing in oracle directly.
SELECT WMB.IMADSEQ.NEXTVAL FROM DUAL;


How do I get NEXTVAL in ESQL?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
sridhsri
PostPosted: Wed Nov 12, 2008 9:03 am    Post subject: Reply with quote

Master

Joined: 19 Jun 2008
Posts: 297

I think you are missing "Database.DUAL AS WMB"
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Nov 12, 2008 9:12 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

There is a difference between ESQL Select statement and SQL Select statement.

Until you understand what that difference is, you will continue to have trouble using databases with ESQL.
Back to top
View user's profile Send private message
Gaya3
PostPosted: Wed Nov 12, 2008 7:32 pm    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

we discussed a lot about this and even given good insight to you also

use PASSTHRU function

As Jeff said there is a difference in ESQL Select and SQL Select. (had given couple of hints to you, what to use and how to use)

Try out and search the forum.
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
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 » WMB 6.1: Select from Oracle Sequence - DUAL
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.