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!

Procedure worked but showing up invalid

563529Apr 27 2007 — edited Apr 27 2007
Why is the procedure showing up as invalid when it worked successfully?

Could it be an old procedure that is still there even though the latest one worked successfully?

If so, how can you get rid of it so when I check the object status it does not show up as an invalid procedure?

Thanks again guys

................

set serveroutput on

DECLARE
CURSOR c1 IS SELECT first_name from customer;
v_string varchar2(30);
v_number number;

PROCEDURE proc is
BEGIN
DBMS_OUTPUT.PUT_LINE('Proc');
END proc1;

PROCEDURE proc2 is
BEGIN
DBMS_OUTPUT.PUT_LINE('Proc2');
OPEN c1;
LOOP FETCH c1 INTO v_string;
EXIT WHEN c1%NOTFOUND;
DBMS_OUTPUT.PUT_LINE('v_string: '||v_string);
END LOOP;
CLOSE c1;
END proc2;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 25 2007
Added on Apr 27 2007
5 comments
502 views