Log on to SQLPlus as a user with sysdba privileges. For example:

Considerations for High Availability Oracle Database Access 4-5 sqlplus as sysdba 2. Grant select on sys.dba_pending_transactions to public. 3. Grant execute on sys.dbms_xa to public. 4. Grant force any transaction to user. ■ Server-side Load Balancing : If the server-side load balancing feature has been enabled for the Oracle RAC back end using remote_listeners, the JDBC URL used in the data sources of a multi data source configuration should include the INSTANCE_NAME. For example, you can specify the URL in the following format: jdbc:oracle:thin:DESCRIPTION=ADDRESS=PROTOCOL=TCPHOST=host-vip PORT=1521CONNECT_DATA=SERVICE_NAME=dbserviceINSTANCE_NAME=inst1 By default, the out-of-box installation assumes that remote_listener has been configured and creates the URL for data sources in a multi data source accordingly. Any multi data source created outside of the typical installation and configuration should follow the format described in this section. If remote_listeners cannot be specified on the Oracle RAC side, and server side load balancing has been disabled, specifying the INSTANCE_NAME in the URL is not necessary. To disable remote listeners, delete any listed remote listeners in spfile.ora file on each Oracle RAC node. For example: .remote_listener= In this case, the recommended URL that you use in the data sources of a multi data source configuration is: jdbc:oracle:thin:host-vip:portdbservice Or jdbc:oracle:thin:DESCRIPTION=ADDRESS=PROTOCOL=TCPHOST=host-vipPORT=1521 CONNECT_DATA=SERVICE_NAME=dbservice ■ Services : When configuring Oracle Fusion Middleware for the Oracle database and specifically for Oracle RAC, Oracle recommends using the Oracle Services feature. Create the service_name provided as part of the database service location specifically for the application.

4.1.2.3 Configuring Schemas for Transactional Recovery Privileges

You need the appropriate database privileges to allow the Oracle WebLogic Server transaction manager to query for transaction state information and issue the appropriate commands, such as commit and rollback, during recovery of in-flight transactions after a WebLogic Server container crash. To configure the schemas for transactional recovery privileges:

1. Log on to SQLPlus as a user with sysdba privileges. For example:

Note: Ensure that the distributed_lock_timeout parameter for the Oracle database is set to a value higher that the JTA timeout This should be higher than the highest value on the middle tier - between the default for WebLogic Server, a specific configuration for a data source, or one used by a component for a transaction. 4-6 Oracle Fusion Middleware High Availability Guide sqlplus as sysdba 2. Grant select on sys.dba_pending_transactions to the appropriate_user. 3. Grant force any transaction to the appropriate_user.

4.1.3 Configuring Multi Data Sources with Oracle RAC

Oracle Middleware 11g components support only multi data source configuration for Oracle RAC. You can configure multi data sources using the following: ■ Oracle Fusion Middleware Configuration Wizard during WebLogic Server domain creation ■ Oracle Universal Installer Java EE component configuration for Identity Management or Oracle Portal, Forms, Reports, and Discoverer. ■ Oracle WebLogic Server Administration Console ■ WLST Commands Multi data sources support load balancing for both XA and non-XA data sources. This applies to all Oracle database versions Oracle Fusion Middleware components support. Multi data sources encapsulate individual data sources that pool connections to specific instances of Oracle RAC. For multi data sources created manually, or modified after initial configuration, Oracle strongly recommends the following XA and Non-XA data source property values for optimal high availability behavior. If your environment so demands, changes to these should be done after careful consideration and testing: For the individual data sources, Oracle recommends the following for high availability environments. Any other parameters should be set according to application requirements. Note: These privileges should be granted to the owner of the soainfra schema, as determined by the RCU operations. Table 4–1 Recommended Multi Data Source Configuration Property Name Value test-frequency-seconds 5 algorithm-type Load-Balancing Table 4–2 XA Data Source Configuration Property Name Value Driver oracle.jdbc.xa.client.OracleXADataSource Property command property nameoracle.net.CONNECT_ TIMEOUTname value10000value property initial-capacity connection-creation-retry-frequency-seconds 10