My Oracle Support Banner

OCI and Dynamic SQL via REF Cursors (Doc ID 62595.1)

Last updated on AUGUST 04, 2018

Applies to:

Oracle Database - Enterprise Edition - Version and later
Oracle Database - Personal Edition - Version and later
Oracle Database - Standard Edition - Version and later
Information in this document applies to any platform.
***Checked for relevance on 15-Jan-2014***


The following example shows how a dynamic ref cursor may be opened in PL/SQL using a statement passed from OCI, with the data from the cursor fetched in the OCI program.  The PL/SQL cursor variable is bound to an OCI statement handle.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.