Link to home
Start Free TrialLog in
Avatar of FredTbay
FredTbayFlag for Canada

asked on

How to avoid ORA-04068, but still update materialized view that is used in a procedure?

I need to update/refresh a materialized view that is the basis for records processed by a procedure. Any way to do this in PL/SQL?
Avatar of Sean Stuber
Sean Stuber

You can't avoid it,  if you modify a plsql object, either explicity or implicitly (by modifying objects it's dependent on) then that object will need to be recompiled.
Upgrading to 11g will help because it does finer grained dependencies but if procedure is dependent on an object then you will encounter 4068's if you try to use it across ddl changes.

A simple refresh of data shouldn't cause any invalidations though
ASKER CERTIFIED SOLUTION
Avatar of FredTbay
FredTbay
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
if you don't have further info request, I suggest deleting the question rather than closing it
Avatar of FredTbay

ASKER

It's not very elegant, but it'll work.