Oracle Analytics Publisher

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

LISTAGG function usage in BI Report causing 'IO Connection Closed' error

Accepted answer
45
Views
4
Comments

Hi Experts,

We recently had an issue in our PROD instance that one of the report (which was working earlier) is causing issue saying 'IO Connection Closed'. We figured that LISTAGG function is causing the issue and the same report is working in other instances.

Since we don't want to change the logic, we need to fix the problem in PROD without touching the code.

So need suggestions/options/solutions on this issue. Kindly comment if anybody awares about it.

Thanks,

Keerthana.

Tagged:

Best Answer

  • KeerthanaBaskaran
    KeerthanaBaskaran Rank 3 - Community Apprentice
    Answer ✓

    Hi All,

    We have identified that this is due to character limitation issue in the Listagg. Also we observed the same report is working for sysdate and it is not working for specific date ranges.

    We have handled Overflow truncate in LISTAGG to fix our issue. As expected, the report is working.

Answers

  • Sumanth V -Oracle
    Sumanth V -Oracle Rank 8 - Analytics Strategist

    @KeerthanaBaskaran - Please confirm that the PROD instance matches the configuration and patch level of other environments. Also, try comparing the physical SQL generated in working and non working environment and see if there are any differences. Execute them directly on corresponding DB's and validate the performance. These steps should help us identify the bottleneck first.

  • Rich Merkel
    Rich Merkel Rank 6 - Analytics Lead

    Is the production instance newer/have data that is not in lower PODs? What is length of all data your are trying listagg together? Just wondering if data in prod exists that is not in lower pod.

    In one case we used listagg to compile invoices related to a payment. When using listagg, the number of characters exceeded 1000 (I believe that is listagg limit).

    What we had to do was use xml aggregate instead of listagg. I believe we also faced I/O error.