Index creation
Hi Experts,
We are on 11.1.0.7
Our database size is 300GB
SGA 2GB and PGA_AGGREGATE_LIMIT 1GB. We have 4 core cpu and 8 GB ram.
We have rebuild the table WRI$_OPTSTAT_HISTHEAD_HISTORY and now we are rebuilding its associated indexes with parallel 4. Index size is 32GB. We have attached the execution plan for review.
1) After rebuilding the table and before rebuilding the indexes,should we gather stats for that table OR can we gather stats after rebuilding both the table and its indexes?
2)Index rebuild takes long time ->I think sorts spilled to DISK instead of memory. How can we improve the performance.