Ok, I know I'm using the atler-compile pre-defined trigger here, and I'm cool with that.
I'm creating an anonymous block to recompile all INVALID objects. I've come up with a basic CURSOR to pull all INVALID objects into the cursor, and then using the alter_compile trigger to recomipile them.
However, I can't figure out how to call them all into the trigger...One of the inputs for the alter_compile trigger is the name of the object...hwo can I get around that?
DECLARE
CURSOR compile_cur
IS
SELECT object_name, status
FROM user_objects
WHERE status='INVALID';
BEGIN
FOR rec_cur IN compile_cur LOOP
DBMS_DDL.ALTER_COMPILE('PROCEDURE', 'SYSTEM','BB_JOBTEST');
END LOOP;
END;
/