myeclipse6.0连接oracle10g ora-00604 ora-12705错误
程序开发 2008-04-27 11:48:00 阅读1175 评论1 字号:大中小
1.环境
-----------------
eclipse3.3 myeclipse6 oracle10g jdk1.5
2。错误信息:
-----------
ORA-00604: error occurred at recursive SQL level 1
ORA-12705: Cannot access NLS data files or invalid environment specified
3。解决办法:
---------
打开D:\MyEclipse-6.0\eclipse\eclipse.ini文件;
把 -Duser.language=en 改为:-Duser.language=zh
在DB Browser中,oracle10g驱动用ojdbc14.jar--支持jdk1.4 jdk1.5
如果是jdk1.2/jdk1.3 ,使用class12.jar就可以了
4.oracle10g驱动使用的jdk环境:
---------------------
Oracle Database 10g Release 2 (10.2.0.2) JDBC Drivers
JDBC Thin for All Platforms
classes12.jar (1,594,191 bytes) - for use with JDK 1.2 and JDK 1.3
classes12_g.jar (2,038,127 bytes) - same as classes12.jar, except that classes were
compiled with "javac -g" and contain some tracing information.
classes12dms.jar (1,601,843 bytes) - same as classes12.jar, except that it contains
additional code`to support Oracle Dynamic Monitoring Service.
classes12dms_g.jar (2,046,467 bytes) - same as classes12dms.jar except that classes were
compiled with "javac -g" and contain some tracing information.
ojdbc14.jar (1,540,457 bytes) - classes for use with JDK 1.4 and 1.5
ojdbc14_g.jar (1,932,834 bytes) - same as ojdbc14.jar, except that classes were compiled
with "javac -g" and contain some tracing information.
ojdbc14dms.jar (1,548,006 bytes) - same as ojdbc14.jar, except that it contains
additional code`to support Oracle Dynamic Monitoring Service.
ojdbc14dms_g.jar (1,940,478 bytes) - same as ojdbc14dms.jar, except that classes were
compiled with "javac -g" and contain some tracing information.
orai18n.jar (1,645,109 bytes) - NLS classes for use with JDK 1.2, 1.3, 1.4, and 1.5.
This jar file replaces the old nls_charset jar/zip files.
ons.jar (48,492 bytes) - for use by the pure Java client-side Oracle Notification
Services (ONS) deamon.
demo.tar (604,160 bytes) or demo.zip (529,267 bytes) - contains sample JDBC programs.
5.参考文档:
-----------
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_10201.html
http://caijinrong.bokee.com/5996094.html
http://read.newbooks.com.cn/info/175003.html
以上方法对我的系统基本无效.
我用的是ubuntu 8.04 ,java版本1.6.0-06 oracle 10.2.0.1 数据库字符集 gbk , eclipse 3.3.2 myeclipse6.01GA
最终,将ubuntu切换到英文下,问题解决 . 但这不是最终解决方法. 还在寻找中.
for starting eclipse in English locale you can do :
-add option -nl en_US
-add with -Duser.language=en -Duser.country=US in -vmargs part
or
- add in eclipse.ini
-Duser.language=en
-Duser.country=US
in seperate line.
在eclipse.ini里加入这两行后,解决!(这样要通过运行eclipse才生效)
另一种解决办法是像上面说的,修改myeclipse.sh 加上 -Duser.language=en -Duser.country=US
分享到:
相关推荐
### Java连接池(JDBC连接池)详解:针对MSSQL、DB2、Oracle与MySQL的实现 #### 一、引言 在Java开发中,数据库连接管理是非常关键的一部分。为了提高应用程序的性能并减少资源浪费,通常会使用连接池技术来管理...
- ojdbc14-10g.jar:用于JDBC连接Oracle数据库的驱动包。 2. **安装软件及配置环境变量**: - 安装JDK后,需要配置环境变量。例如,如果JDK安装在`C:\Program Files\Java`,则环境变量应设置为: - `JAVA_HOME=C...
- `<a href="http://baidu.com.cn">Blog</a>` 8. **表单验证** - 表单提交前通常使用`onsubmit`事件进行验证 9. **CSS选择器** - `#abc`:ID选择器,选择ID为`abc`的元素 - `.abc`:类选择器,选择class为`abc...
如果已安装MyEclipse6.0,此文件可能已存在于\plugins目录下,此时无需重复操作。 **步骤3:验证JUnit安装** 在Eclipse中验证JUnit是否安装成功,有两种方法: - 在Eclipse的Window > Preferences > Java > JUnit...
- 如果已经安装了MyEclipse 6.0,则该文件可能已经存在于`plugins`目录下。 **1.2.3 验证安装** 可以采用两种方式来验证JUnit是否安装成功: - 第一种方法:打开Eclipse,在菜单栏选择`Window -> Preferences -> ...
- 数据库支持MySQL 5、SQL Server 2005或Oracle 11g及以上,可根据需求选择。 - IDE推荐使用MyEclipse,版本不限。 - 测试框架为JUnit 4。 7. **单元测试**: - 测试类与被测试类同包,类名为被测试类名加Test...