PL/SQL (MOSC)

MOSC Banner

sql in procedure returns incorrect data

edited Jun 11, 2009 4:59AM in PL/SQL (MOSC) 8 commentsAnswered
I have a piece  of sql, which, when I run in native SQL returns 98 rows, but when I put it in a procedure returns only 4 rows.

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?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center