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 » ORA-01002: fetch out of sequence error

Post new topic  Reply to topic
 ORA-01002: fetch out of sequence error « View previous topic :: View next topic » 
Author Message
Mbdeveloper
PostPosted: Thu Dec 01, 2016 1:19 pm    Post subject: ORA-01002: fetch out of sequence error Reply with quote

Newbie

Joined: 18 Mar 2006
Posts: 4

When trying to retrieve the data from oracle view getting below two error messages .

[unixODBC][IBM][ODBC Oracle Wire Protocol driver][Oracle]ORA-01002: fetch out of sequence

[unixODBC][IBM][ODBC Oracle Wire Protocol driver][Oracle]ORA-01841: (full) year must be between -4713 and +9999, and not be 0

Below is query :

SELECT HOLIDAY_DATE,HOLIDAY_CODE,HOLIDAY_CODE_DESC FROM BTMU_SWAP.HOLCAL WHERE CURRENCY='USD' AND
TO_DATE(Holiday_date,'yyyymmdd') BETWEEN TO_DATE('20161101','yyyymmdd') AND TO_DATE('20261101','yyyymmdd') AND HOLIDAY_CODE <> 'w'

Below query is working fine without any issues. It is failing only when we have date field in where clause .
SELECT HOLIDAY_DATE,HOLIDAY_CODE,HOLIDAY_CODE_DESC FROM BTMU_SWAP.HOLCALWHERE CURRENCY='USD' AND HOLIDAY_CODE ='w'

Below is the ODBC configuration

[ABCDFG]
Driver=/opt/IBM/mqsi/8.0.0.5/ODBC/V6.0/lib/UKora24.so
Description=DataDirect ODBC 6.0 Oracle Wire Protocol
HostName=XXXXXXXXX
PortNumber=NNNN
ServiceName=NNMM
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Dec 02, 2016 6:10 am    Post subject: Reply with quote

Grand High Poobah

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

Can you confirm the syntax of the query and especially the TO_DATE function and the type for each parameter it supports...
Would that not require a pass through statement? ...
_________________
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 Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » ORA-01002: fetch out of sequence error
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.