Hibernate Connect to Oracle Database

Source: Internet
Author: User

Foreword: All of the following operations are based on the successful installation of the Oracle database and the Java development environment in a normal situation.

If not, configure the underlying environment first.

First step: Configure the required environment (download and import the required packages).

My Baidu cloud disk to share all the required packages, you can directly click to download the full import on it.

Download Link: Http://pan.baidu.com/s/1sjC0vvB

Step Two: Write Hibernate configuration file

It is important to note that the Connection.url configuration xe is the SID of your Oracle database, so you need to replace it with your own.

If you don't know how to query this: Open Oracle's "Run SQL command line" and enter the following command to find out.

The string under name is your SID.

Finally: Run the program to link.

Hibernate Connect to Oracle Database

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.