IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

Not able to retrieve time stamp using select service

  • 1.  Not able to retrieve time stamp using select service

    Posted 04/26/06 06:37 PM

    Hi,
    When I am trying to retrieve the time stamp from the DB by using Select adapter service, it is retrieving only the date but not the time stamp. But in the DB it is having the time stamp. I have installed the jdbc_fix_10, reload the service then also it is showing only date but not the time stamp.

    can anyone pls provide the input.

    Thanks,
    Hari.


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Not able to retrieve time stamp using select service

    Posted 04/26/06 07:07 PM

    Hari,

    What database vendor? What SQL statement are you attempting to use?

    Mark


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 3.  RE: Not able to retrieve time stamp using select service

    Posted 04/26/06 07:24 PM

    Hari,

    If your query selecting Date/Time field from DB,then AS should retrieve the Date/Timestamp value as it is.I can confirm for Oracle/SQL.

    What is you JDBC output field type is it java.lang.string?Also What happens if you tried the same query in TOAD or any SQL client

    HTH
    RMG


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Not able to retrieve time stamp using select service

    Posted 04/27/06 12:34 PM

    Hi,
    I am using oracle DB, and I tried with for output field with java.util.date, java.sql.date and also java.lang.string. But I am getting only the date. When I tried in toad it is giving value with timestamp

    Thanks,
    Hari


    #webMethods
    #Adapters-and-E-Standards
    #Integration-Server-and-ESB


  • 5.  RE: Not able to retrieve time stamp using select service

    Posted 04/27/06 04:30 PM

    Hi,

    I’m facing exactly the same problem and I found on adavantage following:

    JDBC Adapter not returning both Date and Time during SELECT. [Closed Service Request Summary]

    [B]Article ID:  [/b]SR-1-60287291  [URL="https://advantage.webmethods.com/advantage?targChanId=kb_home&oid=1612578225#"]What is this?[/URL]
    

    Quick Access URL: [url]http://advantage.webmethods.com/article/?id=SR-1-60287291[/url]
    Last Updated: 11-Oct-2005
    Customer Description

    We are using the JDBC Adapter to connect to an Oracle Database (9.2) where we are selecting a DATE field that includes both Date and Time information. The time information is always returned as 0.00.00 (eg. 10/3/2005 0:00:00 EDT). We tried implementing the setting described in SR-1-58258341 but this did not resolve the problem.
    webMethods Closure Summary

    1. Install Jbdc Adapter 6.0.3 FP1
    2. Fix4 resolves the issue. Fix7 supersedes Fix4. Apply either one.
    3. Change the OtherProperties: driverType=<thin/oci>;connectionProperties={oracle.jdbc.V8Compatible=true}
    4. Get the latest driver from oracle website (necessary).
      Restart IS.

    I hope it will solve this problem.

    jogo


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: Not able to retrieve time stamp using select service

    Posted 04/28/06 10:20 AM

    hi Jogo,
    thanks for ur help. i am unable to find the JDBC_fix_4 or JDBC_Fix_7 can u pls give path from where we can download them.

    Thanks,
    Hari


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 7.  RE: Not able to retrieve time stamp using select service

    Posted 04/29/06 10:33 AM

    Hari,

    An Authorized Technical Contacts (ATC) for your company with software download privileges can usually download fixes from Advantage.

    If your are one of those and can’t download the fixes, you should submit a Service Request asking for those fixes to be added to your download area. Support will also place fixes onto an FTP site or email them if they are small.

    HTH,

    Mark


    #webMethods
    #Adapters-and-E-Standards
    #Integration-Server-and-ESB


  • 8.  RE: Not able to retrieve time stamp using select service

    Posted 05/04/06 01:11 PM

    hari, I have already fix the problem, I wrote some info here: [url]wmusers.com


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 9.  RE: Not able to retrieve time stamp using select service

    Posted 11/15/06 04:49 AM

    oracle.jdbc.V8Compatible=true is a java runtime setting, so you should be able to set this in the server.sh for the jvm to load this. Has anybody tried this with a new ojdbc14.jar?

    equivalent would be:
    -Doracle.jdbc.V8Compatible=true

    This way you wouldn’t have to include it in every connection’s configuration that you require the behavior.


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards