Whenever I used to find out the info of any fixed table(x$) I used to do this by a workaround. I used to set the trace, run the query and see the table’s name. For example, if we are looking for the V$log’s fixed table name so I would do something like that ,
SQL> select * from V$log;
Execution Plan
———————————————————-
Plan hash value: 2536105608
——————————————————————————–
————
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)
| Time |
——————————————————————————–
————
| 0 | SELECT STATEMENT | | 1 | 185 | 0 (0)
| 00:00:01 |
| 1 | NESTED LOOPS | | 1 | 185 | 0 (0)
| 00:00:01 |
|* 2 | FIXED TABLE FULL | X$KCCLE | 1 | 136 | 0 (0)
| 00:00:01 |
|* 3 | FIXED TABLE FIXED INDEX| X$KCCRT (ind:1) | 1 | 49 | 0 (0)
| 00:00:01 |
——————————————————————————–
————
Nice finding. I’ve been using the same approach as you did (or googling for it.) But now, I can go directly to it.
Thanks.
Ittichai
Thanks for the comment and visiting my blog Ittichai. Its an honor to see you here.
Regards
Aman….
May be am late for this reply …There are so many other ways to get the info …
Even this is clearly stated at my oracle 9i student volumes guides,provided by Oracle.V4 views are bascally from GV$ views and Gv$ views are based on xv$ or x$ views.
SQL> select NAME
2 from v$fixed_table
3 where lower(NAME) like ‘v$fixed%’
4 /
NAME
——————————
V$FIXED_TABLE
V$FIXED_VIEW_DEFINITION
SQL> select NAME
2 from Gv$FIXED_TABLE
3 where lower(NAME) like ‘gv$fixed%’;
NAME
——————————
GV$FIXED_TABLE
GV$FIXED_VIEW_DEFINITION
Which contains all the v$tables.
Any way.. good to see your post.From today onwards I wil keep following you.
Thanks for the Blog.
sriram
Sriram,
Thanks for the comment. Well, I didn’t say that its a new technique but it was a new thing that I didn’t know before(bad for me actually) . So I thought to write about it, that’s all 🙂 .
Aman….