troubleshooting Question

Limit SQL result set based on SIZE

Avatar of Julie Kurpa
Julie KurpaFlag for United States of America asked on
SQLDatabasesOracle Database
46 Comments1 Solution63 ViewsLast Modified:
I'm an oracle dba and have been asked by developers to help them limit the result set size produced by a particular procedure within a Package.

The package was coded by a vendor who is no longer in the picture and the developers have limited understanding of how things all work together. It's all very complicated and nobody wants to be the one who "touched" it and broke it.

The problem is intermittent where the result set of the package is over the size limit that the 3rd party application can accept (4MB).  

I suppose the package query can be modified to limit the row count but before recommending that route, I'd like to know if there's a way to do it at a database level?

This is Oracle 11g Enterprise (yes we are working to migrate to Oracle 19c but can't cutover yet).  

I've been searching and cannot find any solutions other than modifying the package sql to limit the rows.  

Any suggestions?
Log in to continue reading
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform for $9.99/mo
View membership options
Unlock 1 Answer and 46 Comments.
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
The Value of Experts Exchange in My Daily IT Life

Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>


Owner of Outages.IO
Phoenix, Arizona, United States
Member Since 2016
Join a full scale community that combines the best parts of other tools into one platform.
Unlock 1 Answer and 46 Comments.
View membership options
“All of life is about relationships, and EE has made a virtual community a real community. It lifts everyone's boat.”
William Peck

Member since 2004