Skip to Main Content

Oracle Database Discussions

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!

querying v$access is very slow!!

rsar001Oct 18 2011 — edited Oct 23 2011
Hi There,
We were trying to update a package (create and replace) on one of our databases, and we noticed that the create or replace statements was taking a long time.. after few mins, the command returned the following:
ORA-04021: timeout occurred while waiting to lock object
So, we thought of looking at v$access and see whose accessing what, but to our surprise the following take an awful long time to execute:
14:40:17 SYS@ersp>
14:40:17 SYS@ersp> SELECT * FROM v$access WHERE OBJECT ='PROCESST2X;

       SID OWNER                OBJECT                    TYPE
---------- -------------------- ------------------------- ------------------------
      1036 ERSP_APPLICATION     PROCESST2X                PACKAGE

Elapsed: 00:04:18.85
14:44:42 SYS@ersp>
even doing a simple count on v$access takes nearly 7 mins!!!
13:37:35 SYS@ersp> select count(*) from v$access;

  COUNT(*)
----------
      3853

Elapsed: 00:06:51.32
13:44:29 SYS@ersp>
Can anyone shed some light on this please? do we need to gather sys schema stats?

Oracle Version 11.1.0.7 61bit.


Thanks

Edited by: rsar001 on Oct 18, 2011 3:11 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 20 2011
Added on Oct 18 2011
10 comments
4,538 views