Oracle Database Table restoration and hibernate connection

Source: Internet
Author: User

1 hibernate connection ORACLE:

DriveProgramPut class12.jar under Lib.

2. hibernate connections
<Bean id = "mydata" class = "org. springframework. JDBC. datasource. drivermanagerdatasource">
<Property name = "driverclassname">
<Value> oracle. JDBC. Driver. oracledriver </value>
</Property>
<Property name = "url">
<Value> JDBC: oracle: thin: @ localhost: 1521: Oracle </value>
</Property>
<Property name = "username">
<Value> System </value>
</Property>
<Property name = "password">
<Value> System </value>
</Property>
</Bean>

3. Restore database tables
Generally, @ XXXXX. SQL is enough.

Create a schema first. Here I understand that the solution in Oracle is actually equivalent to "Database" in other databases, because if
There are no special requirements. In fact, you can create different solutions in the database corresponding to the current instance.
First

1. Create a tablespace

2. Create a user in Oracle because each solution in Oracle corresponds to the user. For example, and set the user's operation permissions on the tablespace (connect, resource required)

3. The solution has been successfully created and is not displayed in the solution tree because it is empty. In this case, you can create a new table and the table's tablespace is TMR. Then the solution is displayed below the solution tree.

In general, solution (schema) = user + User's objects

Create a user and create some objects (such as table, index...) for the user. The user and its objects constitute a schema)

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.