sql in procedure returns incorrect data
The sql is selecting data from all_tab_columns. The native sql returns details of tables / columns owned by various different schemas, but when run in the procedure it only returns details of tables / columns owned by sys
The sql and procedure are both owned wnd executed by a user called dbmonitor
I have run this on V8, 9 and 10 databases, and only seem to have the problem on this V10 database
Can anyone shed any light on why I can't retrieve details of some schema's when reading all_tab_columns through a procedure, please?