Posts

Showing posts from September, 2018

Edit/read nar file in OCOMC without Nar editor

Now it no more a challenge to read or modify nar file in offline mediation controller (OCOMC) . There is an OOB utility which we can use in your perl/shell script to read nar files . All the transactional files of OCOMC are always in NAR format . For ex : Intermediate file between two nodes . Success response file by ECE. Suspense file in suspense directory. No response file. you may encounter situation where you have to read these files to get some value or do some analysis. There is script with name : NARVIEWER on your OCOMC_HOME/bin/tools directory . You can use this script in your custom shel script to read nar files or to get record count in one narfile. Sample loop to get record count in all NAR files in a directory:  #!/bin/bash FILES=No_response* for f in $FILES do echo "Processing $f file..."  get_only_filename=${f##*/} echo $f app/BRM/opt/OracleCommunications/ocomc/bin/tools/NARViewer -narfile $f -count done You can us...

NO_RESPONSE file handling during rating in ECE and OCOMC

Implementing NO RESPONSE file handling for the ECE Cartridge Pack and Offline mediation controller (OCOMC) PROBLEM STATEMENT :  The ECE DC receives the CDR input stream, which includes the ECE response records from Oracle Communications Billing and Revenue Management Elastic Charging Engine and checks for CDR errors. The records for which no response is received from ECE, they are sent to NO_RESPONSE Directory of that particular ECE DC node. If the number of files increases in this no_response directory, then it is a critical situation and this needs to be handled properly. Such type of Revenue Leakage of the CDRs need to be appropriately routed to avoid causing losses to the Bahrain operator. BACKGROUND STUDY : Step 1 : Network Accounting Record (NAR) Collection Cartridge (CC). The NAR CC reads the no response CDR input stream from the No response directory. The output is made available for the No Response DC ASCII .   Step 2 : NO RESPONSE OCECE ASCII Distrib...

Script to create snapshot in Oracle ECE

In Oracle ECE patch set 3 , we need to take pricing snapshot before restart so that it can be recovered with same pricing data again. If snapshot is not taken then you will end up loosing all your pricing data in ECE cache. Then you have to go for PDC republish which may take more than 48 hrs (depending upon your price plan structure). To avoid this situation I would recommend you to schedule snapshot creation in crontab so that always you have backup . You can put a simple login to delete snapshot older than 30 days as per your business policy. Please find below steps to create pricing snapshot in oracle ECE using script . Create groovy with below lines of code . import java.lang.management.* import javax.management.ObjectName import javax.management.remote.JMXConnectorFactory as JmxFactory import javax.management.remote.JMXServiceURL as JmxUrl import groovy.swing.SwingBuilder import javax.swing.WindowConstants as WC import java.time.LocalDate import java.t...