Re: Rollback Segment Trouble
From: David Pape <pape_at_plato.chemietechnik.uni-dortmund.de>
Date: 13 May 1994 10:14:08 GMT
Message-ID: <2qvjtg$g20_at_unidoct.Chemietechnik.Uni-Dortmund.DE>
Date: 13 May 1994 10:14:08 GMT
Message-ID: <2qvjtg$g20_at_unidoct.Chemietechnik.Uni-Dortmund.DE>
carmen_at_verdi.iisd.sra.com (Carmen Iannacone) writes:
>Hi,
> I've gotten the following errors during large deletes
> in SQL*Plus. I've checked the Server Codes and Messages
> manual, but I'm still somewhat unsure as to how to proceed.
>ORA-01562: failed to extend rollback segment (id = 1)
>ORA-01628: max # extents (121) reached for rollback segment MY_ROLLBACK
> Notably, why is "max # extents" 121? Should I be doing
> some house keeping to prevent this? I haven't gotten
> through the FAQ, so if you could direct me to a portion
> of it which is applicable, I'd appreciate it.
DECLARE
num_deleted integer;
BEGIN
num_deleted := 1; total_deleted := 0; WHILE num_deleted > 0 LOOP DELETE from my_tablename WHERE (my where clause) AND ROWNUM < 500; num_deleted := SQL%ROWCOUNT; COMMIT; END LOOP;
END; /
-- David Pape | "The people who own the country | pape_at_plato.Chemietechnik.Uni-Dortmund.DE | ought to govern it" | Dortmund, Germany | - John Jay | tel: 49 231 7552682 | (signer of the U.S. Constitution) |Received on Fri May 13 1994 - 12:14:08 CEST