Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

invalidations from v$sql

GTS (DBA)Aug 27 2013 — edited Aug 27 2013

Hello all ;


I  have little confusion with ivalidations from v$sql;

but i am trying with 2 different users   (hr , rs)  invalidations  always showing '0' - why ??

Usually 'invalidation' tells whether a cursor is invalidated and gets reloaded, which helps us to verify whether a parse call becomes hard parse.

HR>alter system flush shared_pool;

System altered.

HR>select * from tab1 where no=1;

        NO   NAME               EMAIL                                   CITY

       1    hrs          hrs@gmail.com   kolkotta

HR>conn rs/rs

Connected.


RS>select * from tab1 where no=1;

      NO      NAME                EMAIL                                CITY

      1       rs            rs@gmail.com    Atlanda

RS>select sql_id , plan_hash_value, parse_calls , INVALIDATIONS , sql_text from v$sql

  2  where lower(sql_text) like '%tab1%';


SQL_ID                         PLAN_HASH_VALUE         PARSE_CALLS            INVALIDATIONS              SQL_TEXT


1bf26hh7fsa46      2211052296                 1                            0                        select * from tab1 where no=1

1bf26hh7fsa46      2211052296                 1                             0                        select * from tab1 where no=1

This post has been answered by SomeoneElse on Aug 27 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 24 2013
Added on Aug 27 2013
7 comments
518 views