Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: v$sql and v$sqlarea
> -----Original Message-----
> From: Greg Moore [mailto:sqlgreg_at_pacbell.net]
>
> I want to understand the difference between v$sql and
> v$sqlarea. Apparently
> they are both views of the same x$ table. Does anyone know
> where I can view
> the code that creates these two views?
v$fixed_view_definition
LQS> select view_definition from v$fixed_view_definition 2 where view_name = 'GV$SQL' ;
VIEW_DEFINITION
2, 'FIRST_ROWS', 3, 'RULE', 4, 'CHOOSE', 'UNKNOWN') , kglobtn0, kglobt17, kglobt18, kglhdkmk, kglhdpar, kglobtp0, kglnahsh, kglobt09 , kglobts0, kglobt19, kglobts1, kglobt20, kglobt21, kglobts2 from x$kglcursor where kglhdadr != kglhdpar and kglobt02 != 0
LQS> c/GV$SQL/GV$SQLAREA/
2* where view_name = 'GV$SQLAREA'
LQS> run
1 select view_definition from v$fixed_view_definition
2* where view_name = 'GV$SQLAREA'
VIEW_DEFINITION
obt02,0)) , decode(count(*)-1, 1, decode(sum(decode(kglobt09, 0, kglobt32, 0)), 0, 'NONE', 1, 'ALL_ROWS', 2, 'FIRST_ROWS', 3, 'RULE', 4, 'CHOOSE', 'UNKNOWN'), 'MULTIPLE CHILDREN PRESENT'), sum(deco
VIEW_DEFINITION
t_id,kglnaobj,kglhdpar,kglnahsh,kglnatim, kglobts0,kglobt19, kglobts1, kglobt20 having sum(decode(kglobt09,0,kglobt02,0)) != 0globt19, kglobts1, kglobt20 having sum(decode(kglobt09,0,kglobt02,0)) != 0 Received on Fri Oct 26 2001 - 13:02:06 CDT
![]() |
![]() |