1. When installing Oracle, the installation path and Source Path must both be in English. 2. When Oracle JDBC is used in the example, the following conclusions are drawn after the solution is met:
1. When installing Oracle, the installation path and Source Path must both be in English. 2. When Oracle JDBC is used in the example, the following conclusions are drawn after the solution is met:
1. When installing Oracle, the installation path and Source Path must both be in English.
2. When Oracle JDBC is used in the example, the following conclusions are drawn after the solution is met:
Classes12.jar-for Java 1.2 and 1.3
Ojdbc14.jar-for Java 1.4 and 1.5
Ojdbc5.jar-for Java 1.5
Ojdbc6.jar-for Java 1.6
Oracle92 comes with jdk 1.3. Although my development environment is 1.6, classes12.jar-for Java 1.2 and 1.3 are still used in the configuration file.
The jdbc version is related to the java version. In addition, jdbc runs in the jdk version that comes with oracle.
3, When configuring the data source, you need to change the tomcat-config-context.xml
DriverClassName = "oracle. jdbc. OracleDriver" url = "jdbc: oracle: thin: @ 127.0.0.1: 1521: ora92"/>
In the url, ip127.0.0.1 refers to the IP address of the server where the database you want to connect to is located; ora92 refers to the global database name; 1521 refers to the port number.