Oracle ошибка 12705

I got " ORA-12705: Cannot access NLS data files or invalid environment specified"  error in Oracle database.

May 3, 2021

I got ” ORA-12705: Cannot access NLS data files or invalid environment specified”  error in Oracle database.

ORA-12705: Cannot access NLS data files or invalid environment specified

Details of error are as follows.

ORA-12705: "invalid or unknown NLS parameter value specified"

Cause: There are two possible causes:

- An attempt was made to issue an ALTER SESSION statement with an invalid NLS parameter or value.

- The NLS_LANG environment variable contains an invalid language, territory, or character set.

Action: Check the syntax of the ALTER SESSION command and the NLS parameter, correct the 
syntax and retry the statement, or specify correct values in the NLS_LANG environment variable.


invalid or unknown NLS parameter value specified

This ORA-12705 errors are related with two possible causes:

– An attempt was made to issue an ALTER SESSION statement with an invalid NLS parameter or value.

– The NLS_LANG environment variable contains an invalid language, territory, or character set.

Action: Check the syntax of the ALTER SESSION command and the NLS parameter, correct the syntax and retry the statement, or specify correct values in the NLS_LANG environment variable.

Firstly Unset the NLS_LANG environment variable,

Windows – The NLS_LANG must be unset in the Windows registry. Look for the NLS_LANG subkey in the registry at HKEY_LOCAL_MACHINESOFTWAREORACLE and rename it.

Linux/UNIX – Here you simply issue the Linux command “unset NLS_LANG”

You can set it as follows.

[MSDB]/home/oracle $ export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P9
[MSDB]/home/oracle $ 
[MSDB]/home/oracle $ echo $NLS_LANG
AMERICAN_AMERICA.WE8ISO8859P9

And you can set the nls_date_language parameter as follows. ( you can set the value according to your language )

SQL> alter session set nls_date_language = 'AMERICAN';

Session altered.

SQL> show parameter NLS_DATE_LANGUAGE

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
nls_date_language string AMERICAN
SQL>

Do you want to learn Oracle Database for Beginners, then read the following articles.

Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

 1,225 views last month,  1 views today

  • Новые
  • Лучшие
  • Все

Исправляем ошибку ORA-00604: error occured at recursive SQL level 1ORA-12705 в Oracle SQL Developer

Осваиваем Oracle и PL/SQL

Ошибка при установке соединения с сервером из Oracle SQL Developer:

ORA-00604: error occured at recursive SQL level 1ORA-12705: Cannot access NLS data files or invalid enviroment specified

Для исправления делаем следующие действия:

Открываем <папку_со_средой>idebinide.conf
Дописываем туда две строчки:

AddVMOption -Duser.language=en
AddVMOption -Duser.region=us

И всё!


Oracle
ошибка подключения

Roman

03 May 2014, 01:21

22395
1
0
0

Оставить первый комментарий:

  • Популярное
Работа со строками в Oracle (PL/SQL)

Основные способы обработки строковых значений в Oracle. В этой публикации я приведу основные функции (читать далее…)

628  

Работа с XML в Oracle PL/SQL (Часть 1)

В этой публикации я приведу основные способы работы с XML в Oracle, которые сам использую. Здесь буд (читать далее…)

394  

Функция Oracle TO_DATE (PL/SQL)

Функция TO_DATE — преобразует строку в переменную времени DATE. Синтаксис: TO_DATE(исходная_строка, (читать далее…)

321  

Объединение выборок UNION, INTERSECT, MINUS в Oracle (PL/SQL)

В Oracle присутствует возможность объединять выборки. Для объединения используются операторы: UNION (читать далее…)

315  

XML в Oracle PL/SQL (Часть 2 — Выборки в виде XML)

В предыдущей публикации были рассмотрены некоторые приёмы манипуляции с XML в Oracle, теперь рассмот (читать далее…)

261  

Problem

Troubleshooting IBM InfoSphere Change Data Capture Agent connection issues should help address common problems before calling IBM® support and save you time. IBM provides the Service Request (SR) problem submission tool to electronically submit and manage service requests on the Web. In all cases, provide a clear description of the problem, including step by step details of the things you’ve already tried in an effort to resolve the problem

Symptom

Agent cannot connect to the database.ORA-12705: Cannot access NLS data files or invalid environment specified

Cause

  • 1) Are you running Transformation Server version 5.2.4, then check if the NLS_NCHAR parameter is set. There is an issue that over-writes NLS_LANG if it is not).
  • 2)Verify if the the links in the lib directory point to valid 32-bit libraries in the current ORACLE_HOME.
  • 3)Verify if the NLS_LANG is set correctly and the required files are present if the error occurs.

Resolving The Problem

  • 1) Set NLS_NCHAR parameter in the configuration file
  • 2) Recreate the links in the lib directory if they are invalid:

ldd bin/dmscraper
For AIX use dump –H bin/dmscraper
You should see a line which reports the name of the library the program is looking for, it will look like libclntsh.so.#.# -> this is the TS Library
Next check the library name in the Oracle directory:
ls –l $ORACLE_HOME/lib32/libclntsh*
There may be links there – choose the one that is not a link and ends .so.#.# — this is the Oracle Library.
ln –s $ORACLE_HOME/lib32/<Oracle Library> $D_MIRROR_HOME/lib
Note that the library extension may be .so or .sl

  • 3)Set the NLS_LANG to a valid value – select * from v$nls_valid_values;

[{«Product»:{«code»:»SSX3HK»,»label»:»InfoSphere Change Data Capture»},»Business Unit»:{«code»:»BU059″,»label»:»IBM Software w/o TPS»},»Component»:»Management Console (GUI)»,»Platform»:[{«code»:»PF002″,»label»:»AIX»},{«code»:»PF010″,»label»:»HP-UX»},{«code»:»PF016″,»label»:»Linux»},{«code»:»PF027″,»label»:»Solaris»},{«code»:»PF033″,»label»:»Windows»}],»Version»:»6.2;5.3;6.3″,»Edition»:»»,»Line of Business»:{«code»:»LOB10″,»label»:»Data and AI»}}]

Like this post? Please share to your friends:
  • Oracle stream write error
  • Oracle error 01017
  • Ora 28040 no matching authentication protocol как исправить oracle 19c
  • Ora 01565 error in identifying file
  • Options error unrecognized option or missing or extra parameter s in client ovpn