Use SAP Control Center to collect diagnostic data to send to SAP Technical Support to perform detailed analyses in optimizing SQL queries and improving performance.
Register and authenticate the agent to enable the collection of diagnostic data.
Make sure Job Scheduler is installed, enabled, and running. You must also be logged in to Job Scheduler with a login that has sa_role permissions and either js_user_role or js_admin_role before you collect optimizer diagnostic data; otherwise, you see an error message on the Introduction page, and the Next button becomes disabled.
SAP Control Center obtains diagnostic data to optimize complex SQL queries by executing the sp_opt_querystats system procedure. See sp_opt_querystats in Reference Manual: Procedures.