declare
cursor c1 is select * from employee;
e employee%rowtype;
begin
close c1;
exception
when invalid_cursor then
dbms_output.put_line('invalid cursor');
end;
/
declare
cursor c1 is select * from employee;
e employee%rowtype;
begin
close c1;
exception
when invalid_cursor then
dbms_output.put_line('invalid cursor');
end;
/