Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase buffer size in Oracle SQL Developer to view all records?

How to increase buffer size in Oracle SQL Developer to view all records (there seems to be a certain limit set at default)? Any screen shots and/or tips will be very helpful.

like image 456
PacificNW_Lover Avatar asked Jan 12 '12 21:01

PacificNW_Lover


People also ask

What is buffer Size in Oracle?

The default buffer size is 20000 bytes. The minimum size is 2000 bytes and the maximum is unlimited.

How do I fix buffer overflow in Oracle?

Starting with Oracle release 10g, it is possible to use the following unlimited buffer settings: PL/SQL: DBMS_OUTPUT. ENABLE (buffer_size => NULL); SQL*Plus: set serveroutput on size unlimited.


2 Answers

https://forums.oracle.com/forums/thread.jspa?threadID=447344

The pertinent section reads:

There's no setting to fetch all records. You wouldn't like SQL Developer to fetch for minutes on big tables anyway. If, for 1 specific table, you want to fetch all records, you can do Control-End in the results pane to go to the last record. You could time the fetching time yourself, but that will vary on the network speed and congestion, the program (SQL*Plus will be quicker than SQL Dev because it's more simple), etc.

There is also a button on the toolbar which is a "Fetch All" button.

FWIW Be careful retrieving all records, for a very large recordset it could cause you to have all sorts of memory issues etc.

As far as I know, SQL Developer uses JDBC behind the scenes to fetch the records and the limit is set by the JDBC setMaxRows() procedure, if you could alter this (it would prob be unsupported) then you might be able to change the SQL Developer behaviour.

like image 196
Ollie Avatar answered Sep 18 '22 12:09

Ollie


Select Tools > Preferences > Database / Advanced

There is an input field for Sql Array Fetch Size but it only allows setting a max of 500 rows.

like image 27
Don Avatar answered Sep 17 '22 12:09

Don