Setting session timezone with spring jdbc oracle

Posted by user337620 on Stack Overflow See other posts from Stack Overflow or by user337620
Published on 2010-05-10T19:46:32Z Indexed on 2010/05/13 15:04 UTC
Read the original article Hit count: 480

Filed under:
|
|
|
|

Hello

I have a spring/jdbc/oracle 10g application. The Oracle server database timezone is set to GMT + 2 JVM timezone is GMT + 2 (even though it doesn't matter in my case).

I have a stored procedure that performs some date operations. The problem is that session timezone is different(GMT) than database timezone even though I do not set session timezone explicit in my code/configuration.

As far as I know the session timezone is by default equal to database timezone. Any idea why is the session timezone different than database timezone or how can I configure it in spring configuration (org.apache.commons.dbcp.BasicDataSource) ?

Thank you.

© Stack Overflow or respective owner

Related posts about java

Related posts about jdbc