What is the use of cursor ? how cursor allocate context area for executing the sql statement?

Answer Posted / kamal

Cursor is a named private SQL area from where information
can be accessed. Cursors are required to process rows
individually for queries returning multiple rows.


Within the library cache, parsed SQL is stored as cursors.
The cursors are indexed by handlers referencing memory
locations within which parsed statements and information
relating to processing are stored. A context area is a
shared area of memory that stores the environment and
session variables for an instruction. Buffer caches store
active data and use a cache replacement scheme storing the
most recently used data.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a pragma statement?

955


What does over partition by mean in sql?

707


Can we use having without group by in sql?

732


How do you truncate?

660


What is sql rowcount?

726






What are the parameter modes supported by pl/sql?

730


What are basic techniques of indexing?

1069


What are analytic functions in sql?

742


What will you get by the cursor attribute sql%rowcount?

757


What is the max nvarchar size?

678


how to present a past time in hours, minutes and seconds? : Sql dba

739


What is the difference between delete and truncate commands?

689


Can you call pl/sql package functions from within a fast formula?

769


What is fmtonly in sql?

722


Is there a way to automate sql execution from the command-line, batch job or shell script?

746