PL/SQL - Explicit Cursor Use with while loop in Oracle Database