|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
ORA-01002: fetch out of sequence error |
« View previous topic :: View next topic » |
Author |
Message
|
Mbdeveloper |
Posted: Thu Dec 01, 2016 1:19 pm Post subject: ORA-01002: fetch out of sequence error |
|
|
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 |
|
 |
fjb_saper |
Posted: Fri Dec 02, 2016 6:10 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|