Skip Headers
Oracle® Communications Marketing and Advertising System Administrator's Guide
Release 5.1

Part Number E20558-01
Go to Documentation Home
Go to Book List
Book List
Go to Table of Contents
Go to Feedback page
Contact Us

Go to previous page
Go to next page
View PDF

7 Maintaining Databases

This chapter describes basic maintenance for the database tables underlying Oracle Communications Marketing and Advertising and Oracle Communications Services Gatekeeper.

Maintenance for Marketing and Advertising Tables

All of the Marketing and Advertising database tables are cleaned automatically based on the data retention values set in the Data Retention tab of the OCMA extension in the WebLogic Administration console.

You can separately configure retention time for statistics tables and for deleted entities, such as old campaigns and ad spaces.

For more information, see Data Retention.

Maintenance for Services Gatekeeper Tables

This section describes manual cleanup for the charging data record (CDR), alarms, and statistics tables and how to manage storage data expiration for all Services Gatekeeper database tables.

Manual Database Cleanup

Most of the Services Gatekeeper tables are cleaned automatically, but the following three tables in the database underlying Services Gatekeeper must be periodically cleaned manually to prevent them from growing too large:




Use the instructions provided for your database to delete rows from these tables.

Oracle recommends cleaning the SLEE_STATISTICS_DATA table once a month and the SLEE_ALARM table every two months.

The interval for cleaning the SLEE_CHARGING table depends on the amount of charging traffic, so it is difficult to specify a recommended interval. There is usually one row in this table per plug-in transaction. A row can contain up to 300 bytes of data.

Typically, operators export charging data from the SLEE_CHARGING table to a file either by using a scheduled script or by integrating with a billing system such as Oracle Communications Billing and Revenue Management.

Charging data is contained in CDRs, which are a type of event data record (EDR). Typically CDRs are integrated by means of EDR listeners. You can also listen for alarms by setting up an SNMP/EDR listener. If this is done, it is possible to disable storage of CDRs and alarms in the database by setting the EDR Service's StoreAlarms or Store CDRs attributes to false. Oracle recommends storing alarms for some period of time, however, for trouble-shooting purposes. For general information about EDRs, CDRs, and alarms, as well as about the StoreCDRs and StoreAlarms attributes, see "Managing and Configuring EDRs, CDRs and Alarms" in Oracle Communications Services Gatekeeper System Administrator's Guide at:

For more detailed information about creating an EDR listener see “Creating an EDR Listener and Generating SNMP MIBs” in the Oracle Communications Services Gatekeeper Platform Development Studio Developer's Guide at:

Storage Data Expiration

To prevent the databases underlying the Storage service from growing too large, data in the Storage service can be set to expire, after which time the data is deleted. One of the visible consequences of this is that the status of delivery receipt can be unsuccessful if an old message is deleted from storage because it aged beyond the configured expiration period.

You can configure both the data expiration period for a communication service and the interval that Services Gatekeeper checks whether data in the stores has expired.

Configuring the Expiration Period

To set the data expiration period:

  1. Locate the store schema JAR file for the store that you want to configure.

    These jar files are in under the Domain_Home/config/store_schema directory.

    For example, the JAR file for the common smpp store is Domain_Home/config/store_schema/

  2. Extract the files from the JAR file for the store that you want to configure.

  3. Open the wlng-cachestore-config-extensions.xml file.

  4. In the extensions file, create or edit the <expiry> element, setting its expiry_age value. The value is in seconds.

  5. Save the file.

If expiry_age is not set, the data never expires.

The following example shows the configuration of the MO message store setting the expiration period to 604800 seconds (one week).

<!-- MO message store (common) start -->
  <db_table name="pl_sms_mo_sms">
    <key_column name="msg_id" data_type="VARCHAR(30)"/> 
    <bucket_column name="smsdata" data_type="BLOB"/>
    <value_column name="notif_correlator" data_type="VARCHAR(30)">
        <get_method name="getNotificationInfoCorrelator"/>
        <set_method name="setNotificationInfoCorrelator"/>
    <expiry expiry_age="604800"/> <!-- 1 week  -->

Configuring the Checking Interval

At the system level, Services Gatekeeper checks whether Storage data has expired at a set interval defined by the variable. The default for the expiry_period is every 1800000 milliseconds (thirty minutes).

You can configure this value on server startup by passing it as a Java option when you restart the server. The option is:


For example, the following flag configures Services Gatekeeper to check for expired data once an hour: