Database DataWarehousing (MOSC)

MOSC Banner

Materilized View Dropping vs.Truncating.

edited Jan 14, 2010 1:19AM in Database DataWarehousing (MOSC) 8 commentsAnswered ✓
I have a script that drops a materialized view then creates the view. I've notice that the lots of logging

occurs during this job.  To reduce the amount of logging, I have added the NOLOGGING clause to the

creation of the materialized view.     So I started to think, what is better:

  • A)  Drop the materialized view (without a purge)  the create the table or...
  • Truncate the materialized view then insert to the materialized view.

What is the least contentious operation?  What operations would cause the least about of log switching?

Thanks.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

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

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center