Found a workaround for dinamic SQL and collect stat on volatile tables.
Set SQL SECURITY INVOKER
Creating volatile tables, fill it and others..
and before collecting stat write dummy statement like this:
set SQL_QUERY = 'insert into '||user||'.vt_tb(column1) select 1 a where a = 0';
execute immediate SQL_QUERY;
And after that collect stat.
Found a workaround for dinamic SQL and collect stat on volatile tables.
Set SQL SECURITY INVOKER
Creating volatile tables, fill it and others..
and before collecting stat write dummy statement like this:
And after that collect stat.