Skip to main content
Question

EBR materialized views and "No more data to read from socket" with DISTINCT / ORDER BY in source views

  • May 7, 2026
  • 1 reply
  • 15 views

InfFilipV
Hero (Partner)
Forum|alt.badge.img+12

Hi all,

during a 25R1 to 25R2 upgrade, we converted several custom materialized views to the new declarative .views syntax to make them EBR compliant.

The generated `CREATE MATERIALIZED VIEW` statements use:

EVALUATE USING CURRENT EDITION


This is expected according to the .views documentation.

However, we found that materialized view creation can terminate the DB connection with:

No more data to read from socket

In our case, this happened when the source view dependency chain contained constructs such as:

  • DISTINCT
  • ORDER BY
  • ROW_NUMBER() OVER (... ORDER BY ...)

After rewriting the affected source views to avoid these constructs, the materialized views were created successfully.

Examples of workarounds that helped:

  • Replaced DISTINCT with GROUP BY
  • Removed unnecessary ORDER BY clauses from view definitions
  • Replaced ROW_NUMBER() OVER (... ORDER BY ...) logic with MAX / GROUP BY logic

We also found one deployment-order trap.

Calling Database_SYS.Prepare_M_V_For_EBR from a CDB file was problematic, because CDB runs before APV. This means the preparation can still use the old source view definitions, before the corrected views are deployed.

Since the materialized views are now defined declaratively in the .views file, we removed the explicit Prepare_M_V_For_EBR calls and let APV handle the materialized view creation.

Has anyone else seen similar behavior with EBR materialized views?

I am mainly interested in whether this is a known Oracle / IFS limitation and whether there are any recommended patterns or known SQL constructs to avoid when defining source views for EBR materialized views.

The most painful part is that the failure closes the DB connection, so the delivery continues with cascading errors such as:

  • No database connection exists
  • Closed Connection

instead of returning a clear SQL error.

(Reported to IFS in case CS0515494)

1 reply

InfFilipV
Hero (Partner)
Forum|alt.badge.img+12
  • Author
  • Hero (Partner)
  • May 11, 2026

IFS Support case response:

Based on the analysis performed so far, Oracle has identified this as a potential Oracle Database issue and has internally requested a backport patch for Bug 35703692 on Oracle Database RU 19.28.0.0.0.

At present, Oracle is coordinating with their development team to prepare and validate the required fix for the current database version in use. The request is being tracked internally by Oracle under reference BLR #10919128.

This indicates that Oracle is actively investigating the issue and working towards providing a compatible fix/one-off patch. However, the patch is not yet available and may require additional internal review, build, and validation activities from Oracle before it can be shared.