Reader small image

You're reading from  Advanced Oracle PL/SQL Developer's Guide (Second Edition) - Second Edition

Product typeBook
Published inFeb 2016
Reading LevelIntermediate
Publisher
ISBN-139781785284809
Edition2nd Edition
Languages
Right arrow
Author (1)
Saurabh K. Gupta
Saurabh K. Gupta
author image
Saurabh K. Gupta

Saurabh K. Gupta is a seasoned database technologist with extensive experience in designing high performance and highly available database applications. His technology focus has been centered around Oracle Database architecture, Oracle Cloud platform, Database In-Memory, Database Consolidation, Multitenant, Exadata, Big Data, and Hadoop. He has authored the first edition of this book. He is an active speaker at technical conferences from Oracle Technology Network, IOUG Collaborate'15, AIOUG Sangam, and Tech Days. Connect with him on his twitter handle (or SAURABHKG) or through his technical blog www.sbhoracle. wordpress.com, with comments, suggestions, and feedback regarding this book.
Read more about Saurabh K. Gupta

Right arrow

Practice exercise


  • What are the possible reasons that cause the INVALID_CURSOR exception to occur?

    1. Cursor result set has not been fetched.

    2. The cursor does not have parameters.

    3. The value of the %ROWCOUNT attribute has been referenced after closing the cursor.

    4. Cursor result set has been fetched into a non matching variable.

  • Identify the guidelines to be considered when designing cursors in a PL/SQL block:

    1. Explicit cursors must be used irrespective of the number of records returned by the query.

    2. Cursor FOR loops must be used as it implicitly takes care of OPEN, FETCH, and CLOSE stages.

    3. Cursor data must be fetched as a record.

    4. Use ROWNUM to index the records in the cursor result sets.

  • While processing DMLs as implicit cursors in a PL/SQL executable block, implicit cursor attributes can be used anywhere in the block.

    1. True.

    2. False.

  • From the following options, identify the two correct statements about the REF CURSOR type?

    1. Ref cursors are reference pointers to cursor objects.

    2. REF CURSOR types can be declared in...

lock icon
The rest of the page is locked
Previous PageNext Chapter
You have been reading a chapter from
Advanced Oracle PL/SQL Developer's Guide (Second Edition) - Second Edition
Published in: Feb 2016Publisher: ISBN-13: 9781785284809

Author (1)

author image
Saurabh K. Gupta

Saurabh K. Gupta is a seasoned database technologist with extensive experience in designing high performance and highly available database applications. His technology focus has been centered around Oracle Database architecture, Oracle Cloud platform, Database In-Memory, Database Consolidation, Multitenant, Exadata, Big Data, and Hadoop. He has authored the first edition of this book. He is an active speaker at technical conferences from Oracle Technology Network, IOUG Collaborate'15, AIOUG Sangam, and Tech Days. Connect with him on his twitter handle (or SAURABHKG) or through his technical blog www.sbhoracle. wordpress.com, with comments, suggestions, and feedback regarding this book.
Read more about Saurabh K. Gupta