Home » SQL & PL/SQL » SQL & PL/SQL » arraysize and PL/SQL (Oracle 11g Solaris)
arraysize and PL/SQL [message #644703] Fri, 13 November 2015 18:35 Go to next message
uman2631
Messages: 16
Registered: November 2011
Junior Member
My DBA wants us to set arraysize=500 to reduce network roundtrips. But most of our code is executing stored procedures. Does setting arraysize in SQL*Plus actually have any affect when executing a stored procedure that does a select?

I.e.
SQLPLUS> set arraysize 500;
SQLPLUS> exec mystoredprocedure;

Are the select statements in mystoredprocedure actually affected by the arraysize parameter?
Re: arraysize and PL/SQL [message #644704 is a reply to message #644703] Fri, 13 November 2015 19:37 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
Explain the differences between SQL, PL/SQL & sqlplus?


What prevents you from running some simple tests of your own to measure how the performance changes for session with & without SET ARRAYSIZE 500?
Re: arraysize and PL/SQL [message #644705 is a reply to message #644703] Sat, 14 November 2015 00:02 Go to previous messageGo to next message
Michel Cadot
Messages: 68645
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Quote:
Are the select statements in mystoredprocedure actually affected by the arraysize parameter?


No, you have to change the code of the procedure to do the same thing than array size (bulk collect...) in PL/SQL.

Re: arraysize and PL/SQL [message #644713 is a reply to message #644703] Sun, 15 November 2015 12:57 Go to previous message
Lalit Kumar B
Messages: 3174
Registered: May 2013
Location: World Wide on the Web
Senior Member
uman2631 wrote on Sat, 14 November 2015 06:05
My DBA wants us to set arraysize=500 to reduce network roundtrips. But most of our code is executing stored procedures. Does setting arraysize in SQL*Plus actually have any affect when executing a stored procedure that does a select?


Nice explanation by Solomon Yakobson about OCI behavior here.
Previous Topic: ORA-12015: cannot create a fast refresh materialized view from a complex query
Next Topic: Stored Proc not inserting all records
Goto Forum:
  


Current Time: Thu Apr 25 04:39:36 CDT 2024