Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: x$ksppi table
> -----Original Message-----
> From: Sinardy Xing [mailto:sinardyxing_at_bcsis.com]
>
> Do you know what are x$.... tables for ?
> What information inside there and the different with v$.....
You can find out the relationship between v$ views and x$ "tables" by querying against v$fixed_view_definition. (see example at end of this e-mail)
With that being said, I think you would be well-advised to use x$ tables in reusable SQL statements ONLY when the information is not available through a v$ view. For one thing, only the SYS user can query those "tables".
As other posters have mentioned, there is some information on x$ tables at Steve Adams' website ( http://www.ixora.com.au )
Finally, if you have Richard Niemiec's book "Oracle Performance Tuning" (Oracle Press), Appendix C has a cross-reference between x$ tables and GV$ views.
SQL>select view_definition
2 from v$fixed_view_definition
3 where view_name = 'GV$SESSION' ;
VIEW_DEFINITION
de(ksuseft, 2,'SESSION', 4,'SELECT',8,'TRANSACTIONAL','NONE'), decode(ksusefm,1, 'BASIC',2,'PRECONNECT',4,'PREPARSE','NONE'), decode(ksusefs, 1, 'YES', 'NO'), ks usegrp, decode(bitand(ksusepfl,16),16,'ENABLED', decode(bitand(ksusepfl,32),32,'FORCED','DISABLED')), decode(bitand(ksusepfl,64),64,'FORCED', decode(bitan d(ksusepfl,128),128,'DISABLED','ENABLED')), decode(bitand(ksusepfl,512),512,'FO RCED', decode(bitand(ksusepfl,256),256,'DISABLED','ENABLED')) from x$ksuse wh ere bitand(ksspaflg,1)!=0 and bitand(ksuseflg,1)!=0
Jacques R. Kilchoër
x8816
Received on Fri Apr 20 2001 - 12:15:26 CDT
![]() |
![]() |