Post
But it became clear that more than just a single SQL query is needed, for example you wouldn't see a filter predicate on a table if CBO ended up doing a full scan and just throwing rows away much higher up in some hash join. I was going to write a Python tool or something...
0 reposts0 likes
... but now it looks like I'll just feed the relevant info into a language model instead. Let's see how it goes! Nevertheless, people have found this tool already useful in the past! backendtales.blogspot.com/2023/02/sant...
I first used "ash_index_helper.sql" that queried v$ash and v$sql_plan, etc, but since modern 19.x something databases store access_predicates/filter_predicates in AWR too, I cloned it to "dash_index_helper.sql" so you can go back in AWR: github.com/tanelpoder/t...