Solved

Oracle][ODBC Teradata Client driver][Teradata]Invalid operation on an ANSI Datetime or Interval value

Posted on 2010-09-14
2
1,520 Views
Last Modified: 2013-11-11
using oracle gateway to access teradata; when I run this query:

SELECT   *
  FROM   "prodtab"."Claim"@datawarehouse
 WHERE   "pcyc" = '1658'
         AND "user_id" = '02249521'
         AND "Date_Pay" BETWEEN TO_DATE ('05/01/2009', 'mm/dd/yyyy')
                                     AND  TO_DATE ('06/30/2009',
                                                   'mm/dd/yyyy')

i get this error message

ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Oracle][ODBC Teradata Client driver][Teradata]Invalid operation on an ANSI Datetime or Interval value.
ORA-02063: preceding 2 lines from DATAWAREHOUSE

please help
0
Comment
Question by:it-rex
2 Comments
 
LVL 13

Accepted Solution

by:
riazpk earned 500 total points
ID: 33679966
What happens if you change:
AND "Date_Pay" BETWEEN
to:
AND cast("Date_Pay" as date) BETWEEN
?
0
 
LVL 11

Author Closing Comment

by:it-rex
ID: 33682636
great thanks
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
sql query 9 45
oracle 11g 23 80
ORA-00923: FROM keyword not found where expected 3 61
what privileges needed for S2 for this function (Oracle 12c)? 3 22
Note: You must have administrative privileges in order to create/edit Sharing Rules. Salesforce.com (http://www.salesforce.com) (SFDC) is a cloud-based customer relationship management (CRM) system. It is a database most commonly used by sales an…
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question