& lturl & gtJDBC:Oracle:thin:@ localhost: 152 1:orcl & lt; /URL & gt;
After 1, @ may not be localhost, depending on which server your oracle is installed on. This is the IP address of the server where oracle is located. If installed on this machine, you can fill in localhost or 127.0.0 1. If it is installed on another machine, you can fill in the IP address of that machine, such as 65438+, another machine in the local area network.
2, 152 1 is the port number.
3.ORCL refers to the global database name of oracle you use, which is the database name you need to fill in when installing oracle.
In addition, when adding jar package when using oracle jdbc, it is obvious that oracle's jdbc jar package is consistent with oracle's own JDK version, and the corresponding relationship is as follows:
Class 12. jar- for Java 1.2 and 1.3.
Ojdbc 14.jar-for Java10.4 and10.5.
Ojdbc5.jar-for Java 1.5
Ojdbc6.jar-for Java 1.6
My development environment is jdk 1.6, MyEclipse6.0 and oracle92. At that time, ojdbc6.jar was used, but the oracledriver could not be found. . . Finally, I figured it out. I used the class 12.jar. If I encounter this problem, I can first look at my own oracle version, check the jdk version that comes with this version, and then find the corresponding jar package, which can be found in the lib folder of oracle's jdbc folder.
I hope the above points will help you.