Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: object id -> object name

Re: object id -> object name

From: Howard J. Rogers <dba_at_hjrdba.com>
Date: Tue, 5 Mar 2002 15:19:06 +1100
Message-ID: <a61h04$v7n$1@lust.ihug.co.nz>


select object_name from dba_objects where object_id=xxxx;

But you might be in for a surprise. The object id that appears in v$lock has a nasty habit of turning out to be the rollback segment being used for the locking transaction, from painful memory. If you want to identify the real table involved, you have to use the number contained in the ID1 column from v$lock, for the row that is holding the TM lock type.

Hopefully you knew that anyway, in which case apologies for stating the bleedin' obvious.

Regards
HJR

--
----------------------------------------------
Resources for Oracle: http://www.hjrdba.com
===============================


"Y" <y_at_y.y> wrote in message news:3C84408D.431E74B9_at_y.y...

> Hi,
> How to get the object name from object id?
> For example, I got the table id from lock view. I need to know the name
> of this table. How to know this information?
> Thanks for any help!
>
>
Received on Mon Mar 04 2002 - 22:19:06 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US