ITPub博客

首页 > 数据库 > Oracle > [20201123]NLS_LANG环境变量问题.txt

[20201123]NLS_LANG环境变量问题.txt

原创 Oracle 作者:lfree 时间:2020-11-23 15:52:54 0 删除 编辑

[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博客 ” ,链接:http://blog.itpub.net/267265/viewspace-2736112/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
熟悉oracle相关技术,擅长sql优化,rman备份与恢复,熟悉linux shell编程。

注册时间:2008-01-03

  • 博文量
    2814
  • 访问量
    6613686