Adjust your session time zone to -08:00 : Timezone « SQL PLUS Session Environment « Oracle PL/SQL Tutorial






SQL>
SQL>
SQL> create table t(
  2      c1 timestamp with time zone,
  3      c2 timestamp with local time zone
  4  )
  5  /

Table created.

SQL>
SQL> insert into t (c1,c2)values( current_timestamp, current_timestamp );

1 row created.

SQL>
SQL> select * from t;



C1
------------------------------------------------------
C2
------------------------------------------------------
26-OCT-09 10.31.38.026000 AM -06:00
26-OCT-09 10.31.38.026000 AM

1 row selected.

SQL>
SQL> alter session set time_zone = '-08:00';

Session altered.

SQL>
SQL> select * from t;



C1
------------------------------------------------------
C2
------------------------------------------------------
26-OCT-09 10.31.38.026000 AM -06:00
26-OCT-09 08.31.38.026000 AM

1 row selected.

SQL>
SQL> drop table t;

Table dropped.








29.27.Timezone
29.27.1.Alter session to change the time zone
29.27.2.Determine the database time zone:
29.27.3.Determine your session time zone:
29.27.4.Adjust your session time zone to -08:00
29.27.5.If your session time zone is not US/Central Standard Time (-06:00), alter your session to Central Standard time: