[20201123]NLS_LANG環境變數問題.txt

lfree發表於2020-11-23

[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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章