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 schema in sql?

518


What is recursive stored procedure?

607


What is sorting in sql?

503


What are the features of pl sql?

565


Mention what plvcmt and plvrb does in pl/sql?

643






what is the difference between nested subquery and correlated subquery?

550


How many types of triggers exist in pl/sql?

572


What types of commands can be executed in sql*plus?

554


How many triggers can be applied to a table?

602


Difference between global and parameter variables?

1461


what is rdbms? : Sql dba

583


What is right join sql?

539


What are different types of functions in sql?

512


what is bcp? When is it used?

583


What is bitemporal narrowing?

739