Oracle Troubleshooting: How to read Oracle ERRORSTACK output?!
February 14th, 2010
I have written the first article to the troubleshooting section of my new website tech.E2SN.com:
It’s about a very valuable Oracle troubleshooting tool -> ERRORSTACK trace.
I cover 4 frequently asked questions there:
- Reading the current executing SQL statement text from errorstack trace
- Reading the current executing PL/SQL package and PL/SQL source code line number from errorstack trace
- Reading the current bind variable values from errostack trace
- Identifying how much private (UGA) memory a cursor is using
You can read it here:
By the way, if you like my new website, feel free to link to it !!! ;-)
Administration, Cool stuff, Internals, Oracle, Troubleshooting, Tuning





Trackbacks
Comments
Hi Tanel,
great article. Just a small typo: it´s v$sql_bind_capture instead of v$sql_plan_capture.
Looking forward to reading more great stuff on e2sn…
Regards,
Martin
@Martin Decker
Hi Martin,
Thanks, the typo is fixed now.
Hi Tanel!
Thanks for a very interesting read. I found another typo: x$klgob should be replaced with x$kglob.
Regards,
Chris
@Chris Neumueller
Hi Chris, thanks, typo fixed!
Hi Tanel, Do you have a RSS feed setup for the new website ??
@Maxx
Hi Maxx,
I’m still working on the best solution, I need to test out few things before I can publish this. Basically people need to join the site with their google account… stay tuned!:)
Are there any occassions where the “Current SQL Statement for this Session” in the trace file will be different than whatever is being found from the PL/SQL code (if the sql is from a pl/sql program) which you demonstrated in “Reading the current executing PL/SQL package and PL/SQL source code line number from errorstack trace” by querying DBA_SOURCE?
If yes, would you please let us know.
Thanks,
Giridhar Kodakalla.
@Giridhar Kodakalla
Well, if the SQL you fire from your PL/SQL causes some other SQL to fire recursively (triggers, auditing, recursive data dictionary queries) then you may see other SQL pop up there if you take the errorstack dump when the recursive SQL happens to be executing.