Hi,
Toad 12.5.0.55 x64
In Toad:
alter session set NLS_TERRITORY=‘CROATIA’;
alter session set NLS_DATE_LANGUAGE=‘CROATIAN’;
alter session set NLS_LANGUAGE=‘CROATIAN’;
alter session set NLS_TIMESTAMP_FORMAT=‘YYYY.MM.DD_HH24.MI.SSXFF’;
alter session set NLS_TIMESTAMP_TZ_FORMAT=‘YYYY.MM.DD_HH24.MI.SSXFF’;
select systimestamp from dual;
col PARAMETER for a30
col value for a40
select parameter, value from nls_session_parameters order by 1 ;
F5(run as script):
Session altered.
Session altered.
Session altered.
Session altered.
Session altered.
SYSTIMESTAMP
03.APR.2014 11:13:16,250640 +02
1 row selected.
PARAMETER VALUE
NLS_CALENDAR GREGORIAN
NLS_COMP BINARY
NLS_CURRENCY kn
NLS_DATE_FORMAT DD.MM.RR
NLS_DATE_LANGUAGE CROATIAN
NLS_DUAL_CURRENCY kn
NLS_ISO_CURRENCY CROATIA
NLS_LANGUAGE CROATIAN
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NUMERIC_CHARACTERS ,.
NLS_SORT CROATIAN
NLS_TERRITORY CROATIA
NLS_TIME_FORMAT HH24:MI:SSXFF
**NLS_TIMESTAMP_FORMAT YYYY.MM.DD_HH24.MI.SSXFF **
**NLS_TIMESTAMP_TZ_FORMAT YYYY.MM.DD_HH24.MI.SSXFF **
NLS_TIME_TZ_FORMAT HH24:MI:SSXFF TZR
17 rows selected.
Format is wrong.
In SQL*Plus:
SQL> alter session set NLS_TERRITORY=‘CROATIA’;
Session altered.
SQL> alter session set NLS_DATE_LANGUAGE=‘CROATIAN’;
Session altered.
SQL> alter session set NLS_LANGUAGE=‘CROATIAN’;
Session altered.
SQL> alter session set NLS_TIMESTAMP_FORMAT=‘YYYY.MM.DD_HH24.MI.SSXFF’;
Session altered.
SQL> alter session set NLS_TIMESTAMP_TZ_FORMAT=‘YYYY.MM.DD_HH24.MI.SSXFF’;
Session altered.
SQL>
SQL>
SQL>
SQL> select systimestamp from dual;
SYSTIMESTAMP
2014.04.03_11.15.11,236001
SQL>
SQL> col PARAMETER for a30
SQL> col value for a40
SQL>
SQL> select parameter, value from nls_session_parameters order by 1 ;
PARAMETER VALUE
NLS_CALENDAR GREGORIAN
NLS_COMP BINARY
NLS_CURRENCY kn
NLS_DATE_FORMAT DD.MM.RR
NLS_DATE_LANGUAGE CROATIAN
NLS_DUAL_CURRENCY kn
NLS_ISO_CURRENCY CROATIA
NLS_LANGUAGE CROATIAN
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NUMERIC_CHARACTERS ,.
NLS_SORT CROATIAN
NLS_TERRITORY CROATIA
NLS_TIME_FORMAT HH24:MI:SSXFF
NLS_TIMESTAMP_FORMAT YYYY.MM.DD_HH24.MI.SSXFF
NLS_TIMESTAMP_TZ_FORMAT YYYY.MM.DD_HH24.MI.SSXFF
NLS_TIME_TZ_FORMAT HH24:MI:SSXFF TZR
17 rows selected.
SQL>
Format is OK.
Interesting is that whether script or as sql is run, bug persist.