<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: NLS parameter's priority? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/nls-parameter-s-priority/m-p/3456657#M848302</link>
    <description>Hi Eric,&lt;BR /&gt;&lt;BR /&gt;Those parameters are 2 different concepts. NLS_DATE_FORMAT is the date format that will be used by default. NLS_DATE_LANGUAGE is the language that will be used by default to display those dates. &lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;select to_char(sysdate - 7,'DD-MON-RR', 'nls_date_language=american') date1,&lt;BR /&gt;to_char(sysdate - 7,'DD-MON-RR', 'nls_date_language=portuguese') date2&lt;BR /&gt;from dual; &lt;BR /&gt;&lt;BR /&gt;Will return "DEC" for American language and "DEZ" for Portuguese language:&lt;BR /&gt;&lt;BR /&gt;DATE1       DATE2     &lt;BR /&gt;----------- -----------     &lt;BR /&gt;30-DEC-04   30-DEZ-04 &lt;BR /&gt;&lt;BR /&gt;For January the result will be the same: "JAN"...&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;BR /&gt;Eric Antunes</description>
    <pubDate>Thu, 06 Jan 2005 05:19:09 GMT</pubDate>
    <dc:creator>Eric Antunes</dc:creator>
    <dc:date>2005-01-06T05:19:09Z</dc:date>
    <item>
      <title>NLS parameter's priority?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nls-parameter-s-priority/m-p/3456653#M848298</link>
      <description>If we set NLS_DATE_LANGUAGE &amp;amp; NLS_DATE_FORMAT=DD-MON-RR, their date format are not the same. Which parameter will have high priority?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Eric</description>
      <pubDate>Thu, 06 Jan 2005 04:18:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nls-parameter-s-priority/m-p/3456653#M848298</guid>
      <dc:creator>ericfjchen</dc:creator>
      <dc:date>2005-01-06T04:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: NLS parameter's priority?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nls-parameter-s-priority/m-p/3456654#M848299</link>
      <description>Eric&lt;BR /&gt;&lt;BR /&gt;see Metalink &lt;BR /&gt;Note:74375.1 &lt;BR /&gt;Subject:  Default Date Formats &lt;BR /&gt;&lt;BR /&gt;see the example :&lt;BR /&gt;SVRMGR&amp;gt; select * from nls_session_parameters          2&amp;gt; where parameter in ('NLS_DATE_LANGUAGE', 'NLS_DATE_FORMAT');     PARAMETER                      VALUE     ------------------------------ ------------------------------     NLS_DATE_FORMAT                DD-MON-YY     NLS_DATE_LANGUAGE              AMERICAN      SVRMGR&amp;gt; select sysdate from dual;     SYSDATE     ---------     28-SEP-99      SVRMGR&amp;gt; alter session set nls_date_language=polish;      SVRMGR&amp;gt; select * from nls_session_parameters          2&amp;gt; where parameter in ('NLS_DATE_LANGUAGE', 'NLS_DATE_FORMAT');     PARAMETER                      VALUE     ------------------------------ ------------------------------     NLS_DATE_FORMAT                DD-MON-YY     NLS_DATE_LANGUAGE              POLISH      SVRMGR&amp;gt; select sysdate from dual;     SYSDATE     ---------     28-WRZ-99      SVRMGR&amp;gt; alter session set nls_language=hungarian;      SVRMGR&amp;gt; select * from nls_session_parameters          2&amp;gt; where parameter in ('NLS_DATE_LANGUAGE', 'NLS_DATE_FORMAT');     PARAMETER                      VALUE     ------------------------------ ------------------------------     NLS_DATE_FORMAT                DD-MON-YY     NLS_DATE_LANGUAGE              HUNGARIAN      SVRMGR&amp;gt; select sysdate from dual;     SYSDATE     ---------     28-SZE-99 &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Thu, 06 Jan 2005 04:40:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nls-parameter-s-priority/m-p/3456654#M848299</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2005-01-06T04:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: NLS parameter's priority?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nls-parameter-s-priority/m-p/3456655#M848300</link>
      <description>hi eric,&lt;BR /&gt;&lt;BR /&gt;have a look at metalink note: 241047.1 - The Priority of NLS Parameters Explained&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Thu, 06 Jan 2005 04:51:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nls-parameter-s-priority/m-p/3456655#M848300</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-01-06T04:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: NLS parameter's priority?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nls-parameter-s-priority/m-p/3456656#M848301</link>
      <description>hi again,&lt;BR /&gt;&lt;BR /&gt;section 6. explains it all&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;If the NLS_LANG is set (either like in point 3,4 or 5) then parameters like NLS_SORT, NLS_DATE_FORMAT,... can be set as a "standalone" setting and will     overrule the defaults derived from NLS_LANG &lt;LANGUAGE&gt;_&lt;TERRITORY&gt; part. &lt;BR /&gt;&lt;/TERRITORY&gt;&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;regards&lt;BR /&gt;yogeeraj&lt;/LANGUAGE&gt;&lt;/QUOTE&gt;</description>
      <pubDate>Thu, 06 Jan 2005 04:53:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nls-parameter-s-priority/m-p/3456656#M848301</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-01-06T04:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: NLS parameter's priority?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nls-parameter-s-priority/m-p/3456657#M848302</link>
      <description>Hi Eric,&lt;BR /&gt;&lt;BR /&gt;Those parameters are 2 different concepts. NLS_DATE_FORMAT is the date format that will be used by default. NLS_DATE_LANGUAGE is the language that will be used by default to display those dates. &lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;select to_char(sysdate - 7,'DD-MON-RR', 'nls_date_language=american') date1,&lt;BR /&gt;to_char(sysdate - 7,'DD-MON-RR', 'nls_date_language=portuguese') date2&lt;BR /&gt;from dual; &lt;BR /&gt;&lt;BR /&gt;Will return "DEC" for American language and "DEZ" for Portuguese language:&lt;BR /&gt;&lt;BR /&gt;DATE1       DATE2     &lt;BR /&gt;----------- -----------     &lt;BR /&gt;30-DEC-04   30-DEZ-04 &lt;BR /&gt;&lt;BR /&gt;For January the result will be the same: "JAN"...&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;BR /&gt;Eric Antunes</description>
      <pubDate>Thu, 06 Jan 2005 05:19:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nls-parameter-s-priority/m-p/3456657#M848302</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-01-06T05:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: NLS parameter's priority?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nls-parameter-s-priority/m-p/3456658#M848303</link>
      <description>One more thing: each of these parameters can be overwriten at different levels:&lt;BR /&gt;&lt;BR /&gt;NLS_DATE_FORMAT is used if a date format mask is not specified in application code. The effective NLS_DATE_FORMAT is determined by the following (in order of precedence): &lt;BR /&gt;&lt;BR /&gt;1 - Session NLS_DATE_FORMAT (via ALTER SESSION command) &lt;BR /&gt;2 - Client side NLS_DATE_FORMAT (from client environment variables/registry settings) &lt;BR /&gt;3 - Instance NLS_DATE_FORMAT (from init.ora file) &lt;BR /&gt;4 - Database NLS_DATE_FORMAT &lt;BR /&gt;&lt;BR /&gt;Eric Antunes</description>
      <pubDate>Thu, 06 Jan 2005 05:23:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nls-parameter-s-priority/m-p/3456658#M848303</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-01-06T05:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: NLS parameter's priority?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nls-parameter-s-priority/m-p/3456659#M848304</link>
      <description>Hi Eric,&lt;BR /&gt;&lt;BR /&gt;There are 3 levels at which you can set NLS parameters:  &lt;BR /&gt;Database, Instance and Session.&lt;BR /&gt;&lt;BR /&gt;If a parameter is defined at more than one level then the rules on which one takes precedence are quite straighforward: &lt;BR /&gt;1. NLS database settings are overwritten by NLS instance settings &lt;BR /&gt;2. NLS database &amp;amp; NLS instance settings are overwritten by NLS session settings &lt;BR /&gt;&lt;BR /&gt;If you have NLS_LANG set on the client then as a result of that you will also have a setting for NLS_DATE_FORMAT. Even if it's not set explicitly on the client, it will have a implicit value based on the default derived from the territory part of the NLS_LANG setting. That means that whatever setting you have in the init.ora gets "overwritten" (following rule '2' from above) by this setting from the client.  &lt;BR /&gt;    &lt;BR /&gt;You can set the parameter NLS_DATE_FORMAT in the init.ora, but as we've seen in "question 1" above, if NLS_LANG is set in the client OS environment that has no effect because the "instance" setting in the init.ora is overwritten  by the session setting coming from the environment variable. This is fully explained in the note 241047 as Yogeeraj mentioned. &lt;BR /&gt; &lt;BR /&gt;Therefore, if NLS_LANG is set and you want a different NLS_DATE_FORMAT than is the default, you must also set NLS_DATE_FORMAT in the client environmentto override the default that is taken from the NLS_LANG. &lt;BR /&gt;&lt;BR /&gt;Note: NLS_DATE_FORMAT set as a parameter in the OS environment will not take effect unless NLS_LANG is also set. &lt;BR /&gt;&lt;BR /&gt;Attached is document explaining the difference between the YY,RR,YYYY and RRRR format masks.Metalink Note: 30557.1 explains the  NLS_DATE_FORMAT and a Default Century.&lt;BR /&gt;&lt;BR /&gt;Indira A  &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Jan 2005 19:38:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nls-parameter-s-priority/m-p/3456659#M848304</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2005-01-06T19:38:09Z</dc:date>
    </item>
  </channel>
</rss>

