Oracle Logbook

July 27, 2011

Checking other user v$object_usage

Filed under: Uncategorized — Helio Dias @ 9:05 pm

Sometimes you don´t have the password and don´t want to change it (even for a tiny amount of time)

The solution is go straight to base tables

select u.name

, io.name

, t.name

, decode(bitand(i.flags, 65536), 0, ‘NO’, ‘YES’)

, decode(bitand(ou.flags, 1), 0, ‘NO’, ‘YES’)

, ou.start_monitoring

, ou.end_monitoring

from

sys.user$ u

, sys.obj$ io

, sys.obj$ t

, sys.ind$ i

, sys.object_usage ou

where

i.obj# = ou.obj#

and io.obj# = ou.obj#

and t.obj# = i.bo#

and u.user# = io.owner#

 

Lack of reference about the original author.

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: