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.

Create a free website or blog at WordPress.com.