[20201123]NLS_LANG环境变量问题.txt
--//链接http://www.itpub.net/thread-2139939-1-1.html的问题,导致使用asmcmd进入磁盘管理,发现无法进入正确的实例里面.
--//仔细检查才发现链接export NLS_LANG=AMERICAN.AMERICA_AL32UTF8定义错误。应该写成
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
$ export NLS_LANG=AMERICAN.AMERICA_AL32UTF8
$ rlsql
SQL*Plus: Release 11.2.0.4.0 Production on Mon Nov 23 15:50:13 2020
Copyright (c) 1982, 2013, Oracle. All rights reserved.
ERROR:
ORA-12705: Cannot access NLS data files or invalid environment specified
$ oerr ora 12705
12705, 00000, "Cannot access NLS data files or invalid environment specified"
// *Cause: Either an attempt was made to issue an ALTER SESSION command
// with an invalid NLS parameter or value; or the environment
// variable(s) NLS_LANG, ORA_NLSxx, or ORACLE_HOME was incorrectly
// specified, therefore the NLS data files cannot be located.
// *Action: Check the syntax of the ALTER SESSION command and the NLS
// parameter, correct the syntax and retry the statement, or
// specify the correct directory path/values in the environment
// variables.
$ export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
$ rlsql
SQL*Plus: Release 11.2.0.4.0 Production on Mon Nov 23 15:51:01 2020
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
--//工作中注意这些细节。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/267265/viewspace-2736112/ ,如需转载,请注明出处,否则将追究法律责任。