Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check the timezone of oracle pl/sql developer [closed]

Where do I check the timezone of oracle pl/sql developer.Can someone help please

like image 524
sith Avatar asked May 30 '16 14:05

sith


1 Answers

I just ran select systimestamp from dual; in SQL developer on my machine, it replied with 30-MAY-16 12.49.28.279000000 PM -05:00. The -05:00 shows the timezone offset (5 hours behind UTC, essentially 5 hours behind GMT with no daylight savings time adjustments made to GMT). This shows the database server time zone.

Then I ran select current_timestamp from dual; and I got: 30-MAY-16 12.54.17.762000000 PM AMERICA/CHICAGO which in fact is the same timezone (but in different format - it depends on the settings I have). I get the same result because my "server" is on my personal laptop, which is also the "client". In the general case, the timezone component from this query will be the "local" or "client" or "session" timezone, while the first query (with systimestamp) gives the "server" or "database" timezone.

like image 183
mathguy Avatar answered Oct 01 '22 02:10

mathguy