I have the following runstats command:
RUNSTATS ON TABLE MYSCHEMA.TEST_PRODUCT ON ALL COLUMNS WITH DISTRIBUTION ON ALL COLUMNS AND DETAILED INDEXES ALL ALLOW WRITE ACCESS
I want to run it from inside a java program which is part of a spring project.
How to do it ?
The db2 passwords for connecting to database are encrypted.
Thanks for reading.
Because the problem is not clear, I only want to point you to this excample
http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/ad/samples/jdbc/s-TbRunstats-java.htm
It is an example you find in the IBM DB Reference using Runstats.