My Oracle Support Banner

Drop Materialized View Gives ORA-12083 and ORA-04020 (Doc ID 265455.1)

Last updated on OCTOBER 01, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 8.1.7.0 to 9.2.0.8 [Release 8.1.7 to 9.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

User is trying to re-create a Materialized view

Interrupts the Materialized view drop command issued from SQL Plus or OEM

Issues the drop command again

Returns the message that the Materialized view is not existing

Queries DBA_MVIEWS for the materialized view

+ Returns no rows

Queries DBA_TABLES for underlying table

+ Table with the same name existing

Tries to drop the underlying table. Returns error

ORA-12083: must use DROP MATERIALIZED VIEW to drop %s . %s

Tries to recreate the Materialized view on this table with prebuilt table option. Returns error

ORA-04020: deadlock detected while trying to lock object.

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
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.