Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » oracle jdbc driver TIMESTAMP WITH LOCAL TIME ZONE(jdbc driver and database session time zone)
oracle jdbc driver TIMESTAMP WITH LOCAL TIME ZONE [message #638219] Wed, 10 November 2010 14:54 Go to next message
dxturner  is currently offline dxturner Friend
Messages: 1
Registered: November 2010
Junior Member
I have an oracle SQL query that works from sqlplus, but when I try to use it in a BIRT report an error is displayed on the results page that says:

ReportDesign (id = 1):
+ Cannot get the string value from column: 8
Cannot get the string value in the result set.
SQL error #1: The database session time zone is not set


With some google searching it appears that when you query data with type 'TIMESTAMP WITH LOCAL TIME ZONE' you need to have the session timezone set. When you log in with sqlplus, the query works because the timezone is automagically set. When BIRT makes the connection to the database through the jdbc driver, the session time zone is not set.

According to an Oracle FAQ ....

>> "Before accessing TIMESTAMP WITH LOCAL TIME ZONE data, call the
>> OracleConnection.setSessionTimeZone(String regionName) method to set
>> the session time zone. When this method is called, the JDBC driver
>> sets the session time zone of the connection and saves the session
>> time zone so that any TIMESTAMP WITH LOCAL TIME ZONE data accessed
>> through JDBC can be adjusted using the session time zone."

So, my question is ... how can I call this method to set the session time zone, or am I missing something more basic?

Any help appreciated. Thanks.
Re: oracle jdbc driver TIMESTAMP WITH LOCAL TIME ZONE [message #673249 is a reply to message #638219] Mon, 23 May 2011 02:30 Go to previous messageGo to next message
shravan.payasam is currently offline shravan.payasamFriend
Messages: 1
Registered: May 2011
Junior Member
Did you ever find out how to do this? I'm faced with the same problem.

Thanks
Shravan
Re: oracle jdbc driver TIMESTAMP WITH LOCAL TIME ZONE [message #673444 is a reply to message #673249] Mon, 23 May 2011 16:40 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Take a look at this bug with a a suggested work around:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=256424

Jason
Previous Topic:Is there a to floor the avg aggregation function on a chart?
Next Topic:Missing styles after exporting to report library
Goto Forum:
  


Current Time: Fri Apr 26 16:00:08 GMT 2024

Powered by FUDForum. Page generated in 0.02830 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top