This is useful if you are testing the optimizer in a test environment that is considerably less powerful than the production environment. eg, the sortheap in the production system might have 80000 pages, but your tiny test machine might max out at 2000. What do you do then? You can use db2fopt to fake it:
db2fopt <database> update opt_sortheap 80000
Easy.
It is a bit unfortunate that only these 4 are available to be 'faked' as of this writing ( for DB2 LUW v10)
- opt_buffpage
- opt_sortheap
- opt_locklist
- opt_maxlocks