Search code examples
db2ibm-data-studio

How to view explain plan for a DB2 Stored Procedure in IBM DataStudio?


How to view the access plan for the entire SP along with the cost in IBM DataStudio, I am able to view it for a single query but when I do the same for a Stored Procedure it throws an error.


Solution

  • Found the answer, using db2expln executable from the command window, I was able to generate the execution plan for the stored procedures.