Search this blog
-
Recent Posts
- Applying 19.19 RU on RHEL8.7 fails with timeout on “kernel:watchdog: BUG: soft lockup – CPU#X stuck for XXs! [modprobe:XXXXXX].”
- ORA-00918: column ambiguously defined after applying 19.17 RU
- ORA-600 [3020]
- ORA-12547:TNS:lost contact
- October PSU # 26635815 failing with, ACFS-11022: failed to configure device ofsctl, errno 12 (Not enough space)
-
Join 82 other subscribers
Category Archives: Oracle PL/SQL
Returning cursor from PL / SQL objects
In following example, function returns the ref cursor based on the input parameter CREATE OR REPLACE FUNCTION REF_CURSOR_TEST (P_DEPTNO NUMBER)RETURN SYS_REFCURSORISCUR_DEPT_COUNT SYS_REFCURSOR; BEGINOPEN CUR_DEPT_COUNT FOR SELECT DEPTNO, COUNT(*) FROM EMP WHERE DEPTNO = P_DEPTNO GROUP BY DEPTNO;RETURN CUR_DEPT_COUNT;END;/ PL/SQL block … Continue reading