In the Change Center, click Lock Edit. Click New, then click Multi Data Sources. The Create a New JDBC Multi Data Enter leasing as the Name Enter jdbcleasing as the JNDI name. Select Failover as algorithm default. Click Next. Select BAM_Cluster as the ta

5-230 Oracle Fusion Middleware High Availability Guide SQL grant create session to leasing; SQL alter user leasing default tablespace leasing; SQL alter user leasing quota unlimited on LEASING; 3. Create the leasing table using the leasing.ddl script. a. Copy the leasing.ddl file located in the WL_HOMEserverdboracle directory to your database node. b. Connect to the database as the leasing user. c. Run the leasing.ddl script in SQLPlus. SQL copy_locationleasing.ddl;

5.15.19.2 Creating a Multi Data Source from the WebLogic Server Administration Console

Create a multi data source for the leasing table from the Oracle WebLogic Server Administration Console: You create a data source to each of the Oracle RAC database instances during the process of setting up the multi data source, both for these data sources and the global leasing multi data source. When you create a data source: ■ Ensure that this is a non-xa data source ■ Put multi data source names in the format MultiDS-rac0, MultiDS-rac1, and so on ■ Use Oracle’s Driver Thin Version 9.0.1, 9.2.0, 10, 11 ■ Do not use any type of distributed transaction emulationparticipation algorithm for the data source do not choose the Supports Global Transactions option, or the Logging Last Resource , Emulate Two-Phase Commit, or One-Phase Commit options of the Supports Global Transactions option, and specify a service name for your database. Data sources do not require support for global transactions. ■ Target these data sources to the BAM cluster ■ Make sure the datasources connection pool initial capacity is set to 0. To do this, select Services, JDBC, and then Datasources. In the Datasources screen, click the Datasource Name , then click the Connection Pool tab, and enter 0 in the Initial capacity field. Creating a Multi Data Source To create a multi data source, complete these steps: 1. From the Domain Structure window in the Oracle WebLogic Server Administration Console, expand the Services node, then click Data Sources. The Summary of JDBC Data Sources page appears.

2. In the Change Center, click Lock Edit.

3. Click New, then click Multi Data Sources. The Create a New JDBC Multi Data

Source page appears.

4. Enter leasing as the Name

5. Enter jdbcleasing as the JNDI name.

Configuring High Availability for Oracle Fusion Middleware SOA Suite 5-231

6. Select Failover as algorithm default.

7. Click Next.

8. Select BAM_Cluster as the target.

9. Click Next.

10. Select non-XA driver the default.

11. Click Next.

12. Click Create New Data Source.

13. Enter leasing-rac0 as name. Enter jdbcleasing-rac0 as JNDI name. Enter oracle as the database type. For the driver type, enter Oracle Driver Thin for RAC server-Instance connection Version 10,11.

14. Click Next.

15. Deselect Supports Global Transactions.

16. Click Next.

17. Enter the service name, database name this is actually the RAC Node instance name, for example: racdb1,racdb2, host port, and password for your leasing schema.

18. Click Next.

19. Click Test Configuration and verify the connection works.

20. Target the data source to the BAM cluster. 21. Select the data source and add it to the right screen.

22. Click Create a New Data Source second instance of your Oracle RAC database,