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 220.127.116.11 to 18.104.22.168 [Release 1.6]
Oracle Utilities Transaction Management - Version 22.214.171.124 to 126.96.36.199 [Release 1.6]
Oracle Utilities Load Profiling and Settlement - Version 188.8.131.52 to 184.108.40.206 [Release 1.6]
LODESTAR EIP - Version 220.127.116.11 to 18.104.22.168 [Release 1.6]
Oracle Utilities Billing Component - Version 22.214.171.124 to 126.96.36.199 [Release 1.6]
Information in this document applies to any platform.
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");
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.
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
|Steps to Reproduce|