Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: rowid
Hi all
Restricted rowid listed by Eterprise manager was 221682.13.9
Ok solved the problem to get from restricted rowed as listed for blocking locks to actual row involved in problem.
To get the extended rowid:
select dbms_rowid.rowid_to_extended('221682.13.9','COR','CUSTOMERS',1) FROM DUAL;=20 Or for the same value
select dbms_rowid.rowid_create(1, 8172, 9, 221682, 13) from dual; with 8172 determined before hand.
And now to get the actual row in the table involved use the above query in line:
select * from customers where rowid=3D(extended rowid =3D select dbms_rowid.rowid_create(1,8172,9,221682,13) from dual);
thanks for the help guys.
George
=20________________________________________________George Leonard
-----Original Message-----
From: rjamya [mailto:rjamya_at_gmail.com]=20
Sent: 28 October 2004 13:32 PM
To: Leonard, George
Cc: ORACLE-L
Subject: Re: rowid
it is the rowid on which the waiting session is we... waiting. That can be seen in v$session, the columns to use are
row_wait_obj# -> the object
row_wait_file# -> datafile number row_wait_block# - > block# row_wait_row# -> row within the block.
then use dbms_rowid package to construct the actual rowid.
Raj
On Thu, 28 Oct 2004 06:54:57 +0200, Leonard, George
<gleonard_at_wesbank.co.za> wrote:
> Hi all
>=20
> From enterprise manager/instance/sessions/locks when you have a
blocking
> lock it displays a rowed value,
>=20
> How do you map this back to the actual row in question?
>=20
> My number:221682.13.9 I need to map this back to HEX?
>=20
> George
> =3D20________________________________________________
> George Leonard
> Oracle Database Administrator
> New Dawn Technologies @ Wesbank
> E-mail:gleonard_at_wesbank.co.za
> =3D20
> You Have The Obligation to Inform One Honestly of the risk, And As a
> Person
> You Are Committed to Educate Yourself to the Total Risk In Any
Activity!
> Once Informed & Totally Aware of the Risk,
> Every Fool Has the Right to Kill or Injure Themselves as They See Fit!
>=20
>
--=20
_________________________________________________________________________= __________________________
The views expressed in this email are, unless otherwise stated, those of =
the author and not those
of the FirstRand Banking Group an Authorised Financial Service Provider o=
r its management.
The information in this e-mail is confidential and is intended solely for=
=20the addressee.
Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, any disclosure, copying, distribut=
ion or any action taken or=20
omitted in reliance on this, is prohibited and may be unlawful.
Whilst all reasonable steps are taken to ensure the accuracy and integrit=
y of information and data=20
transmitted electronically and to preserve the confidentiality thereof, n=
o liability or=20
responsibility whatsoever is accepted if information or data is, for what=
ever reason, corrupted=20
or does not reach its intended destination.
=20 ________________________________
-- http://www.freelists.org/webpage/oracle-lReceived on Thu Oct 28 2004 - 06:34:47 CDT
![]() |
![]() |