How can I modify tables/views that impact other views without having those dependent views “marked inoperative”?
We’re running DB2 9.5 LUW. I’ve read Leons Petrazickis’ blog post Find a list of views marked inoperative where he says,
There are also ways to avoid it using transactions, CREATE OR REPLACE statements, and other measures.
Since we can’t take advantage of the new features in 9.7 I need someone to elaborate on these other ways that Leons mentions. An example that runs in IBM Data Studio would be great.
The “CREATE OR REPLACE” functionality was added in DB2 9.7. Prior to this, the only way to avoid marking views inoperative is to drop the views before making the changes to the objects underneath the views, and recreate the views after.
Or, avoid making changes to the views’ dependent objects. 🙂