Skip to Content
author's profile photo Former Member
Former Member

Oracle Sentence - JDBC Sender - TO_Date

Hi. Dear Experts

I have an Scenario. JDBC (Oracle)- Proxy.

On Sender CC I have an SQL Sentence like.

Select Field1,Field2,Field3 from Tabla1 Where Date_F <= TO_DATE(sysdate,'yyyy/mm/dd') and Flag = 1

With the above sentence PI doesn't select any records. but I tested the same query on oracle client. and return 3 records.

Is there any problem with TO_DATE sentence?

Regards.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Dec 11, 2012 at 07:02 PM

    To better understand the syntax for different date values , please check the following site

    http://www.dba-oracle.com/f_to_date.htm

    in your case this syntax might work...

    ex:

    to_date('2007/05/31','YYYY/MM/DD')

    Also go to jdbc channel and in the advanced mode set the following

    logSQLStatement = true

    and see the log for this statement during the test.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 06, 2012 at 08:06 PM

    Hi Fabrizio,

    Can you please check like this 'TO_DATE('20080118','YYYYMMDD').

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 14, 2012 at 05:54 AM

    Hi.

    The problem is solved..

    According sintax , is no necessary to convert sysdate with to_date is implicit.

    Former Member I set the logSQLStatement = true but I don't see any logs on Sender JDBC Channel , only works for me on JDBC Receiver, is it ok?

    Regards.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.