DECLARE TYPE rr IS REF CURSOR; TYPE r_emp IS RECORD( empno ), ename ), job ), mgr ), hiredate DATE, sal , ), comm , ), deptno )); TYPE t_e IS TABLE OF r_emp; e t_e; ee t_e:= t_e(); r rr; BEGIN OPEN r FOR SELECT * FROM apps.emp; LOOP EXIT WHEN r%notfo…