Error: "LPX-00007: unexpected end-of-file encountered"

(Doc ID 1448986.1)

Last updated on JANUARY 18, 2017

Applies to:

Oracle Server - Enterprise Edition - Version: 9.2.0.1 to 11.1.0.7 - Release: 9.2 to 11.1
Information in this document applies to any platform.

Symptoms

When Attempting to use dbms_metadata.get_ddl on a Materialized View you see Error: 
LPX-00007: unexpected end-of-file encountered

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms