A question about MyEclipse and Oracle in connection *********************************
The user interface displays the comments and then changes the strokes that are modified and finally approved. The first step is to start coding. As a result, a shot ran into a problem. Let's start by showing the problem:
When hibernate is generated in reverse. Suddenly jumping out of these two abnormal hints ORA-00604 and ORA12705, let me very tangled. In fact, however, before that, driver can ' t find the exception, and then we analyze the problem.
The problem lies in:
* MyEclipse Driver Loading exception
* MyEclipse and Oracle database connection exception occurred
Cause of the problem:
On the first question, the name of the driver is JDBC. Driver Class12.jar for JDK1.1 and JDK1.2. JDK1.4 driver Ojdbc14.jar. and JDK5 driver Ojdbc15.jar (remember Oh, JDK1.4 after the JDK 5 and JDK6 the term Oh. No JDK1.5)
On the second question. The MyEclipse environment code is conflicting with Oracle. Oracle Nls_lang values in the registration table are simplified Chinese_china. ZHS16GBK, (Simplified Chinese.) That means it's not traditional. The-duser.language property of the configuration file at startup in MyEclipse is en, which causes an exception.
The workaround:
First question easy: Replace the jar package with the matching one. I'm going to change a class12.jar.
The second problem is easy (really easy to fix): Find the Myeclipse.ini file under the MyEclipse folder. Change the attribute-duser.language=en to-duser.language=zh (that is, change to Chinese) is able to, this time assume that the computer space is really placed in a mess, has forgotten the installation where, there are ways
1, can also find the desktop icon bar, even if you can not find the desktop icon, start at least to find it, if not found, you still install it again, maybe the last time you forgot to install. Then right click on "Properties",
Then you can certainly find it here, and then look at the configuration information of the Myeclipse.ini and change the properties inside the -duser.language=en.
(Eclipse is the same)
There are always some roads, a group of people walk by, and some road through. Once in a while, make a note of this little bit, I have come, I remember.
Copyright notice: This article blog original article. Blogs, without consent, may not be reproduced.
Java these things develop (1)-------about ORA00604 and ORA12705