I would like to know which parameter in Oracle environment causes this :
Let's says I have two databases on two differents server. Same data in the databases.
Under sql developer I write this query :
select to_char(date_column, 'DD/MM/YYYY') from my_table;
When I check my_table in sql developer, the dates are displays with this format 'DD/MM/YY'
On one server the query returns : 01/05/1945 (it is good) But on the other one : 01/05/2045 (not good).
Question : what is the parameter in the configuration that is different ? what should be the value of this parameter in my ksh script to make it work on both bases ?
Note : the replacement of 20 instead of 19 only occurs for dates concerning the first 50 years of the century. Indeed, on both databases, 01/05/1955 is displayed.
Thanks
Résult of the dump function : try on this date 09/05/55
the good one :
09/05/1955 Typ=12 Len=7: 119,155,5,9,1,1,1
the bad one :
09/05/55 Typ=12 Len=7: 119,155,5,9,1,1,1
Is this called differently stored ? or the display is different. In the two cases the same bytes are stored but I am asking.
plus I would like to say that the way data is inserted in the database is by copy
Results of two queries asked :
on the good server:
NUM NAME TYPE VALUE
224 nls_date_language 2
225 nls_date_format 2 DD/MM/YYYY
PARAMETER VALUE
NLS_DATE_FORMAT DD/MM/YYYY
NLS_DATE_LANGUAGE AMERICAN
on the wrong one
NUM NAME TYPE VALUE
224 nls_date_language 2
225 nls_date_format 2
PARAMETER VALUE
NLS_DATE_FORMAT DD/MM/RR
NLS_DATE_LANGUAGE FRENCH