My Oracle Support Banner

Bill POID Literal Value Used In The Query To Fetch /bill Objects Causing Slow Performance Of Invoicing (Doc ID 2003072.1)

Last updated on FEBRUARY 25, 2024

Applies to:

Oracle Communications Billing and Revenue Management - Version to [Release 7.4.0]
Information in this document applies to any platform.


On : version, Invoicing

Bill POID literal value used in the query to fetch /bill objects for Invoicing (Fresh or re-fetch) causing slow performance.

Following SQL query was used by OOTB pin_inv_accts to retrieve the /bill objects to create invoices.

SELECT bill_t.poid_db, bill_t.poid_id0, bill_t.poid_type, bill_t.poid_rev,
  bill_t.created_t, bill_t.mod_t, bill_t.account_obj_db,
  bill_t.account_obj_id0, bill_t.account_obj_type,
  bill_t.account_obj_rev, bill_t.bill_no, bill_t.currency,
  bill_t.current_total, bill_t.end_t, bill_t.due_t, bill_t.parent_db,
  bill_t.parent_id0, bill_t.parent_type, bill_t.parent_rev,
  bill_t.previous_total, bill_t.start_t, bill_t.subords_total,
  bill_t.total_due, bill_t.currency_secondary, bill_t.invoice_obj_db,
  bill_t.invoice_obj_id0, bill_t.invoice_obj_type,
  bill_t.invoice_obj_rev, bill_t.flags, bill_t.billinfo_obj_db,
  bill_t.billinfo_obj_id0, bill_t.billinfo_obj_type,
  bill_t.billinfo_obj_rev, bill_t.ar_hierarchy_size,
  bill_t.ar_billinfo_obj_db, bill_t.ar_billinfo_obj_id0,
  bill_t.ar_billinfo_obj_type, bill_t.ar_billinfo_obj_rev, bill_t.NAME
  FROM bill_t, billinfo_t
  WHERE bill_t.billinfo_obj_id0 = billinfo_t.poid_id0
  AND billinfo_t.pay_type = :1
  AND bill_t.parent_id0 = :2
  AND bill_t.end_t >= :3
  AND bill_t.end_t < :4
  AND bill_t.poid_id0 > 1
  AND (bill_t.invoice_obj_id0 = 0 OR bill_t.invoice_obj_id0 IS NULL)
ORDER BY bill_t.poid_id0 ASC

As per the above query " bill_t.poid_id0 > 1 " the value 1 is used as literal and the same literal is being modified at the time of re-fetch ( Max(POID) value of /bill processed by worker threads ) to fetch the /bill objects which are yet to be processed. So this query is taking longer time which causes invoicing performance issue, how to overcome this performance issue?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.