DBA > Job Interview Questions > Oracle DBA Interview questions and Answers

How do you open and close a cursor variable. Why

More DBA job interview questions and answers at http://dba.fyicenter.com/Interview-Questions/

(Continued from previous question...)

How do you open and close a cursor variable. Why it is required?

Using OPEN cursor_name and CLOSE cursor_name commands. The cursor must be opened before using it in order to fetch the result set of the query it is associated with. The cursor needs to be closed so as to release resources earlier than end of transaction, or to free up the cursor variable to be opened again.

(Continued on next question...)

Other Job Interview Questions