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

Last updated on JUNE 01, 2016

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

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 hundreds of Community platforms