My Oracle Support Banner

LISTVALUE Not Closing Cursors When Query List Used (Doc ID 1463132.1)

Last updated on MARCH 02, 2018

Applies to:

Oracle Utilities Quotations Management - Version 1.6.1.7 to 1.6.1.10 [Release 1.6]
Oracle Utilities Transaction Management - Version 1.6.1.7 to 1.6.1.10 [Release 1.6]
Oracle Utilities Load Profiling and Settlement - Version 1.6.1.7 to 1.6.1.10 [Release 1.6]
LODESTAR EIP - Version 1.6.1.7 to 1.6.1.10 [Release 1.6]
Oracle Utilities Billing Component - Version 1.6.1.7 to 1.6.1.10 [Release 1.6]
Information in this document applies to any platform.

Symptoms

The list containing the query list is not closed after the list has been processed. This causes an opening of a new cursor in the database.

Steps to Reproduce

1. In DataManager create a new Rate Schedule that calls the LISTVALUE function, see example below.

// Example Rules Language
FOR EACH N IN NUMBER 1000
    TEST = LISTVALUE("IK_TEST");
END FOR;

2. Run the rate schedule through the menu (Analysis->Trial Calculation), specify the rate schedule, select the “Do not use Account/Customer selection.”, and click the single step in the Trial Calculation dialog box.

3. In Trial Calculation use Step (F8) to single step to reach the LISTVALUE function.

4. Open SQL Developer and connect to the database with a database user DBA priveleges

5. Check the value of the cursor in the query result of the SQL developer after running this query as shown below. Assuming the database user PWRLINE was used in the DataManager connection string.

select a.value, s.username, s.sid, s.serial#
from v$sesstat a, v$statname b, v$session s
where a.statistic# = b.statistic# and s.sid=a.sid
and b.name = 'opened cursors current' and s.username='PWRLINE'

6. In DataManager "Run" through the loop containing the “LISTVALUE” function in the data manager.

7. Repeat Step 5. The value of the cursor increases which is not the expected behavior.

 

Cause

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
Symptoms
 Steps to Reproduce
Cause
Solution
References

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