Example of error:
CREATE PROCEDURE testproc() ... DROP PROCEDURE testproc; -- error END PROCEDURE
Correction: You can use an ON EXCEPTION statement to trap this error and not carry out the DROP PROCEDURE or UPDATE STATISTICS statement.
This error also occurs if you try to drop a function or procedure that a functional index is using.
This error also occurs if you try to drop a function or procedure that a xadatasource type is using.