Closed habagit closed 4 years ago
Thanks for reporting this. It looks like an Oracle bug, as the error doesn't make sense at this point of the code.
For some reasons, compiling the package body with debug info seems to solve the issue.
So, as an immediate workaround, I suggest running the following :
alter package exceltable compile debug body;
I'll probably file a SR if I manage to reproduce the problem on a small test case.
This works too :
alter package exceltable compile body plsql_optimize_level=2;
so definitely a compiler bug.
I've rearranged the code in ExcelTable v5.0, the issue is no longer present.
when trying to run the sample select t.* from table( ExcelTable.getRows( ExcelTable.getFile('DIR_TEST','sample_3.xlsx') , 'DataSource' , ' "SRNO" number , "NAME" varchar2(10) , "VAL" number , "DT" date , "SPARE1" varchar2(6) , "SPARE2" varchar2(6)' , 'A2' ) ) t ;
I get the following error on Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
ORA-06530: Reference to uninitialized composite ORA-06512: at "CLOUD_EE.EXCELTABLE", line 4067 ORA-06512: at "CLOUD_EE.EXCELTABLEIMPL", line 140