Skip to content
September 23, 2016 / doganay

OPTIMAL UNDO SIZE ACCORDING TO YOUR undo_retention

select round(
(select value FROM v$parameter WHERE name='undo_retention')
*
(SELECT MAX(undoblks/((end_time-begin_time)*3600*24)) as UNDO_BLOCK_PER_SECOND FROM v$undostat)
*
(SELECT TO_NUMBER(value) as DB_BLOCK_SIZE FROM v$parameter WHERE name = 'db_block_size')
/1024/1024/1024) "OPTIMAL UNDO SIZE(GB)" from dual;
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: