Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

drop invalid procedure

Mohammed TajAug 10 2006 — edited Aug 10 2006
hi
plz. check it out i want to drop all invalid procedure through plsql

SQL> begin
2 for dd in ( select object_name from user_objects where status = 'INVALID' a
nd object_type = 'PROCEDURE') loop
3 execute immediate 'DROP PROCEDURE'||dd.object_name;
4 end loop;
5 end;
6 /
begin
*
ERROR at line 1:
ORA-00950: invalid DROP option
ORA-06512: at line 3

if u have any other coding for this query plz. send me
thanx
regards
mohammadi
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 7 2006
Added on Aug 10 2006
1 comment
400 views