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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: locking issues

RE: locking issues

From: Koivu, Lisa <lkoivu_at_qode.com>
Date: Tue, 8 Aug 2000 16:45:01 -0400
Message-Id: <10583.114116@fatcity.com>


This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible.

------_=_NextPart_001_01C00179.8B9D9AAA
Content-Type: text/plain;

        charset="iso-8859-1"

Oh. I thought it was just because the bitmap indexes expand like crazy when the indexed column is updated - not because there was locking issues.

Thanks Rachel.

-----Original Message-----
From: Rachel Carmichael [mailto:carmichr_at_hotmail.com] Sent: Tuesday, August 08, 2000 4:35 PM
To: Multiple recipients of list ORACLE-L Subject: RE: locking issues

yes. which is why Oracle recommends you not use bitmap indexes on tables that have that column frequently updated

>From: "Koivu, Lisa" <lkoivu_at_qode.com>
>Reply-To: ORACLE-L_at_fatcity.com
>To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
>Subject: RE: locking issues
>Date: Tue, 08 Aug 2000 10:06:07 -0800
>
>WHAT?
>
>"whenever any row that the bitmap points to is locked"
>
>Do you mean that an entire table ends up being locked if I am updating one
>row and there is a bitmap index on it?
>
>-----Original Message-----
>Sent: Tuesday, August 08, 2000 1:37 PM
>To: Multiple recipients of list ORACLE-L
>
>
>Yes. Bitmap indexes are locked whenever any row that the bitmap points to
>is
>locked -- which could mean 1000s of rows are locked whenever 1 row is
>updated!
>
>And, yes. This was part of the original problem. When we dropped the bitmap
>index, we still got deadlocking -- until I rewrote the code to clean up the
>logic.
>
>Kevin
>
> > -----Original Message-----
> > From: Jamadagni, Rajendra [mailto:rajendra.jamadagni_at_espn.com]
> > Sent: Tuesday, August 08, 2000 12:33 PM
> > To: Multiple recipients of list ORACLE-L
> > Subject: RE: locking issues
> >
> >
> > Isn't it true that Bitmap indexes lock more than necessary
> > rows ? I mean if
> > you are updating only one row, when bitmap index gets
> > updated, it locks all
> > the rows that are in the same (index) data block. Could this
> > be one of the
> > problem?
> >
> > I may be wrong, but I know someone will correct me on this ...
> >
> > Cheers
> > Raj
> > ______________________________________________________
> > Rajendra Jamadagni MIS, ESPN Inc.
> > Rajendra dot Jamadagni at ESPN dot com
> > QOTD: Any clod can have facts, but having an opinion is an art !
> > Any opinion expressed here is personal and doesn't reflect
> > that of ESPN Inc.
> >
> > --
> > Author: Jamadagni, Rajendra
> > INET: rajendra.jamadagni_at_espn.com
> >
> > Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> > San Diego, California -- Public Internet access / Mailing Lists
> > --------------------------------------------------------------------
> > To REMOVE yourself from this mailing list, send an E-Mail message
> > to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> > the message BODY, include a line containing: UNSUB ORACLE-L
> > (or the name of mailing list you want to be removed from). You may
> > also send the HELP command for other information (like subscribing).
> >
>--
>Author: Toepke, Kevin M
> INET: ktoepke_at_cms.cendant.com
>
>Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
>San Diego, California -- Public Internet access / Mailing Lists
>--------------------------------------------------------------------
>To REMOVE yourself from this mailing list, send an E-Mail message
>to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
>the message BODY, include a line containing: UNSUB ORACLE-L
>(or the name of mailing list you want to be removed from). You may
>also send the HELP command for other information (like subscribing).



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
-- 
Author: Rachel Carmichael
  INET: carmichr_at_hotmail.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

------_=_NextPart_001_01C00179.8B9D9AAA
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: locking issues</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Oh.&nbsp; I thought it was just because the bitmap =
indexes expand like crazy when the indexed column is updated - not =
because there was locking issues.&nbsp; </FONT></P>

<P><FONT SIZE=3D2>Thanks Rachel.</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Rachel Carmichael [<A =
HREF=3D"mailto:carmichr_at_hotmail.com">mailto:carmichr_at_hotmail.com</A>]</F=
ONT>
<BR><FONT SIZE=3D2>Sent: Tuesday, August 08, 2000 4:35 PM</FONT>
<BR><FONT SIZE=3D2>To: Multiple recipients of list ORACLE-L</FONT>
<BR><FONT SIZE=3D2>Subject: RE: locking issues</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>yes. which is why Oracle recommends you not use =
bitmap indexes on tables </FONT>
<BR><FONT SIZE=3D2>that have that column frequently updated</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>&gt;From: &quot;Koivu, Lisa&quot; =
&lt;lkoivu_at_qode.com&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;Reply-To: ORACLE-L_at_fatcity.com</FONT>
<BR><FONT SIZE=3D2>&gt;To: Multiple recipients of list ORACLE-L =
&lt;ORACLE-L_at_fatcity.com&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;Subject: RE: locking issues</FONT>
<BR><FONT SIZE=3D2>&gt;Date: Tue, 08 Aug 2000 10:06:07 -0800</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;WHAT?</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;&quot;whenever any row that the bitmap points to =
is locked&quot;</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;Do you mean that an entire table ends up being =
locked if I am updating one</FONT>
<BR><FONT SIZE=3D2>&gt;row and there is a bitmap index on it?</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>&gt;Sent: Tuesday, August 08, 2000 1:37 PM</FONT>
<BR><FONT SIZE=3D2>&gt;To: Multiple recipients of list ORACLE-L</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;Yes. Bitmap indexes are locked whenever any row =
that the bitmap points to </FONT>
<BR><FONT SIZE=3D2>&gt;is</FONT>
<BR><FONT SIZE=3D2>&gt;locked -- which could mean 1000s of rows are =
locked whenever 1 row is</FONT>
<BR><FONT SIZE=3D2>&gt;updated!</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;And, yes. This was part of the original problem. =
When we dropped the bitmap</FONT>
<BR><FONT SIZE=3D2>&gt;index, we still got deadlocking -- until I =
rewrote the code to clean up the</FONT>
<BR><FONT SIZE=3D2>&gt;logic.</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;Kevin</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; From: Jamadagni, Rajendra [<A =
HREF=3D"mailto:rajendra.jamadagni_at_espn.com">mailto:rajendra.jamadagni_at_es=
pn.com</A>]</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Sent: Tuesday, August 08, 2000 12:33 =
PM</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; To: Multiple recipients of list =
ORACLE-L</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Subject: RE: locking issues</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Isn't it true that Bitmap indexes lock =
more than necessary</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; rows ? I mean if</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; you are updating only one row, when bitmap =
index gets</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; updated, it locks all</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; the rows that are in the same (index) data =
block. Could this</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; be one of the</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; problem?</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; I may be wrong, but I know someone will =
correct me on this ...</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Cheers</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Raj</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; =
______________________________________________________</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Rajendra Jamadagni&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MIS, ESPN Inc.</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Rajendra dot Jamadagni at ESPN dot =
com</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; QOTD: Any clod can have facts, but having =
an opinion is an art !</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Any opinion expressed here is personal and =
doesn't reflect</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; that of ESPN Inc.</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; --</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Author: Jamadagni, Rajendra</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;&nbsp;&nbsp; INET: =
rajendra.jamadagni_at_espn.com</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Fat City Network =
Services&nbsp;&nbsp;&nbsp; -- (858) 538-5051&nbsp; FAX: (858) =
538-5051</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; San Diego, =
California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public Internet =
access / Mailing Lists</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; =
--------------------------------------------------------------------</FO=
NT>
<BR><FONT SIZE=3D2>&gt; &gt; To REMOVE yourself from this mailing list, =
send an E-Mail message</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; to: ListGuru_at_fatcity.com (note EXACT =
spelling of 'ListGuru') and in</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; the message BODY, include a line =
containing: UNSUB ORACLE-L</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; (or the name of mailing list you want to =
be removed from).&nbsp; You may</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; also send the HELP command for other =
information (like subscribing).</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt;--</FONT>
<BR><FONT SIZE=3D2>&gt;Author: Toepke, Kevin M</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp; INET: =
ktoepke_at_cms.cendant.com</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;Fat City Network Services&nbsp;&nbsp;&nbsp; -- =
(858) 538-5051&nbsp; FAX: (858) 538-5051</FONT>
<BR><FONT SIZE=3D2>&gt;San Diego, =
California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public Internet =
access / Mailing Lists</FONT>
<BR><FONT =
SIZE=3D2>&gt;-----------------------------------------------------------=
---------</FONT>
<BR><FONT SIZE=3D2>&gt;To REMOVE yourself from this mailing list, send =
an E-Mail message</FONT>
<BR><FONT SIZE=3D2>&gt;to: ListGuru_at_fatcity.com (note EXACT spelling of =
'ListGuru') and in</FONT>
<BR><FONT SIZE=3D2>&gt;the message BODY, include a line containing: =
UNSUB ORACLE-L</FONT>
<BR><FONT SIZE=3D2>&gt;(or the name of mailing list you want to be =
removed from).&nbsp; You may</FONT>
<BR><FONT SIZE=3D2>&gt;also send the HELP command for other information =
(like subscribing).</FONT>
</P>

<P><FONT =
SIZE=3D2>_______________________________________________________________=
_________</FONT>
<BR><FONT SIZE=3D2>Get Your Private, Free E-mail from MSN Hotmail at <A =
HREF=3D"http://www.hotmail.com" =
TARGET=3D"_blank">http://www.hotmail.com</A></FONT>
</P>

<P><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>Author: Rachel Carmichael</FONT>
<BR><FONT SIZE=3D2>&nbsp; INET: carmichr_at_hotmail.com</FONT>
</P>

<P><FONT SIZE=3D2>Fat City Network Services&nbsp;&nbsp;&nbsp; -- (858) =
538-5051&nbsp; FAX: (858) 538-5051</FONT>
<BR><FONT SIZE=3D2>San Diego, =
California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public Internet =
access / Mailing Lists</FONT>
<BR><FONT =
SIZE=3D2>---------------------------------------------------------------=
-----</FONT>
<BR><FONT SIZE=3D2>To REMOVE yourself from this mailing list, send an =
E-Mail message</FONT>
<BR><FONT SIZE=3D2>to: ListGuru_at_fatcity.com (note EXACT spelling of =
'ListGuru') and in</FONT>
<BR><FONT SIZE=3D2>the message BODY, include a line containing: UNSUB =
Received on Tue Aug 08 2000 - 15:45:01 CDT

Original text of this message

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