74 Configuring ECE Data-Loading Utilities and Data Updaters

Learn how to change the initial configuration of the Oracle Communications Elastic Charging Engine (ECE) data-loading utilities and data updaters after you install ECE.

Topics in this document:

Configuring the configLoader Utility

Use the configLoader utility to load mediation specification data required for Diameter Gateway and RADIUS Gateway into ECE.

To configure the configLoader utility:

  1. Open the ECE_home/config/management/migration-configuration.xml file.

  2. Set the configObjectsDataDirectory parameter to the path to the mediation specification file that is supplied (as ready-to-use configuration) when you install ECE. The default path is ECE_home/sample_data/config_data directory.

Loading Configuration Data with configLoader

To load configuration data with configLoader:

  1. Go to the ECE_home/bin directory.

  2. Start ECC:

    ./ecc
  3. If your charging servers are not running, start them:

    start server
  4. Run the following command:

    start configLoader

Loading Customer Data Incrementally with customerLoader

Note:

Do not run the customerLoader utility without the -incremental parameter in a production environment.

After loading the initial customer data from BRM, you can load customer data incrementally, in batches or in bulk, into ECE by using the customerLoader utility. On a system with multiple schemas, run the customerLoader utility for each schema.

To load customer data incrementally into ECE:

  1. Start ECC:

    ./ecc
    
  2. If your charging server nodes are not running, start them and load configuration data and pricing data:

    start server
    start configLoader
    start CustomerUpdater
    
  3. Create prepopulated tables to load only preselected customer data. For more information, see "Loading a Subset of Customer Data".

  4. Run the following command, which loads the customer data incrementally:

    start customerLoader -incremental customer_updater_schema_name
    

    where customer_updater_schema_name is the schema name specified for Customer Updater in the connectionconfiguration section of the ECE_home/config/management/charging-settings.xml file.

    For Example:

    start customerLoader -incremental customerUpdater1

Loading Product Cross-Reference Data with customerLoader

Running the Customer Loader utility with the -loadCrossRefData parameter loads the new or modified set of product cross-reference data from BRM into ECE for the schema that you specify. The Customer Loader utility loads the product cross-reference data only for the product offerings that are stored in the ECE cache when the utility is run with the -loadCrossRefData parameter.

To load product cross-reference data with the customerLoader utility:

  1. Start ECC:

    ./ecc
    
  2. If your charging server nodes are not running, start them and load configuration data and pricing data:

    start server
    start configLoader
    start CustomerUpdater
    
  3. Run the following command, which loads the cross-reference data from the specified customer updater schema:

    start customerLoader -loadCrossRefData customer_updater_schema_name
    

    where customer_updater_schema_name is the schema name specified for Customer Updater in the connectionconfiguration section of the ECE_home/config/management/charging-settings.xml file.

    For example:

    start customerLoader -loadCrossRefData customerUpdater1
    

    For loading cross-reference data from multiple schemas, run the customerLoader utility for each schema; for example, customerUpdater1, customerUpdater2, and so on.

Configuring Customer Updater

To configure Customer Updater:

Note:

For Customer Updater to receive update requests from BRM, the BRM Payload Generator External Module (EM) configuration file must point to the ECE payload configuration file (payloadconfig_ecc_sync.xml).

  1. To enable Customer Updater to work with prepopulated distribution tables, set -DpreDistributedWorkItems to true in the JVM tuning file.

    The prepopulated distribution tables specify which customer data to load. Only data for the customers listed in the prepopulated distribution tables is loaded. Customer Updater loads all BRM customer data by default.

  2. To enable Customer Updater to continue data extraction even if validation fails, set -DcontinueCustomerLoaderOnError to true in the JVM tuning file.

  3. Open the ECE_home/config/management/migration-configuration.xml file.

  4. Set the remoteWmThreads parameter to the number of parallel work manager threads to be used for Customer Updater.

    By default, this parameter is set to 1.

  5. Set the batchSize parameter to the number of customers to put into the repository in one put operation.

    Use batchSize to optimize performance of put operations into the repository. The more customers you insert into the repository in one put operation (rather than inserting each one individually), the better the performance.

    By default, this parameter is set to 5000.

  6. Set the dbConnections parameter to the number of parallel database connections to use for initial extraction and load of customer data.

    By default, this parameter is set to 1.

  7. Set the dbFetchSize parameter to the number of records that Customer Updater should extract from the BRM database at one time.

    By default this parameter is set to 5000.

  8. Access the ECE configuration MBeans in a JMX editor, such as JConsole. See "Accessing ECE Configuration MBeans".

  9. Expand the ECE Configuration node.

  10. Expand charging.connectionConfigurations.oracleQueueConnection1.

  11. Expand Attributes.

  12. Specify values for the following attributes:

    • jdbcUrl: Enter the Oracle JDBC URL to use to connect to the BRM database.

      jdbcUrl="jdbc:oracle:thin@//hostname:port:sid"

      where hostname and port are the host name and port number for the computer on which the database queue resides, and sid is the name of the BRM database service.

    • Password: Enter the encrypted password for logging on to the computer on which the database queue resides.

      When you install ECE, the password you enter is encrypted and stored in the KeyStore.

    • QueueName: Enter the name of the database queue that holds the published business events from BRM.

