Home » RDBMS Server » Server Administration » How To Calculate/Compute Space Size To Increase for the Undo Tabspace (Oracle Database 19c Enterprise Edition Release 19.0.0.0.0)
How To Calculate/Compute Space Size To Increase for the Undo Tabspace [message #690250] Fri, 24 January 2025 14:34 Go to next message
wtolentino
Messages: 422
Registered: March 2005
Senior Member
SQL> select tablespace_name, sum(bytes) free_space from dba_free_space where tablespace_name like 'UNDO%' group by tablespace_name;

TABLESPACE_NAME                                FREE_SPACE
---------------------------------------- ----------------
UNDOTBS1                                      16520052736
In a given table there's about 223,782,314 rows. About 37,194,314 rows will be deleted. I was advised by some of my dba colleagues to somehow increase the size of the UNDO to lessen the burden. Is there a way to calculate or compute the size to increase or added?

Thanks.

Thanks in advance.

[Updated on: Fri, 24 January 2025 14:41]

Report message to a moderator

Re: How To Calculate/Compute Space Size To Increase for the Undo Tabspace [message #690251 is a reply to message #690250] Fri, 24 January 2025 16:30 Go to previous messageGo to next message
Barbara Boehmer
Messages: 9104
Registered: November 2002
Location: California, USA
Senior Member
I would think it would be more convenient and efficient to use AUTOEXTEND.
Re: How To Calculate/Compute Space Size To Increase for the Undo Tabspace [message #690252 is a reply to message #690250] Sat, 25 January 2025 00:56 Go to previous messageGo to next message
John Watson
Messages: 8964
Registered: January 2010
Location: Global Village
Senior Member
If you ALTER SESSION ENABLE RESUMABLE before starting the delete, then if you do run out of undo space the deletion will just wait until you add more space.
Re: How To Calculate/Compute Space Size To Increase for the Undo Tabspace [message #690255 is a reply to message #690252] Mon, 27 January 2025 03:55 Go to previous message
cookiemonster
Messages: 13963
Registered: September 2008
Location: Rainy Manchester
Senior Member
Do you need the delete to run as fast as possible?
If not you may be better off deleting the rows in chunks, say 1m at a time.
Previous Topic: How to find server process/scripts thats locking an account
Goto Forum:
  


Current Time: Sun Feb 02 08:38:38 CST 2025