Products | Versions |
---|---|
TIBCO BusinessEvents Enterprise Edition | - |
Not Applicable | - |
Resolution:
Description:
===========
In TIBCO BusinessEvents using dbconcepts, how to ensure the timezone is not converted to local timezone when inserting a record into an Oracle database.
Environment:
===========
TIBCO BusinessEvents 5.x
All Operating Systems
Oracle Database
Symptoms:
=========
The "TIMESTAMP" fields reflect time using the local timezone rathen than the UTC timezone which is specified .
Cause:
======
If the dbtimezone is different from the Java JVM timezone on the machine running the BusinessEvents engine, then the results would be coverted to dbtimezone.
Resolution:
========
1).Make sure the database timezone and Java JVM timezone are the same. The dbtimezone can be got from running the following query:
select DBTIMEZONE from dual;
2).To set the Java JVM timezone for TIBCO BusinessEvents runtime, add the following property to java.extended.properties in be-engine.tra file:
-Duser.timezone="xxx"
3).When running the TIBCO BusinessEvents engine from Studio, you can pass -Duser.timezone="xxx" as a VM argument.