Dbms_utility.Format_call_stack Thousands Of Times Slower In 11.2

(Doc ID 1398694.1)

Last updated on MARCH 14, 2017

Applies to:

PL/SQL - Version 11.2.0.2 to 11.2.0.3 [Release 11.2]
Information in this document applies to any platform.
Applies to IBM AIX machines only.
Oracle 11.2.0.2


Symptoms


The function "dbms_utility.format_call_stack" is running very slowly in 11.2.0.2 as compared to 11.1.0.7

=================== WITH 11.1.0.7 ========================

Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
CORE 11.1.0.7.0 Production
TNS for IBM/AIX RISC System/6000: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production

SQL> set timing on
SQL> declare
2 x varchar2(1000);
3 begin
4 for i in 1 .. 10000 loop
5 x := dbms_utility.format_call_stack;
6 end loop;
7 end;
8 /

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.06


=================== WITH 11.2.0.2 ========================
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for IBM/AIX RISC System/6000: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production

SQL> set timing on
SQL> declare
2 x varchar2(1000);
3 begin
4 for i in 1 .. 10000 loop
5 x := dbms_utility.format_call_stack;
6 end loop;
7 end;
8 /

PL/SQL procedure successfully completed.
Elapsed: 00:00:03.31

You may find the performance in 11.2.0.1 or 11.2.0.3. to be little faster but still no way near the performance compared to 11.1.0.7.0.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms