ORACLE11g-ORA-12705: Cannot access NLS data files or invalid environment specified
2016-05-05 11:06
691 查看
ORA-12705: Cannot access NLS data files or invalid environment specified .
解决方法:正确设置如下两个环境变量
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export ORA_NLS10=/u01/app/oracle/product/11.2.0/dbhome_1/nls/data
这连个导出后立马就生效了。
可以执行sqlplus了。
下面是结果
[oracle@lizq data]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Thu May 5 04:03:39 2016
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance. 蓝色的字代表链接到一个空实例
SQL>
正常的情况下应该是
Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit .....
这个时候在执行以下:Startup启动以下实例就可以了。
SQL> startup
ORACLE instance started.
Total System Global Area 776646656 bytes
Fixed Size 2217384 bytes
Variable Size 478153304 bytes
Database Buffers 289406976 bytes
Redo Buffers 6868992 bytes
Database mounted.
Database opened.
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0
Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL>
解决方法:正确设置如下两个环境变量
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export ORA_NLS10=/u01/app/oracle/product/11.2.0/dbhome_1/nls/data
这连个导出后立马就生效了。
可以执行sqlplus了。
下面是结果
[oracle@lizq data]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Thu May 5 04:03:39 2016
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance. 蓝色的字代表链接到一个空实例
SQL>
正常的情况下应该是
Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit .....
这个时候在执行以下:Startup启动以下实例就可以了。
SQL> startup
ORACLE instance started.
Total System Global Area 776646656 bytes
Fixed Size 2217384 bytes
Variable Size 478153304 bytes
Database Buffers 289406976 bytes
Redo Buffers 6868992 bytes
Database mounted.
Database opened.
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0
Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL>
相关文章推荐
- 基于 Red Hat 的发行版 Oracle Linux 正式发布Oracle Linux 7.1
- Oracle Containers for J2EE远程安全漏洞(CVE-2014-0413)
- Oracle 10g R2不能使用EM的问题
- 表空间操作
- PreparedStatement中in子句的处理
- VMware下RedHat4.8_64位安装Oracle 10g RAC--简略脚本
- oracle sql日期比较
- 基于 Red Hat 的发行版 Oracle Linux 正式发布Oracle Linux 7.1
- OS block size和Oracle block size,查找OS Blocksize的方法
- oracle中创建数据库和表空间的几点总结
- 数据库自动备份脚本
- oracle的nvl函数的使用介绍
- 解决oracle用户连接失败的解决方法
- oracle的一些tips技巧
- Oracle 下的开发日积月累
- Oracle存储过程之数据库中获取数据实例
- Windows下ORACLE 10g完全卸载的方法分析
- Oracle 函数大全[字符串函数,数学函数,日期函数]第1/4页
- ORACLE LATERAL-SQL-INJECTION 个人见解