Call for Oracle support & training (800) 766-1884
Free Oracle Tips

Corporate Oracle Training
Custom Oracle Training
Oracle New Features Training
Advanced Oracle DBA Classes
Oracle Tuning Courses
Oracle Tips & Tricks
Oracle Training Links
Oracle Training Links
Oracle Training Links

We are top for USA Oracle Training Clients


Free Oracle Tips


Free Oracle App Server Tips


Oracle support

Oracle training

Oracle tuning


Remote Oracle

Custom Oracle Training

Donald K. Burleson

Oracle Tips


Re-setting PCTUSED based on row length


It is very important that the DBA understand how the row length affects setting the values for PCTFREE and PCTUSED. You want to set PCTFREE such that room is left on each block for row expansion, and you want to set PCTUSED so that newly linked blocks have enough room to accept rows.

Here we see the tradeoff between effective space usage and performance. If you set PCTUSED to a high value, say 80, then a block will quickly become available to accept new rows, but it will not have room for a lot of rows before it becomes logically full again.

Remember the rule for PCTUSED. The lower the value for PCTUSED, the more space will be available on each data block, and subsequent INSERTs will run faster. The downside is that a block must be nearly empty before it becomes eligible to accept new rows.


rem pctused.sql
set heading off;
set pages 9999;
set feedback off;
spool pctused.lst;
column db_block_size new_value blksz noprint
select value db_block_size from v$parameter where name='db_block_size';
define spare_rows = 2;
   ' alter table '||owner||'.'||table_name||
   ' pctused '||least(round(100-((&spare_rows*avg_row_len)/(&blksz/10))),95)||
   ' '||
   ' pctfree '||greatest(round((&spare_rows*avg_row_len)/(&blksz/10)),5)||
avg_row_len > 1
avg_row_len < .5*&blksz
table_name not in
 (select table_name from dba_tab_columns b
 data_type in ('RAW','LONG RAW','BLOB','CLOB','NCLOB')
order by
spool off;






Oracle performance tuning book



Oracle performance tuning software

Oracle performance tuning software
Oracle performance Tuning 10g reference poster
Oracle training in Linux commands
Oracle training Excel
email BC:

Copyright © 1996 -  2014 by Burleson Inc. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation.