PL/SQL (MOSC)

MOSC Banner

Access to sys views from package body

edited Jun 14, 2012 8:00PM in PL/SQL (MOSC) 4 commentsAnswered
Hi,

does it exist any limitation of using system views in procedures or packages? I noticed a following problem while getting the data from all_tab_comments:

query:

select count(*) from all_tab_comments where comment is not null and owner = 'test'  - returns >100 rows

PL/SQL Block:

returns the same

but ... executed from package body returns only 3 rows.

Thanks for explanations.

BTW. 11.2.0.2

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