Quote Originally Posted by dbbyleo
Are you sure??
I was until now, but now you made me realised I was wrong.

You are right, DBMS_UTILITY.FORMAT_ERROR_STACK is pretty useless in this regard, adn SQL*Plus is obviously very far from simply calling this function when displaying the error stack. My appologies for the misleading information....

But if you are on 10g, then obviously there is another function in DBMS_UTILITY that can fulfil your needs: FORMAT_ERROR_BACKTRACE. Check the documentation for how it can be used and what it does.