Oracle 12c: Refresh MV With Out Of Place True causes loss of GRANTS (Doc ID 2010976.1)

Last updated on JANUARY 18, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.1 and later
Information in this document applies to any platform.

Symptoms

MVIEW Refresh with "out of place" option causes loss of grants on dependent objects. In out of place refresh, the main container table of MVIEW is not touched initially. MVIEW is refreshed by means of internal separate tables. When refresh is complete then container table is exchanged with the new tables. Hence the container table CREATED TIME and OBJECT_ID changes. This is the reason the grants are required to be given again.

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