Skip Headers
Oracle® Communications Service Broker Installation Guide
Release 6.1

E29451-01
Go to Documentation Home
Home
Go to Table of Contents
Contents
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

5 Setting Up a Domain

This chapter describes how to set up an Oracle Communications Service Broker domain. Before you perform the procedures described in this chapter, you must install Service Broker.

About Domain Setup

Whether a domain is a signaling domain, a processing domain, or a unified domain, setting up a domain requires the following steps:

  1. Understanding the Domain Configuration Directory

  2. Installing the Administration Server and Managed Servers

  3. Securing Domains

  4. Creating a Domain in Interactive Mode

  5. Creating a Domain in Silent Mode

  6. Starting the Domain Web Server

  7. Configuring Security for the Administration Server

  8. Starting The Administration Console

  9. Adding a Managed Server to The Domain

  10. Configuring Data Storage

  11. Starting the Managed Server

Understanding the Domain Configuration Directory

Configuration data and software bundles are located in the domain configuration directory. The domain configuration directory is referred to as the domain_home.

The domain configuration directory is created when you run the domain creation script to create the domain. You define the method that servers use to access the directory when you create the domain.

The Administration Server and all managed servers in the domain require access to the domain configuration directory.

The Administration Server requires read and write access to the domain configurations. The managed servers require read-only access to the domain configuration.

The Administration Server and managed servers can access the domain configuration directory by using either a hosted or a nonhosted domain. You select either method when you run the domain creation script:

Whether you use a hosted or a nonhosted domain, be certain that all of your restore procedures are rapid to ensure minimal service down time. A recommended solution for high availability is to provide a backup Service Broker installation with a mirrored copy of the domains.

See "Understanding the Domain-Based Administration Model" for more information about domains.

See Oracle Communications Service Broker Security Guide for information on securing a domain.

Installing the Administration Server and Managed Servers

You can use the Service Broker installer to install the Administration Server and managed servers on a single computer or on multiple computers. Oracle recommends that you install the Administration Server on its own physical server from where it manages the domain remotely.

Note:

Only one Administration Console can be used to manage a domain at a time.

In a unified domain deployment, if you want to install multiple managed server instances on the same physical host, you can do either of the following:

Creating Multiple Managed Servers by Copying Them

This section describes how to create multiple servers on a single physical host by copying the managed server directory:

  1. Run the installer on the physical host. See "Installing the Software" for instructions.

    The default installed Administration Server directory is:

    Oracle_home/ocsb61/admin_server

    The default installed managed server directory is:

    Oracle_home/ocsb61/managed_server

  2. Create a new managed server directory for each additional managed server.

    To simplify your directory structure, you may choose to create the directories alongside the existing server directory in an existing Oracle home. For example:

    Oracle_home/ocsb61/new_server_directory

  3. Copy the contents of the installed server directory to each new server directory that you added.

To create additional servers on another host, repeat this procedure on a different host.

At a later stage, after creating the domain and starting the Administration Server, you must define each managed server in the domain configuration by specifying its name and listening ports.

Table 5-1 illustrates a sample domain with one Administration Server and four managed servers on two physical hosts. The table outlines the directory structure for the example domain.

Tip:

To increase availability, you can install the Administration Server on a separate physical host.

Table 5-1 Example Directory Structure

Physical Host Directory Path Description

sb_01

oracle_home/ocsb61/admin_server

Administration Server

sb_01

oracle_home/ocsb61/managed_server

Default managed server installation directory

Used as the source when creating the directories for the new servers on the sb_01 host.

sb_01

oracle_home/ocsb61/managed_1

First managed server instance directory

sb_01

oracle_home/ocsb61/managed_2

Second managed server instance directory

sb_02

oracle_home/ocsb61/managed_server

Default managed server installation directory

Use as the source when creating the directories for the new servers on the sb_02 host.

sb_02

oracle_home/ocsb61/managed_3

Third managed server instance directory

sb_02

oracle_home/ocsb61/managed_4

Fourth managed server instance directory


Securing Domains

By default, the setting that controls security in the domain is enabled. This setting applies to the connections between the Administration Server and the managed servers in a domain.

Before you run the domain creation script, you must either disable the setting or, if you want to retain security for the domain, set up the client and server certificate keystores on the host system.

For a non-production system intended for test, instructional, or evaluation purposes only, you may choose to disable security between the components, as follows:

  1. Open the following document for editing:

    Oracle_home/ocsb61/admin_server/properties/common.properties

  2. Set the axia.ssl property to false:

    axia.ssl=false

    For more information on the properties in the file, see Oracle Communications Service Broker System Administrator's Guide.

  3. Save and close the file.

For information on setting up a secure domain, see the discussion on configuring security between Service Broker components in Oracle Communications Service Broker Security Guide. For information on the property file entries, see the Oracle Communications System Administrator's Guide.

Creating a Domain in Interactive Mode

The domain creation script can operate interactively or in silent mode. The following instructions describe how to use the script interactively. See "Creating a Domain in Silent Mode" for information about running the script in silent mode.

Important: If you choose to create separate signaling and processing domains, that is a multi-domain topology, you must run the script separately for each domain.

When you run the script, be sure to make the same selections for both the signaling and processing domains. Select the same combination of 1) Available Domains (Policy Controller, Service Controller, Online Mediation Controller), and the same 2) Service Mode (Continuity, Availability).

Data Storage options for persistence: If you are deploying either the Social Voice Communicator or Virtual Private Network, note that you must use an Oracle Database and cannot operate using a Berkeley Database. See "Configuring Data Storage".

To create a domain using the domain creation script in interactive mode:

  1. In a command shell, navigate to the admin_server directory:

    Oracle_home/ocsb61/admin_server

  2. Run the create domain script, as follows:

    ./script.sh scripts/create_domain_interactive.xml

  3. Enter the number corresponding to the domain type you want to create.

    The options are:

    • [0] Unified

    • [1] Processing

    • [2] Signaling

  4. When prompted for the index of the available product domain types, enter the number corresponding to the product domain you want to create.

    The options are (example):

    • [0] Online Mediation Controller Domain

    • [1] Policy Controller Domain

    • [2] Service Controller Domain

    • [3] Social Voice Communicator Unified Domain

    • [4] Virtual Private Network Unified Domain

    Product domains are displayed only for products you previously installed. You can select one, or any combination, of the product domains.

  5. Enter a domain path which can be any valid path to where the domain configuration will be located. Example: /home/oracle/domains/ocsb-all-products

    This path is referred to as domain_home in this document.

  6. Do one of the following:

    • To create a hosted domain, enter the URL of the Web server that will provide access to the domain configuration: http://<address>:<port>

    • To create a nonhosted domain, do not enter any value and press Enter.

    If you select a hosted domain the managed servers will access the domain configuration by connecting to a Web server. If you select a nonhosted domain they will instead need to use a shared file system.

    Note that if security is enabled the URL should start with https:// and the port is defined in the org.eclipse.equinox.http.jetty.https.port property in the hosting.properties file.

    If security is disabled, the port is defined in the org.eclipse.equinox.http.jetty.http.port property in the hosting.properties file.

  7. Enter the IP multicast address for initial Coherence cluster configuration, which is the address on which managed servers and the Administration Server exchange certain types of internal communication within the domain. The address must be within the range 224.0.0.0 to 239.255.255.255.

    If you plan to set up additional domains that are part of the same cluster, keep a record of the value entered, and enter the same value when you create the other domains.

  8. Enter the port number for initial Coherence cluster configuration on which the servers and the Administration Server listen for multicast messages. The port number must be 1024 or greater.

    If you plan to set up additional domains that are part of the same cluster, keep a record of the value entered, and enter the same value when you create the other domains.

  9. Enter the time-to-live for multicast messages. The value must be 1 or greater.

  10. At the prompt Enable SSL for this domain? (Yes/No) enter Y or N. In a production environment you should always use SSL. This setting controls whether Service Broker requires a secure connection between deployed domain components.

  11. If you have installed the Policy Controller, enter the type of database persistence you want to use for the Subscriber Store. Select either [0] BDB or [1] Oracle Database.

    Note: The BDB option appears only if you installed that database.

  12. If you have installed the Online Mediation Controller, enter the type of database persistence you want to use for the Degraded Mode. Select either [0] BDB or [1] Oracle Database.

    Note: The BDB option appears only if you installed this database.

  13. At the prompt for Service Mode enter [1] Continuity, or [2] Availability. Continuity provides availability and persistent data but can reduce performance. See "About Setting the Service Availability Mode" for more information.

  14. If you have installed Virtual Private Network or Social Voice Communicator, at the prompt create a new password for the built-in RESTful Interface Admin Password user. The Admin user is the administrator for the RESTful Provisioning APIs.

The following is an example of the domain creation script command and its prompts, with user input in bold:

./script.sh scripts/create_domain_interactive.xml 
--------------------------------------------------------------------------------
Welcome, please follow the steps below to create a domain.
--------------------------------------------------------------------------------
Available Domain Types:
----------------------------------------------------------------------
[0] Unified
[1] Processing
[2] Signaling
Please enter the index of a domain type to create : 0
--------------------------------------------------------------------------------
Available Domains:
--------------------------------------------------------------------------------
[0] Online Mediation Controller Unified Domain [ ]
[1] Policy Controller Unified Domain [ ] 
[2] Service Controller Unified Domain [ ] 
[3] to continue
Please enter the index of a domain to create or '3' to continue : 0

