Oracle Error PLS-00316: PL/SQL TABLEs must use a single index

Oracle Error Message

PLS-00316: PL/SQL TABLEs must use a single index

Reason for the Error

In the INDEX BY clause of a PL/SQL table declaration, a composite primary key was specified. PL/SQL tables must have a simple, unnamed primary key of a binary integer or VARCHAR2 type.

Solution

Use one of the supported key types in the INDEX BY clause.