Preparation 
  Connect to the desired database
    db2 connect to <dbname>
  Create the utility stored procedures
    db2 -td@ -f db2perf_utils.db2
  Create the db2perf_plans stored procedure
    db2 -td@ -f db2perf_plans.db2
  Ensure the explain tables exist and are populated 
Use
  Connect to the desired database 
    db2 connect to <dbname>
  Call the stored procedure
    db2 call db2perf_plans


For more information, see db2perf.pdf
