DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: How to find what objects are being used by a user?

  1. #1
    Join Date
    Apr 2001
    Location
    Congleton
    Posts
    258
    How do I find out what objects are being used by a user? I have queried v$sqlarea, but this has returned no rows for this particular user. The user is running an application which uses pl/sql packages and procedures. Thanks.

  2. #2
    Join Date
    Oct 2001
    Location
    Madrid, Spain
    Posts
    763
    With the next query you can see all objects in use at this moment:

    SELECT A.SID,A.USERNAME,B.OWNER,B.OBJECT,B.TYPE
    FROM V$SESSION A,V$ACCESS B
    WHERE A.SID = B.SID;

    If you add and username='USER'

    You will see the objects used by this user at this moment.

    Hope that helps

    Angel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width