Collection, Iterator and Table Functions in PL/SQL and OCI
Last updated on JULY 05, 2017
Applies to:Oracle Server - Enterprise Edition - Version: 126.96.36.199 to 188.8.131.52
Information in this document applies to any platform.
***Checked for relevance on 28-Jan-2010***
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 :
- OCIColl... General Collection routines
- OCIIter... Iterator routines.
- OCITable... Routines to handle additional properties of TABLE collections.
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.
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