-
Thanx jurij,
Wonderful query....
But it seems that it doesn't work
for v$views...
-
Ah, yes, it doesn't work for "fixed views" (V$ views). That's simply because those views are not based on real tables, so data dictionary does not contain any information about their underlying objects. For those views you'll have to check their deffinition and find out their underlying fixed tables (X$ tables) from the FROM clause of their deffinition. The definition can be found by querying V$FIXED_VIEW_DEFINITION. For example, if you are interested on what fixed tables is V$ACCESS based on, you would isue a following query:
SELECT view_definition FROM v$fixed_view_definition
WHERE view_name = 'GV$ACCESS';
From the output of the query you'll find out that it is based on x$ksuse, x$kglob, x$kgldp and x$kgllk.
Note that in most cases you will need to query on GV$ views (not directly on V$), because V$ views are usualy defined on top of GV$ views.
Jurij Modic
ASCII a stupid question, get a stupid ANSI
24 hours in a day .... 24 beer in a case .... coincidence?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|