Gathering DB stats

cat > stats.sql
RUNSTATS ON TABLE schema.table WITH DISTRIBUTION AND INDEXES ALL ALLOW WRITE ACCESS;

db2 -tvf stats.sql

No comments: