SQL Performance (MOSC)

MOSC Banner

Tune SQL_ID by finding its Bind variables

edited Sep 13, 2017 5:00AM in SQL Performance (MOSC) 1 commentAnswered

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?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center