on 08-10-2006 8:47 PM
How do I go about updating oracle DB table with timestamp from XI using JDBC receiver?
Hi,
write a Simple User Defined Function using Java (simpledatefomat)and insert the same into JDBC table
Regards,
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi SSG,
1) Generate a string in message mapping for the datetimestamp. You could also do this in the SQL statement by using the oracle SYSDATE function.
2) In the JDBC receiver channel SQL statement you have 2 choices:
- If the string is in the default datetimestamp format for your oracle DB, then you can insert it directly.
- Use the to_date function to convert the string to an Oracle date. I'd recommend this approach. Here's some documentation for this function:
http://www.techonthenet.com/oracle/functions/to_date.php
Thanks,
Jesse
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not sure whether you have any function available in JDBC adapter to place the Time stamp.
But if you have the field "TimeStamp" in your DB table, then use the CurrentDate function in the message mapping, change the properties for this function as per your requiremet.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.