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.

 View Only
  • 1.  Date Type for inserting into Oracle databse

    Posted Tue June 14, 2005 05:38 PM

    I have date in a string format in my Pipeline in. I need to insert the date into Oracle database which has to be in date data type. How can i convert a string into date data type so that I can insert the date data type in the database. Any help will be appreciated.


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


  • 2.  RE: Date Type for inserting into Oracle databse

    Posted Tue June 14, 2005 05:44 PM

    Michael,

    In the JDBC Adapter insert service when you select JDBC input field type java.lang.string,but still the AS will pull the Date as date data type.So i dont think this will cause any failure when you insert the Date into DB in the form of string type.

    Please let us know if still problem persists.

    HTH,
    RMG


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


  • 3.  RE: Date Type for inserting into Oracle databse

    Posted Tue June 14, 2005 06:21 PM

    HI RMG:

    Thanks for the reply. When I am trying to map the insert date field of the table with a string date type from the pipeline in, it is throwing the error.


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


  • 4.  RE: Date Type for inserting into Oracle databse

    Posted Tue June 14, 2005 07:02 PM

    Michael,

    You should change in the Adapter service and select JDBC Input Field Type as (java.lang.string)instead of java.dateTimeStamp,so this makes service input type as string variable instead of date object.This makes mapping works.

    Sorry if my comments are not so clear.

    HTH,
    RMG


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


  • 5.  RE: Date Type for inserting into Oracle databse

    Posted Tue June 14, 2005 08:22 PM

    Thanks RMG

    We changed the Oracle date field type from Date to Timestamp type. And It worked for our situation. Thank you for your help. WIll need help in future, please reply to my queries.

    Regards,


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


  • 6.  RE: Date Type for inserting into Oracle databse

    Posted Tue June 14, 2005 08:26 PM

    Glad to help anytime, if at all i have any clue.


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