Oracle Installation and Use of Oracle-JDBC

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.