IBM Support

Error "Native open cursor failed with SQL code -1862, sqlstate 22008" is displayed when running SQL using JDBC Gateway Oracle Virtual Table with columns of data type TIMESTAMP

Troubleshooting


Problem

Error "Native open cursor failed with SQL code -1862, sqlstate 22008" is displayed when running SQL using JDBC Gateway Oracle Virtual Table with columns of data type TIMESTAMP

Symptom

When executing SQL with columns of data type TIMESTAMP using a JDBC Gateway Oracle Virtual table, the below error is displayed.

e.g. Column CREATED_ON is of data type TIMESTAMP

13:44:37:762, 01 Feb 2023 - SELECT CREATED_ON FROM USSO_DB2LUWU_DISBURSEMENT_HISTORY WHERE CREATED_ON BETWEEN '2018-04-28 00:00:00.0' AND  '2018-05-28 00:00:00.0'
13:44:37:848, 01 Feb 2023 - Error executing statement.
13:44:37:848, 01 Feb 2023 - [DV][JDBC Driver][3.1.202212020558] Native open cursor failed with SQL code -1862, sqlstate 22008, error text =
13:44:37:848, 01 Feb 2023 - Stop SQL Execution (Iteration Time = 86  ms).

Document Location

Worldwide


[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS4NKG","label":"IBM Data Virtualization Manager for z\/OS"},"ARM Category":[{"code":"","label":""}],"Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"All Versions","Line of Business":{"code":"LOB76","label":"Data Platform"}},{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSKRKK","label":"IBM Db2 Analytics Accelerator Loader for z\/OS"},"ARM Category":[{"code":"","label":""}],"Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"All Versions","Line of Business":{"code":"LOB76","label":"Data Platform"}},{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS3H8V","label":"IBM Open Data Analytics for z\/OS"},"ARM Category":[{"code":"a8m0z000000cxHeAAI","label":"IBM z\/OS Mainframe Data Service for Apache Spark"}],"Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"1.2.0","Line of Business":{"code":"LOB70","label":"Z TPS"}},{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS6QWT","label":"IBM QMF Analytics for Multiplatforms"},"ARM Category":[{"code":"a8m0z000000cxH0AAI","label":"QMF Data Service"}],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

More support for:
IBM Data Virtualization Manager for z/OS

Software version:
All Versions

Operating system(s):
z/OS

Document number:
6910173

Modified date:
10 February 2023

UID

ibm16910173

Manage My Notification Subscriptions