Q
Problem solve Get help with specific problems with your technologies, process and projects.

Where the result sets of queries are stored

I'd like to ask a question, which is interesting for me for a long time. Let's assume I have made a SELECT. the result set of this query contains many records. Then I made one fetch. Where in Oracle are the resting records of a result set stored?

All result sets of queries are stored in CURSORs defined either implicitly (by Oracle) or explicitly (by you). A cursor is really just a pointer (name) to an area in memory (the SGA or System Global Area). When a select statement runs, the rows that satisfy the query are placed into a named area of memory and the pointer is initially set to just above the first record. When you fetch a record, the pointer moves to the next record and retrieves it until it returns all the rows from the named memory area.

For More Information

  • What do you think about this answer? E-mail the editors at editor@searchDatabase.com with your feedback.
  • The Best Oracle Web Links: tips, tutorials, scripts, and more.
  • Have an Oracle or SQL tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize. Submit your tip today!
  • Ask your technical Oracle and SQL questions -- or help out your peers by answering them -- in our live discussion forums.
  • Ask the Experts yourself: Our SQL, database design, Oracle, SQL Server, DB2, metadata, object-oriented and data warehousing gurus are waiting to answer your toughest questions.

Dig Deeper on Oracle and SQL

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close