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!

ORA-06511cursor already open, but its not.

mcardiaMay 9 2012 — edited May 9 2012
I don´t know why i get this error (ORA-06511).
I´m closing the cursor.
procedure send(wmsp_id in number default null) is
        pragma autonomous_transaction;

        cursor recips(wmsp_id in number) is
            select mst.*, rownum, count(*) over () rowcount from (
                select mst.* from mspool_to mst where msp_id = wmsp_id order by mst_type desc
            ) mst;
begin
                open recips(wmsp.msp_id);
                loop
                    fetch recips into wrecip;
                    exit when recips%notfound;
                    -- my stuff
                end loop;
                close recips;
end;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 6 2012
Added on May 9 2012
12 comments
282 views