Note: If your view have different owners, you will have to need to add the owner name to the ALTER VIEW statement (and therefore extract it from the system catalog like-wise).

A further note: If these views are dependent on another, you might need to apply the ALTER VIEW statements in such an order that those views that are dependent on other disabled views are enabled after the latter. (Some ordering by SYSDEPENDENCY will be of help.)