OSM Multi-Data Source Config Using N-RAC Nodes - Updated
OSM Multi-Data Source Config Using N-RAC Nodes - Updated
Management (OSM)
Configuring OSM with multiple database nodes in an Oracle
Real Application Cluster (RAC)
instance as their primary data source. The same logic is used for a 4 node Oracle RAC
configuration (divide WebLogic servers into 4 groups), and a 5 node (divide WebLogic servers
into 5 groups), and so on.
>>_group_<<ID>>. Example:
osm_pool_rac2_group_a and osm_pool_rac2_group_b.
o Enter a unique JNDI name for the data source. For
example, oracle/communications/osm/internal/jdbc/pool_2.
o Select Oracle as the database type.
o Click Next.
5. Select one of the following non-XA thin drivers:
o If your Oracle RAC database is configured with local listeners, select *Oracle's
Driver (Thin) for Instance connections; Versions: 9.0.1 and later.
o If your Oracle RAC database is configured with a remote listener (the default),
select *Oracle's Driver (Thin) for RAC Service-Instance connections;
Versions: 10 and later.
o Click Next.
6. On the Transaction Options page, do the following:
o Ensure the default option Supports Global Transactions is selected.
o Select the option Logging Last Resource.
o Click Next.
7. On the Connection Properties page, specify the service name, database name, host, and
port of the additional Oracle RAC instance based on one of the following scenarios:
o If your Oracle RAC database is configured with a remote listener and server-side
load balancing (the default), the host and port of the new data source must be the
same as the host and port of the existing data source. Additionally, if the existing
data source specifies a service name and the instance name of the Oracle RAC
instance, the new data source must also specify the service name and instance
name of the Oracle RAC instance. (The instance name is required in order to
override server-side load balancing. See "Listener Considerations for Oracle
RAC" for a full discussion of listener functionality.)
For example, if the existing data source URL is:
jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HO
ST=host5.us.oracle.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl)(INST
ANCE_NAME=orcl1)))
The new data source URL is:
jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HO
ST=host5.us.oracle.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl)(INST
ANCE_NAME=orcl2)))
o If your Oracle RAC database is configured with local listeners, the host and port
of the new data source must be different than the host and port of the existing data
source. If the existing data source specifies a service name, the new data source
must specify the same service name.
o Enter the OSM database schema user name and password, and then confirm the
password.
o Click Next.
8. On the Test Database Connection page, review the connection parameters and click Test
Configuration.
WebLogic attempts to create a connection from the administration server to the database. Results
are displayed at the top of the page. If the test is unsuccessful, you should correct any
configuration errors and retry the test.
If the JDBC driver you selected is not installed on the administration server, you should
click Next to skip this step.
Click Next.
9. On the Select Targets page, do the following:
o Target the data source to part of the cluster. For example,
target osm_pool_rac2_group_a to osm1 and osm_pool_rac2_group_b to osm2.
10. Click Finish.
Your configuration is saved and the data source is deployed to the cluster.
11. Configure the connection properties for the newly created data source.
12. Add the data source to the preconfigured multi data source.
Configuring Connection Pool Properties
In addition to the properties you defined in the previous section, you must configure the data
source's connection pool properties.
To configure the connection pool properties, do the following:
1. Select the data source and navigate to the Connection Pool tab.
2. In the Properties list, enter oracle.net.CONNECT_TIMEOUT=10000.
3. In the Initial Capacity field, enter 0.
4. Click Advanced options.
5. Select the Test Connections on Reserve check box.
6. In the Test Frequency field, enter 300.
7. In the Test Table Name field, enter SQL SELECT 1 FROM DUAL.
8. In the Seconds to Trust an Idle Pool Connection, enter 10.
9. In the Shrink Frequency field, enter 900.
10. Save your changes.
Adding the Data Source to the Multi Data Source
You can make all data source and multi data source changes in a single edit session. You do not
have to save your changes between steps.
To add the new data source to the multi data source:
1. In the Domain Structure tree, expand Services, then select Data Sources.
2. On the Summary of Data Sources page, click the multi data source name.
3. Click the Configuration Data Sources tab, and the following:
o Add the data sources to the multi data sources in the order specified for 2 RAC
nodes as example:
Multi data source oms_pool_group_a must contain the two data
sources osm_pool_rac1_group_a and osm_pool_rac2_group_a, in this
order.
Multi data source oms_pool_group_b must contain the two data
sources osm_pool_rac2_group_b and osm_pool_rac1_group_b, in this
order.
Note:
Oracle recommends that you shut down all managed servers before changing the order of the
data sources in the list because the first data source in the list is used to compose the name of
the Oracle Coherence cluster when OSM starts.
4. Save your changes.
jdbc.7z