Package With REF CURSOR Declared in Initialization Part Fails With ORA-06544 /PLS-00801 
Last updated on JANUARY 01, 2017
Applies to:PL/SQL - Version 220.127.116.11 and later
Information in this document applies to any platform.
*** Checked for relevance on 2nd Jan 2017 ***
Executing a package which has SYS_REFCURSOR/REF CURSOR declared in initialization section fails with ORA-00600 /ORA-06544 /PLS-00801  error.
This happens during the first execution and subsequent execution runs fine.
The following PL/SQL Package, when executed will produce the error.
ORA-00600: internal error code, arguments: , [severe error during PL/SQL execution], , , , , , , , , , 
ORA-06544: PL/SQL: internal error, arguments: , , , , , , ,
ORA-06553: PLS-801: internal error 
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms