I am getting different execution PATHS for a query execution through:
- SQL Developer> Explain plan
- SQL Developer> Tools> Monitor SQL> Monitored SQL Execution Details (feature of OEM)
The first option shows indexes being used. However, the second option does not cover those indexes during actual execution.
Note: I cannot run these queries in the tool since the PRODUCT I'm using creates and executes them on the fly (I know the queries are exactly same because I can view the queries in the execution monitor). That's why I specifically need to know which result is correct. Or is there a way I can track the specific index usage.