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)