alter session set nls_territory = cis;
select decode ( to_char( last_day( add_months( sysdate ) ), 'fmDAY'), 'MONDAY','1', 'TUESDAY','2', 'WEDNESDAY','3', 'THURSDAY','4', 'FRIDAY','5', 'SATURDAY','6', 'SUNDAY','7', 'na') from dual;
SQL> select to_char(to_date('01.12.2008','DD.MM.YYYY'),'WW IW D DAY') from dual; TO_CHAR(TO_DATE(' ----------------- 48 49 2 MONDAY SQL> alter session set nls_territory = cis; Session altered. SQL> select to_char(to_date('01.12.2008','DD.MM.YYYY'),'WW IW D DAY') from dual; TO_CHAR(TO_DATE(' ----------------- 48 49 1 MONDAY