Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: DBMS_UTILITY.FORMAT_ERROR_BACKTRACE issue
Ziad wrote:
> Thanks for the explanation.
> hmm, so any quick solution for this if I need to capture the exact
> line number? I tried to put a begin/end inside the cursor and have
> the exception when others there. That worked and gave me the exact
> line number, but we have over 40 cursors and it's a pain adding a
> begin/end inside each cursor. It's also a pain switching them to open
> loop fetch.
Well unless you have some antique version of Oracle you might want to concentrate on getting rid of those cursor loops. They are slow and inefficient.
Go to Morgan's Library at www.psoug.org and look up Array Processing. A BULK COLLECT with a LIMIT clause and FORALL will improve your performance and exception handling by a substantial margin.
There is a demo of NESTED LOOPs using array processing in the library as well.
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Tue May 01 2007 - 16:03:47 CDT
![]() |
![]() |