Question | nls_session_parameters [message #524752] |
Mon, 26 September 2011 09:16  |
Sarlula
Messages: 18 Registered: September 2010
|
Junior Member |
|
|
Hello,
I just upgraded my version of my oracle from 9 to 11.2g.
When I tried to execute some queries in PL/SQL i keep getting an
annoying error : "ORA-01843 not a valid month."
I realized that if I execute the following query:
alter session set NLS_DATE_LANGUAGE=AMERICAN;
before every query that I want to execute, then it's executed fine.
I preformed the next queries:
1. select * from nls_database_parameters;
2. select * from nls_instance_parameters;
3. select * from nls_session_parameters;
and I saw that the fields in the "nls_session_parameters" view
are not derived from "nls_database_parameters" \ "nls_instance_parameters".
How can I derive the parameters from the instance\database view into the session view?
I want that the "nls_date_language" parameter will always be 'AMERICAN'.
Can it be done?
|
|
|
|
|
|