Tune SQL_ID by finding its Bind variables
Hi,
On Oracle 12.1
While examining user performance complaints we noticed that while a specific SQL_ID is usually being executed within a few seconds, sometimes it takes long minutes. To further analyze this we noticed this query has few children and we managed to find specific SQL_EXEC_ID that were running too long.
What we did not manage to find is how to match a specific sql_exec_id to its BIND variables.
We used these two tables for analysis:
1. dba_hist_active_sess_history
2. dba_hist_sqlbind
Is there a way to join and find each execution and its bind variables?