db2 connect to stl3
source ~db2leduc/cshrc.V11
db2 "query" (ex: db "select count(*) as card from stl.purchase")
db2expln -d stl -o output.plan -z ; -g -f some_query.sql
add tag -g before tag -f to show a tree plan summary
query.sql files must end with ;