[0] Online Mediation Controller Unified Domain [ ]
[1] Policy Controller Unified Domain [ ]
[2] Online Mediation Controller Unified Domain [ ]
[3] to continue
Please enter the index of a domain to create or '3' to continue : 1

[0] Online Mediation Controller Unified Domain [ ]
[1] Policy Controller Unified Domain [ ]
[2] Service Controller Unified Domain [ ]
[3] to continue
Please enter the index of a domain to create or '3' to continue : 2
--------------------------------------------------------------------------------
General Domain Properties:
--------------------------------------------------------------------------------
Please enter the Domain Path :  /home/oracle/domains/ocsb-all-products
Please enter the Hosted URL http://<address>:<port> (For non-hosted, press Enter to skip) :
Please enter the Multicast Address : 239.255.255.255
Please enter the Multicast Port : 1034
Please enter the Multicast Time-To-Live : 2
Enable SSL for this domain? (Yes/No) : y
--------------------------------------------------------------------------------
Type Selection : Subscriber Store persistence type
--------------------------------------------------------------------------------
[0] BDB Persistence
[1] Oracle Database Persistence
Please enter the index of the selection : 1
--------------------------------------------------------------------------------
Type Selection : Degraded Mode persistence type
--------------------------------------------------------------------------------
[0] BDB Persistence
[1] Oracle Database Persistence
Please enter the index of the selection : 1
--------------------------------------------------------------------------------
Type Selection : Online Charging Server type
--------------------------------------------------------------------------------
[0] BRM Online Charging Server
[1] Elastic Charging Engine Online Charging Server
Please enter the index of the selection : 0
--------------------------------------------------------------------------------
Additional Domain Properties:
--------------------------------------------------------------------------------
Please select the Service Mode
--------------------------------------------------------------------------------
[0] Continuity
[1] Availability
Please enter the index of the selection : 0
--------------------------------------------------------------------------------
Domain Summary:
Domain Types/Names : Online Mediation Controller Unified Domain, Policy Controller Unified Domain, Service Controller Unified Domain
Domain Path : /home/oracle/domains/ocsb-all-products
Hosted URL (null if not hosted) : null
Multicast Address : 239.255.255.255
Multicast Port : 1034
Multicast Time-To-Live : 2
Domain SSL Enabled : True
Subscriber Store persistence type : BDB Persistence
Degraded Mode persistence type : BDB Persistence
Online Charging Server type : BRM Online Charging Server
Service Mode : Continuity
--------------------------------------------------------------------------------
Proceed with the domain creation? (Yes/No) : y

The script creates the domain according to your selections. When the script finishes, the message Domain created successfully appears. You can now start the Administration Server and add managed servers to the domain.

Creating a Domain in Silent Mode

You can create a domain in silent mode two different ways:

Specifying Parameters in an XML File

To create a domain in silent mode, before you run the domain creation script, you must replace all placeholders in the create_domain_silent.xml file with valid domain creation values. The XML file is located here: admin_server/scripts/create_domain_silent.xml.

When you run the silent install script, the XML file passes domain parameters to the script. If you do not replace any of the placeholders in the XML file with values, when you run the script you will be prompted for the value at the console.To learn about the parameters, see the descriptions in the section "Domain Creation Parameters in the create_domain_silent.xml File".

Note:

The scripting engine validates format and platform compatibility where applicable. However, it will not perform any spell checking so be sure to enter values into the XML file carefully.

If you omit any required value in the properties file, the installer will prompt you to enter the value at the command prompt.To create a domain in silent mode using an XML file:

  1. In a command shell, navigate to the admin_server directory:

    Oracle_home/ocsb61/admin_server

  2. Open the create_domain_silent.xml file for editing and enter the values you want to use to create the domain. Table 5-2 lists the parameters with descriptions.

  3. Save and close the file.

  4. Run the create domain script, as follows:

    ./script.sh scripts/create_domain_silent.xml

    When the script finishes, Domain created successfully appears. You can now start the Administration Server and add managed servers to the domain.

Domain Creation Parameters in the create_domain_silent.xml File

Table 5-2 lists the installation parameters in silentInstall.properties file that the silent installer applies.

Table 5-2 Parameters in the create_domain_silent.xml File

Parameter Description

domainTypes

Comma-separated list of domain types to include in the domain.

Example: policycontroller-processing,onlinemediationcontroller-processing

domainPath

Absolute file path to the new domain. Example: /home/user/ocsb_home/ocsb61/pc_omc_processing_domain

multicastAddress

Multicast address for initial Coherence cluster configuration. Example: 224.0.1.123

multicastPort

Multicast port for initial Coherence cluster configuration. Example: 9876

multicastTtl

