Tuesday, September 29, 2009

Performance tuning sql loader .ctl files

For performance tuning for sql loader .ctl files
=================================================


increase the "bind array" for SQL*Loader tool.

There are some more steps we need to follow to get well tuned result.

Initially we need to estimate the RBS requirement (Rollback Segment).
1) determine size of a single row.

2) determine size of a bind array

memory= No.of Rows * rowsoze
bindArraysize=min(memory,bindsize)

3) estimate the size of RBS size required.

rollbacksegment size=1.3*bindarraysize.

When estimating the size of rollback segment size ,I recommend to add 30%
for overhead to the bindarray size.

Since SQL *Loader cant select the RBS for its own, we need to
make offline other rollback segments offline that are small as per the
calculation we have made.

another tips are

1)drop the indexes of the table you are loading data, then recreate
the same after loading.
(please dont drop indexes associated with primary and unique key constraints).

2)Use larger redolog files.

3)fixed width input data file faster than .csv file.

NB: Please perform all these steps only with the help of a DBA.

==============================================================

Entry made to the .ctl file is

OPTIONS (READSIZE=20971520, BINDSIZE=20971520, ROWS=20000)
==============================================================

No comments: