-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What the heck is the SQL Execution ID – SQL_EXEC_ID? | Tanel Poder Consulting #19
Comments
So does each instance have separate counters per SQL_ID for all instances? Same SQL_ID can be executed locally or from remote QC. |
Each instance has its own separate counter, but a QC running on instance 1 would propagate its "instance 1 SQL exec ID" to any PX slaves running on other instances. So you could see instance 1 SQL Exec IDs in ASH samples taken in instances 2,3,4 - IF inter-instance PX is enabled. Don't remember whether the PX slaves used by GV$ queries do the same, probably yes. |
Yeah, I get it now. What it means is that you can't use ASH sql_exec_ids to estimate count of local executions of sub-second SQL from remote QC |
if you are selecting 10 different SQLs within Cursor than SQL_EXEC_ID will remain same till cursor closed. |
If you mean that executing the same already open cursor multiple times - the SQL_EXEC_ID will increase every execution, even if the cursor is kept open. Even more, the SQL_EXEC_ID can even increase for a single execution for some statements, due to write consistency retry, as I have demoed here: https://youtu.be/jSvk0lxPjzY |
It's probably worth specifying the scope too, I'm talking about the current SQL_EXEC_ID that you'd see in V$SESSION, V$SQL_MONITOR and ASH. There's SQL_EXEC_ID also in V$OPEN_CURSOR, that possibly shows what was the SQL_EXEC_ID when the cursor was opened, but I haven't verified that. |
What the heck is the SQL Execution ID – SQL_EXEC_ID? | Tanel Poder Consulting
Ok, I think it’s time to write another blog entry. I’ve been traveling and dealing with jetlag from 10-hour time difference, then traveling some more, spoken at conferences, drank beer, had fun, then traveled some more, trained customers, hacked some Exadatas and now I’m back home.
Anyway, do you know what is the SQL_EXEC_ID in V$SESSION and ASH views?
Oh yeah, it’s the “SQL Execution ID” just like the documentation says … all clear. - Linux, Oracle, SQL performance tuning and troubleshooting - consulting & training.
https://tanelpoder.com/2011/10/24/what-the-heck-is-the-sql-execution-id-sql_exec_id/
The text was updated successfully, but these errors were encountered: