Re: Update takes insanely long time

From: Andreas Stephan <nospam.as.stedat_at_gmx.net>
Date: Fri, 10 Dec 1999 12:03:36 +0100
Message-ID: <3850DE08.2CA39DB6_at_gmx.net>


Hi Tapan,

could be that there are any indizes on column1? Drop them and do the statement which will lead to a full table scan which performs much better than updating the row, updating and refreshing the indizes.
But for this small number of rows I would assume there are occuring waits caused by other users locking the table or rows while the statement is running.
Look for locks and/or blocking sessions in v$locks.

Hope this helps. (Sorry, currently no mail reply possible :-(

Andreas Stephan

Tapan Trivedi schrieb:

> Hi gurus,
> I have a question for you all. One of my developers is trying to
> update a table with around 16500 records . She is trying a very simple
> update statement which goes like
> update tablename set column1 = 'N' where column1 = 'Y'
> She has around 12500 records which will be affected.
> It has taken around 16 hours now for this simple operation. Other
> tables on the same instance do not have any problems for similar
> updates.
> There were about 35 constraints on this table which I disable hoping
>
> to do better this time without any success. Am I missing something
> obvious ? Should I be
> concerned about anything else ?? Any comments, suggestions , ideas will
> be appreciated.
>
> Tapan H Trivedi
> Will be grateful if you could reply to the e-mail address also.
Received on Fri Dec 10 1999 - 12:03:36 CET

Original text of this message