Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-01013

Manuel VidigalOct 25 2021 — edited Oct 25 2021

Hi all,
We are upgrading our database from version 12.1.0.2.0 to 19.0.0.0.0 and found a different behaviour in the way ORA-01013 is handled.
We normally catch the ORA-01013 in order to catch timeouts for APIs that are called via TIBCO.
In version 19c, this piece of code doesn't catch the error if execution is broke while in loop:

DECLARE
 e_cancel EXCEPTION;
 PRAGMA EXCEPTION_INIT(e_cancel,
            -01013);
 CURSOR c_objects IS
  SELECT object_name
   FROM dba_objects
  CONNECT BY LEVEL <= 10;
 l_object_name VARCHAR2(100);
BEGIN
 dbms_output.put_line('S
tart of loop');
 FOR x IN c_objects
 LOOP
  l_object_name := x.object_name;
 END LOOP;
 dbms_output.put_line('End of loop');
EXCEPTION
 WHEN e_cancel THEN
  dbms_output.put_line('When e_cancel');
 WHEN OTHERS THEN
  dbms_output.put_line('When others');
END;

But is catched if we break it while executing the sleep API:

DECLARE
 e_cancel EXCEPTION;
 PRAGMA EXCEPTION_INIT(e_cancel,
            -01013);
 CURSOR c_objects IS
  SELECT object_name
   FROM dba_objects
  CONNECT BY LEVEL <= 10;
 l_object_name VARCHAR2(100);
BEGIN
 dbms_output.put_line('Start of loop');
 dbms_session.sleep(60);
 dbms_output.put_line('End of loop');
EXCEPTION
 WHEN e_cancel THEN
  dbms_output.put_line('When e_cancel');
 WHEN OTHERS THEN
  dbms_output.put_line('When others');
END;

Is there any way I can catch the ORA-01013 in order to log the error?
Thanks in advance

Comments

Marc Sewtz-Oracle

Hi - I have not heard of performance issues with tabular forms using IE before. Is this just a plain, standard, wizard-generated tabular form? Perhaps you could re-create a tabular form page that has these issues in a workspace on apex.oracle.com and point me to that example, so I can take a close look at what might be causing this?

Thanks,

Marc

Turlock22

Hi Marc

Thanks for coming back, I tried to recreate the issue on apex.oracle.com but the issue won't replicate in 5.1, my current version is 5.0.4, is there a version of that available for testing?

Yeah the issue is with a completely bog standard MRU table, so I get a hundred row table with about 10 columns (although really doesn't need that many rows at all), include all columns for updating and as I scroll through the page the browser slows down to bits.

It only happens when I scroll over the MRU table, so further down the table there's charts etc, once the MRU's are off the screen everything speeds right up

Hard to show it without a demo, I'll look into upgrading to 5.1 but that probably won't be for a while

Turlock22

Oh and just to confirm I've installed Fiddler to monitor web traffic and when it's going slow there's no traffic going up and down, so it literally just seems to be a rendering issue with the screen in IE, very odd :/

1 - 3

Post Details

Added on Oct 25 2021
5 comments
196 views