Specifying Retry Count for Customer Updater

You can configure Customer Updater to automatically retry the BRM database connection and restart the process by specifying the number of retries allowed after it fails. This ensures that Customer Updater is started automatically without any manual intervention.

To specify the retry count for Customer Updater:

  1. Access the ECE configuration MBeans in a JMX editor, such as JConsole. See "Accessing ECE Configuration MBeans".

  2. Expand the ECE Configuration node.

  3. Expand charging.connectionConfigurations.customerUpdatern, where n is the number that represents the instance; for example, CustomerUpdater2.

  4. Expand Attributes.

  5. Set the retryCount attribute to the number of times the database connection can be retried after Customer Updater fails.

    This attribute is applicable only for the Customer Updater startup, restart, or failover.

Loading a Subset of Customer Data

By default, Customer Updater loads all customer data from the BRM database into ECE. However, you can configure Customer Updater to load only a subset of customer data.

To define the subset of data to load:

  1. Open the ECE_home/bin/preselect_customer.groovy file.

  2. Specify the customer filter criteria to use for selecting which customers to load by updating the filterCondition string. Add the customer query criteria to the where clause of the query on the ACCOUNT_T table.

    Note:

    The filter conditions you specify are added to the SQL query that is used to select the customer account POIDs from the BRM ACCOUNT_T table.

  3. Enter the following command:

    ./preselect_customers.sh -u dbUser -p dbPassword -s dbHost -o oracleSID -c dbPort -n noOfdbConnections -f dbFetchSize

    where:

    • dbUser is the name of the BRM database user.

    • dbPassword is the password of the BRM database user.

    • dbHost is the host name or IP address of the BRM database user.

    • oracleSID is the Oracle database alias.

    • dbPort is the number for the Oracle database port.

    • noOfdbConnections is the number of connections to use when retrieving BRM customer data from the database. You must set noOfdbConnections and the Customer Updater dbConnections parameter to the same value.

    • dbFetchSize is the number of records to fetch from the database at one time. You must set dbFetchSize and the Customer Updater dbFetchSize parameter to the same value.

The distribution tables that Customer Updater uses to load BRM customers into ECE are created and populated with details of the selected customers.

In a multischema environment, run the preselect_customer.sh script in each schema. When you run the script, you specify the database credentials for that schema.

Loading Customer Data Selectively from BRM into ECE

The initial data load includes the customer data only for the product offerings (services and the corresponding pricing data) that are already stored in the ECE cache. If you are migrating pricing data selectively from BRM into PDC, you must load the customer data also selectively from BRM into ECE.

To load customer data selectively from BRM into ECE:

  1. Configure Customer Updater to run in the selectiveMigrationMode mode by setting the selectiveMigrationMode attribute in the ECE_home/config/management/migration-configuration.xml file to true.

    See "Configuring Customer Updater to Load Data Selectively".

  2. Load the selectively migrated pricing data (including services) from PDC into ECE by running Pricing Updater. See "Starting and Stopping ECE".

  3. Load the corresponding customer data and product cross-reference data from BRM into ECE by running Customer Updater. See "Starting and Stopping ECE".

Configuring Customer Updater to Load Data Selectively

To configure Customer Updater to load data selectively:

  1. Access the ECE configuration MBeans in a JMX editor, such as JConsole. See "Accessing ECE Configuration MBeans".

  2. Expand the ECE Configuration node.

  3. Expand migration.loader.

  4. Expand Attributes.

  5. Set the selectiveMigrationMode attribute to true.

Configuring the Customer Updater Suspense Queue

ECE moves failed data updates from Customer Updater to the suspense queue.

To configure the Customer Updater suspense queue:

  1. Access the ECE configuration MBeans in a JMX editor, such as JConsole. See "Accessing ECE Configuration MBeans".

  2. Expand the ECE Configuration node.

  3. Expand charging.connectionConfigurations.oracleQueueConnection1.

  4. Expand Attributes.

  5. Set the suspenseQueueName attribute to the name of the queue on the BRM system that holds failed updates from BRM.

Configuring Pricing Updater

To configure the Pricing Updater:

  1. Open the ECE_home/config/JMSConfiguration.xml file.

  2. Edit the PdcEceQueue section to specify the JMS queue details from which Pricing Updater retrieves the pricing data from PDC.

  3. Edit the PDCResultQueue section to specify the JMS result queue details to which Pricing Updater publishes the results back to PDC.

  4. Save the file.

If you need to change the password values in this file (for example, if ECE must interact with new BRM or PDC machines or if the password used to connect to existing BRM and PDC machines has changed), you must first run the encrypt password utility.