Collection, Iterator and Table Functions in PL/SQL and OCI (Doc ID 47957.1)

Last updated on JULY 05, 2017

Applies to:

Oracle Server - Enterprise Edition - Version: 8.0.3.0 to 11.1.0.6
Information in this document applies to any platform.
***Checked for relevance on 28-Jan-2010***

Goal

A VARRAY or TABLE is considered a single unit as far as binds and defines are concerned, and OCI will just return an opaque pointer to a collection. It is up to you to navigate through a collection, updating and inserting as necessary.

There are three sets of routines to support navigation :

It is possible to manipulate collections by just using the OCIColl routines, but this would be impractical for TABLES with many 'holes', or deleted elements.

The basic argument lists are documented in the OCI8 manuals. The following gives a broader overview of how to use the collection routines.

Solution

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 hundreds of Community platforms