Multicast TTL for initial Coherence cluster configuration. Example: 2

properties

Comma-separated list of properties to allow the specification of default choices and template specific properties. If a property value is not supplied, the default value will be used.

If domain.ssl or domain.hosted.url are not included, then the default values will apply (SSL will be enabled and the domain not hosted).

Example:

domain.hosted.url=http://localhost:9000/,domain.ssl=false,service.mode=availability,degraded.mode.persistence=database.persistence,database.url=jdbc:oracle:thin:@//localhost:1521/oracle


Tip:

There are two additional properties that can assist you in preparing a silent configuration:
  • "domain.help": If set to true, this property will cause all available options to be printed to the console. It is important that you select the domain types when using this property. The domain will not be created if this property is set to true.

  • "domain.summary": If set to true, this property displays a summary of the domain parameters and values before creating the domain. This feature is similar to how the interactive mode summary precedes domain creation.

The next section describes how to create a domain in silent mode by entering arguments at the command-line.

Entering Arguments at the Command Line

To create a domain in silent mode, you must create an AXIA environment variable, assign it parameter-value pairs described in Table 5-2, and then run the silent installation script.

The following is an example of creating a domain for the Online Mediation Controller, BRM, Berkeley DB, with SSL enabled.

To create a domain in silent mode by entering arguments at a command-line:

  1. In a command shell, use the export command to create an AXIA environment variable and set the parameter-value pairs as described in Table 5-2.

    Example:

    export AXIA_OPTS="-Ddomain.types=onlinemediationcontroller-processing -Ddomain.path=/home/user/domains/omc-processing -Ddomain.maddress=225.226.228.229 -Ddomain.mport=1122 -Ddomain.ttl=1 -Ddomain.properties=omc.ocs=BRM,subscriber.store.persistence=bdb.persistence,degraded.mode.persistence=bdb.persistence,service.mode=availability,domain.ssl=true"

  2. Run the silent domain script, which picks up the parameter values from the AXIA_OPTS environment variable:

    ./script.sh scripts/create_domain_silent.xml

    When the script finishes, Domain created successfully appears. You can now start the Administration Server and add managed servers to the domain.

Starting the Domain Web Server

If you created a hosted domain, you need to start the domain Web server. If you created a non-hosted domain skip this section.

The domain Web server provides servers with secure HTTPS access to the domain configuration and to the OSGi bundles for the domain. The domain Web server's only functionality is to allow access to the domain configuration.

You specified the domain Web server port when you ran the domain creation script and indicated you wanted to use a hosted domain. The port number is located in the hosting.properties file org.eclipse.equinox.http.jetty.https.port property.

The domain Web server must be started by a user who has read privileges to the domain configuration directory. See the discussion about configuring security between Service Broker components for more information about setting up user privileges.

To start the domain Web server:

  1. Open a command-line shell.

    Note:

    You must be logged in as a user who has read privileges on the file system where the domain configuration resides.
  2. Change the directory to:

    Oracle_home/ocsb61/admin_server

    Oracle_home is the Oracle Home directory you defined when you installed the product.

  3. Enter:

    ./host.sh domain_home

    Replace domain_home with the path to the domain configuration directory.

  4. Enter the keystore password.

When the domain Web server is running, the managed servers can access the domain configuration.

Configuring Security for the Administration Server

Starting the Administration Server enables you to start the Administration Console. You can configure the a Service Broker domain from any computer with a browser and network access to the Administration Server.

Note:

The instructions below describe setting up default security for the Administration Server to Administration Console connection. The Administration Console supports a single user. By default the security for this user includes 1) Digest Authentication and an 2) SSL connection between the Administration Console and the Administration Server.Administration Console password is set by a startup prompt. The first time the Administration Server is started, the user needs to supply a user name and password. These login credentials must be supplied in each Administration Console session.An alternative security method is described in the Chapter Administering Credential Stores in the Oracle Communications Service Broker Security Guide.

For more information about Administration Server client authentication, see the Administrator's Reference appendix in the Oracle Communications Service Broker System Administrator's Guide.

The Administration Console can connect to the Administration Server over (default) Secure HTTP (HTTPS) or HTTP. The following file contains the properties that control Web access, including security for the connection and the Administration Server port:

Oracle_home/ocsb61/admin_server/properties/admin.properties

The default authentication method for the Administration Console is called Digest Authentication (axia.digest.auth=true). This setting enables digest authentication which is described in this IEEE RFC, http://www.ietf.org/rfc/rfc2617.txt. See the Oracle Communications Service Broker Security Guide for more information.

By default, the Administration Server is connected on the HTTPS port, as specified by the following setting:

org.eclipse.equinox.http.jetty.https.enabled=true

To use this port, you need to configure the SSL keystore for the Administration Server.

Set this value to false to disable the HTTPS. You will also need to enable the HTTP port, as in the following sample portion of the file:

axia.basic.auth=false
 
org.eclipse.equinox.http.jetty.http.enabled=true
org.eclipse.equinox.http.jetty.http.port=9000
 
org.eclipse.equinox.http.jetty.https.enabled=false
org.eclipse.equinox.http.jetty.https.port=9000

If you are using separate Processing and Signaling domains, you will need to use a separate Administration Server for each domain. Each Administration Server must be assigned a unique port number.

  1. Open this file for editing: Oracle_home/ocsb61/admin_server/properties/admin.properties

  2. Change the port number assigned to the following property:

    org.eclipse.equinox.http.jetty.http.port=9000

  3. Save the file.

For more information on admin.properties and security, see Oracle Communications Service Broker System Administrator's Guide.

Starting The Administration Console

To start the Administration Console:

  1. Open a command-line shell.

  2. Change directory to Oracle_home/ocsb61/admin_server.

  3. Enter the following command to start the Administration Server:

    ./start.sh domain_home

    where domain_home is the path to the domain configuration directory.

  4. The first time you start the Administration Server if Digest Authentication (the default setting) is enabled in the admin.properties file (axia.digest.auth=true) you are prompted to enter a user name and password for subsequent uses of the Administration Console.

    The Administration Server enforces password complexity requirements specified in common.properties. By default, the password must be at least six characters in length and must contain at least one upper-case letter, lower-case letter, and digit. You can modify the requirements by editing the values of the axia.console.password.validation settings in the file.

  5. If you starting the Administration Server for a Policy Controller domain with Digest Authentication enabled, enter a second user name and password combination when prompted. The second set of credentials are used to control access to the Policy Designer GUI.

When the script finishes it displays this message: "Administration Server started".

After starting the Administration Server, you can access the Administration Console in a browser by entering the following URL:

https://ipadress:9000/console

See Oracle Communications Service Broker System Administrator's Guide for more information. See the Oracle Communications Service Broker Policy Controller Implementation Guide for more information about the Policy Designer GUI.

Adding a Managed Server to The Domain

All Managed servers and the Administration Server in a single domain are nodes in a cluster. This is true whether the domain, for example a processing or a signaling domain, exists on a single or on multiple hosts. See "About Clusters" for more information.After creating the domain, you need to add to the domain all of the managed servers you installed. You add servers to a domain by using the Administration Console. After you add a managed server to the domain, you will be able to start the managed server, passing it the domain configuration. See "Starting the Managed Server" for more information.

The following steps provide an overview of adding a managed server to the domain. For more information, see Oracle Communications Service Broker System Administrator's Guide.

To add a managed server to the domain:

  1. Start the Administration Console.

  2. Click the Switch to OFFLINE mode icon at the top of the page.

    Offline mode enables you to make changes to the configuration before adding servers to the domain or when the servers are not running. In online mode, changes are pushed to the managed servers when you commit the changes.

  3. In the navigation tree, expand the OCSB node.

  4. Expand the Domain Management node.

  5. Click Servers.

  6. Click the Add Server icon.

  7. Set the following fields in the Add Server dialog as described in Table 5-3.

    Table 5-3 Server Configuration Fields

    Field Description

    Name

    The name of the managed server. This name will be passed in the start command for the server. It must be unique across all domains.

    In a multi-domain deployment (that is, when using separate processing and signaling domains), server names should follow this format:

    • pn_number for processing managed servers, where number is an integer. For example, pn_1, pn_2, and so on.

    • ssu_number for signaling managed servers, where number is an integer. For example, ssu_1, ssu_2, and so on.

    It is possible to use custom server names, but then you must configure a mapping between the custom names to the expected names. See the discussion about mapping custom server names in Oracle Communications Service Broker System Administrator's Guide for more information.

    Format: Alpha-numeric characters. Case-sensitive. No white spaces.

    Host

    The host name or IP-address of the physical computer where the managed server runs.

    Format: alpha-numeric. IP-address format or DNS name format.

    Admin Port

    The IP port used by a managed server to communicate with the Administration Server. The value is assigned automatically and incremented for each managed server.

    Format: numeric

    All ports for servers need to be unique for each physical machine.

    JMX JRMP port

    The port to use for Java Remote Method Protocol (JRMP) invocations to the managed server.

    Format: numeric

    All ports for servers need to be unique for each physical machine.

    JMX Registry port

    The port to use for the MBean Server on the server.

    Format: numeric

    All ports for servers need to be unique for each physical machine.


  8. Click OK.

    The new server definition appears in the server list.

Repeat this procedure for each server you installed.

Table 5-4 outlines the corresponding server configurations for the example managed servers whose installation is demonstrated in Table 5-1.

Table 5-4 Example Server Configuration Settings

Server Name Host Admin port JMX Port JMX Registry

pn_1

sb_01.telco.com

8901

10003

10104

pn_2

sb_01.telco.com

8902

10005

10106

pn_3

sb_02.telco.com

8903

10007

10108

pn_4

sb_02.telco.com

8904

10009

10110


You can now start the server, passing it the identity you configured in the domain, as described in "Starting the Managed Server".

If you want to make configuration changes while the server is running, you can switch the Administration Server to online editing mode by clicking the Switch to ONLINE mode icon. If you intend to continue configuring the domain before starting the server (for example, to configure data store connectivity), you can keep the Administration Server in offline editing mode.

Configuring Data Storage

Certain Service Broker features generate data that must be stored in persistent storage. These features include the Online Mediation Controller Subscriber Store and Degraded Mode service, the Policy Controller Subscriber Store, and the Service Controller Social Voice Communicator and Virtual Private Network applications.

Service Broker works with the following types of storage:

Note:

The Social Voice Communicator and Virtual Private Network applications support only Oracle Database storage for persistence. See "Choosing a Database" for more information.

Configuring data storage requires these steps:

  1. Configure the database connection or local file storage location for each server.

    See "Using Oracle Berkeley DB File-Based Storage" or "Using Oracle Database 11g Storage" for more information.

  2. Specify the persistence mechanism each feature should use by installing the appropriate persistence package.

    See "Specifying the Persistence Mechanism by Feature" for more information.

The following sections contain more information on these steps.

Using Oracle Berkeley DB File-Based Storage

Oracle Berkeley DB is a file-based storage mechanism. When configured to use Berkeley DB, each processing server has its own data directory in which it stores and accesses application data. Stored data is automatically synchronized across the servers in the cluster.

Note:

Multiple processing servers should not be configured to share a single data directory, even if the servers reside on the same physical host computer.

Additional deployment design considerations exist for using Berkeley DB in a cluster of managed servers. When the servers in a domain cluster start, they nominate a single server to act as the master node. The data on the master node serves as the primary copy of the data, from which the other servers in the domain cluster are synchronized. The nomination and synchronization processes among the nodes occur automatically.

However, if a server that is acting as the master node subsequently becomes unavailable, the remaining nodes must nominate a new node to serve as the master. To nominate a new master node, a majority of the servers in the domain cluster must be available. If less than a majority remain, a new master cannot be nominated and data storage and synchronization will fail. Note that this scenario will always occur in a cluster of only two servers.

You can avoid this issue by increasing the number of servers in your domain cluster. This reduces the likelihood that most servers in a cluster would be unavailable at a given time. For example, the cluster should use 3 servers instead of 2, 5 servers instead of 4, and so on.

To use Berkeley DB file-based storage, follow these steps:

  1. Create or identify the directory on the server host in which you want Berkeley DB to store data. Oracle recommends that you use a local disk for better performance.

  2. In the Administration Console, click the Switch to OFFLINE mode icon at the top of the page to switch the configuration mode to offline mode, if necessary.

  3. Click the Lock & Edit icon.

  4. In the navigation tree, expand the OCSB node and then Domain Management.

  5. Expand the Data Store node.

  6. Click the Persistent Stores node.

  7. Click the Berkeley DB Store tab.

  8. Click the New button.

  9. Set the following fields in the dialog box as described in Table 5-5.

    Table 5-5 Berkeley DB Store Configuration Fields

    Name Description

    Managed Server Name

    The name of the managed server as specified in the domain configuration, such as pn_1 or pn_2.

    BDB Enabled

    Set to true to direct the server to use Berkeley DB file-based storage for data persistence, or false to disable file-based storage.

    BDB Environment Directory

    The location of the data directory where the server should store persistent data.

    Use the full path to the directory, such as:

    /home/oracle/OHOME1/bdbfiles

    Address (Host:Port)

    The local IP address or host name and port of the server on which Berkeley DB service exchanges data synchronization messages with other servers in the domain cluster.

    By default, the port is 5001. For example:

    192.168.1.10:5001


  10. Click OK to close the dialog box.

  11. Repeat steps 8 through 10 for each managed server in your domain.

  12. Click the Commit icon.

Using Oracle Database 11g Storage

To use Oracle Database 11g for Service Broker persistent storage, you first prepare the database, and then configure Service Broker connections to as described in the following sections.

Preparing the Database

To prepare the database for Online Mediation Controller or Policy Controller persistent storage:

  1. In the database management system, create a user that Service Broker uses to access the database. Give the user permissions to create tables and add and modify data.

    You will enter this user name and password when configuring the JDBC connection information (see "Configuring the Database Connection").

  2. Run the SQL script needed for the Service Broker applications you are using.

    The SQL scripts create the database tables as required by the application. The scripts applicable to the Online Mediation Controller and Policy Controller are in the following directory:

    Oracle_home/ocsb61/admin_server/scripts/database

    The scripts are:

    • degraded_mode_cdr_store.sql: Configures the database for storing CDRs that are generated by Service Broker when it is operating in degraded mode. Use this script to configure the database for the Online Mediation Controller.

    • subscriber_store.sql: Configures the database for the subscriber profile storage. Use this script to configure the database for the Online Mediation Controller or Policy Controller.

For information on preparing the databases for the Service Broker Virtual Private Network and Social Voice Communicator applications, see Oracle Communications Service Broker VPN Implementation Guide and Oracle Communications Service Broker Social Voice Communicator Implementation Guide.

After preparing the database, you can configure the database connection in the Service Broker domain.

Configuring the Database Connection

Service Broker connects to external databases using the settings defined in the JDBC driver connections in the domain configuration.

The credentials used to connect to the database are stored in the Service Broker credential store. The credential store is a secure credential storage mechanism used by Service Broker applications. For complete information on the credential store, see Oracle Communications Service Broker Security Guide.

Creating the Database Connection

To create the database connection by using the Administration Console:

  1. If the Administration Console is not already in offline mode, click the Switch to OFFLINE mode icon at the top of the page.

  2. Click the Lock & Edit icon.

  3. Expand the OCSB node and then Domain Management.

  4. Expand the Data Store node.

  5. Click the Credential Store node.

  6. In the Credential Store tab, use the fields in the Password group to add the database user credentials to the Credential Store, as follows:

    1. Enter a name for the credential in the Key field. This value serves as an internal alias for the database user credential in the credential store.

    2. In the Password field, enter the password associated with the database user you created for Service Broker.

    3. Deselect the One-way check box so that the credential is created as a two-way credential. This allows Service Broker to retrieve the password from the credential store for submission to the external database management system.

    4. Click the Set Password button.

  7. Click the Persistent Stores node.

  8. Click the JDBC Store tab.

  9. Click the New button.

  10. Set the following fields in the dialog box:

    Table 5-6 Database Connection Configuration Fields

    Field Description

    URL

    Connection URL to the database. For example:

    jdbc:oracle:thin:@//dbhost.example.com:1521/orcl

    User

    The user name of the database user you created that Service Broker uses to access the Oracle Database.

    Password Credential Key

    The identifier for the database credential in the credential store. This value should match the value you entered in the Key field in the Password area of the Credential Store tab when adding the database credential to the credential store.

    Connection Factory

    The Java class used to create connections to the database. In most cases, this should be the default, oracle.jdbc.pool.OracleDataSource. If you have installed a custom or third party connection class, specify its name.

    Initial Pool Size

    The initial number of connections in the database connection pool.

    Min Pool Size

    Minimum number of connections in the connection pool.

    Max Pool Size

    Maximum number of connections in the connection pool.

    Validation SQL

    A SQL command used to verify that an open connection to the database remains valid over time. A connection can become invalid, or stale, when it is open for long time without activity.

    Typically, the command simply reads from an empty table. For example:

    "select * from dual"

    Connection Pool Name

    The name of the JDBC connection.

    By default, the Subscriber Profile feature attempts to access storage associated with a driver named oracle_driver.

    If you do not use oracle_driver for this value, you need to configure the Subscriber Profile feature to use the connection identified by your custom driver name.

    For better control of database access, Oracle recommends that you use different driver names for the Subscriber Profile and Degraded Mode features.


  11. Click OK to save the configuration.

    The new connection instance appears in the list of drivers.

  12. Repeat steps 9 through 11 for each processing server in your domain.

  13. Click the Commit icon.

You may choose to continue working in offline edit mode, or switch to online mode if you intend to start the managed server. If the managed servers are running when you perform the configuration, you need to restart the servers to have the changes take effect.

Specifying the Persistence Mechanism by Feature

The particular storage mechanism used by a feature is determined by the persistence package that is installed in the domain. By default, the Degraded Mode and Subscriber Store features use Berkeley DB storage. (The Virtual Private Network and Social Voice Communicator applications can use only Oracle Database.)

To modify the storage mechanism for each feature, you need to replace its persistence package in the domain.

Note:

Only a single persistence package for a given feature should be installed in the domain at a time. If you install a new persistence package, be sure to remove the existing package for that feature before you attempt to restart the servers in the domain.

The following instructions describe how to install and remove packages from the domain. If servers are running, they will need to be restarted for the changes to take effect. For details on package management, see the Oracle Communications Service Broker System Administrator's Guide.

Also, these instructions reflect the interface presented by the Administration Console.

To apply a storage mechanism by Service Broker feature:

  1. In the Administration Console, switch to offline mode.

  2. Click the Lock & Edit icon

  3. Expand the OCSB node.

  4. Expand Domain Management.

  5. Click Packages.

  6. Click the Install button.

  7. In the Install Bundle dialog box, click the Browse button.

  8. In the Upload File dialog box, click Browse and navigate to the package directory:

    oracle_home/ocsb61/admin_server/modules

  9. Use the file chooser dialog box to select one of the following package files, depending on the persistence mechanism you want to use.

    For Subscriber Store persistence, select one of the following files:

    • oracle.ocsb.app.rcc.service.subscriber_store.providers.store.config_bdb.jar: Select this file to use Oracle Berkeley DB file-based storage. This is the default package for Subscriber Store persistence.

    • oracle.ocsb.app.rcc.service.subscriber_store.providers.store.config_db.jar: Select this file to use Oracle Database.

    For Degraded Mode persistence, select one of the following files:

    • oracle.ocsb.app.rcc.service.degraded_mode.persistence.bdb.jar: Select this file to use Oracle Berkeley DB file-based storage. This is the default package for Degraded Mode persistence.

    • oracle.ocsb.app.rcc.service.degraded_mode.persistence.database.jar: Select this file to use Oracle Database.

    • oracle.ocsb.app.rcc.service.degraded_mode.persistence.in_memory.jar: Select this file to use Oracle Coherence cache storage.

  10. With the file you selected showing in the Upload File dialog box file field, click Upload.

  11. Click the OK button in the File Uploaded dialog box.

  12. Click OK in the Upload File dialog box.

  13. Click Install in the Install Bundle dialog box.

    The package you selected appears in the package list.

  14. Change the start level of the package you loaded to match the level of the following packages, depending on whether it is a Subscriber Profile or a Degraded Mode package:

    • oracle.ocsb.app.rcc.service.degraded_mode.core for the Degraded Mode persistence package

    • ocsb.app.rcc.service.subscriber_store.core for the Subscriber Profile persistence package

    To change the start level:

    1. Select the package in the list.

    2. Click the Start Level button.

    3. In the Enter the start level field, enter the new start level number. Enter 190 for the Subscriber Profile package, or 295 for the Degraded Mode package.

    4. Click OK.

  15. Remove the previously installed persistence package (that is, the package that you are replacing) as follows:

    1. Select the package in the list.

    2. Click the Uninstall button.

Starting the Managed Server

After you add a managed server to the domain and configured data storage, you can start the managed server. If a domain contains several managed servers, you need to start each managed server individually.

For Service Broker controller types that rely on persistent storage, you should configure data storage before attempting to start the server. See "Configuring Data Storage" for information on setting up data storage.

For hosted domains (that is, if you configured the domain files to be exposed by a Web server), you need to start the Web server process first using the host.sh script. For more information on hosted domains, see the Oracle Communications Service Broker System Administrator's Guide.

To start the server:

  1. In a command-line shell, change directories to the server directory. By default, the server is installed to the following directory:

    Oracle_home/ocsb61/managed_server

  2. Enter:

    ./start.sh server_name domain_home/initial.zip

    where:

    server_name is the name you gave the server when you added the server to the domain.

    domain_home is the path to the domain configuration directory where the initial.zip file is located. The path may be in the form of a file location or URL. Specify the protocol as follows:

    • For a Web-hosted domain, add the protocol prefix http:// or https:// to the path, depending on your security settings.

    • If your domain configuration is accessed on a shared file system, add the protocol prefix file:// to the path.

    The following is an example of how to start a server, passing it the pn_1 identity and the configuration bundle located on the local file system:

    ./start.sh pn_1 file:///home/oracle/sc_basic_domain/initial.zip

  3. If using HTTPS, enter the keystore password when prompted.

Table 5-7 shows the start command and parameters for each server in the example domain introduced in Table 5-1. The start script is located in the server directory.

Note that the name of the server in the domain configuration, as shown in Table 5-4, corresponds to the name given as a parameter when starting the server.

Table 5-7 Example Server Start Commands

Server Directory Server Start Command for a Non-hosted Domain Server Start Command for a Hosted Domain

managed_1

start.sh pn_1 file:../domain/initial.zip

start.sh pn_1 http://ipaddress:9001/initial.zip

managed_2

start.sh pn_2 file:../domain/initial.zip

start.sh pn_2 http://ipaddress:9001/initial.zip

managed_3

start.sh pn_3 file:../domain/initial.zip

start.sh pn_3 http://ipaddress:9001/initial.zip

managed_4

start.sh pn_4 file:../domain/initial.zip

start.sh pn_4 http://ipaddress:9001/initial.zip


When you start multiple servers on a single physical host, Oracle recommends that you use a separate command shell for each server.

See Oracle Communications Service Broker System Administrator's Guide for more information about starting servers.