Preparation 
  Connect to the desired database
    db2 connect to <dbname>
  Create the db2perf_quiet_drop utility stored procedure
    db2 -td@ -f db2perf_utils.db2
  Create the db2perf_plandiff stored procedures
    db2 -td@ -f db2perf_plandiff.db2
  Ensure the explain tables exist and are populated 
Use
  Connect to the desired database 
    db2 connect to <dbname>
  Call the stored procedure to compare all plans with matching SQL & matching patterns of requester, schema, source name & section
    db2 call db2perf_plandiff( <requester>, <schema>, <source_name>, <section>)


For more information, see db2perf.pdf
