Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> TYPES.CURSORTYPE DECLARATION ERROR
Using PO8. This function does not compile and raises the
following errors:
FUNCTION PO8.F_TESTSELECT RETURN types.cursortype
as
l_cursor types.cursorType;
begin
open l_cursor for select ename, empno from emp order by ename;
return l_cursor;
end;
PLS-00201: identifier 'TYPES.CURSORTYPE' must be declared PL/SQL: Compilation unit analysis terminated
I'm assuming there is a problem with the scope of the dbms_output package.
Any ideas - thanks in advance