My Oracle Support Banner

Sessiontimezone Query is Different Between SQL*Plus and SQL*Developer (Doc ID 1056122.1)

Last updated on AUGUST 04, 2018

Applies to:

SQL*Plus - Version 10.2.0.1 and later
Oracle Database - Enterprise Edition - Version 10.2.0.1 and later
Information in this document applies to any platform.
Currency check on June 2016.

Symptoms

In SQL*Plus, the timezone is always changed to GMT, although the machine is located in EST timezone. It could be verified with the following query:

$sqlplus user/pswd@dbalias
SQL>select sessiontimezone from dual;


Executing this query from SQL*Developer, installed in the same machine in EST timezone, sends the right date and time from the EST timezone.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.