I need to construct a procedure to recompile all views and triggers in an oracle 8i database.
I plan to use a cursor to loop through the USER_VIEWS table, get the view_name and substitute it in the following statement: ALTER VIEW :viewname COMPILE
The problem is that the procedure compilation falis when calling the ALTER.
Does anybody have any suggestions?
Thanks
I plan to use a cursor to loop through the USER_VIEWS table, get the view_name and substitute it in the following statement: ALTER VIEW :viewname COMPILE
The problem is that the procedure compilation falis when calling the ALTER.
Does anybody have any suggestions?
Thanks