Put your query on a file query.sql like this:
set current explain mode yes;
your query here;
set current explain mode no;
Then run:
db2batch -d DBNAME -f query.sql -i complete -ISO CS | tee /tmp/output_batch.txt
db2exfmt -d DBNAME -1 -o /tmp/output_exfmt.txt
This blog covers different aspects around software development and test. There are also general information useful for who needs to test performances and needs to analyze bottlenecks on application servers and databases. Disclaimer: test before you implement any advice, no warranty is provided. Before use the software mentioned in this blog read and understand all licenses agreements. Use of the information contained in this blog is under your own responsibility.
giovedì 28 aprile 2016
Iscriviti a:
Commenti sul post (Atom)
Nessun commento:
Posta un commento