The following is the SQL-02142 error message, you can learn the cause and solution of the Oracle SQL error.
SQL-02142: Collection is NULL
Cause: The collection referenced in an EXEC SQL COLLECTION statement is null.
Solution: Check the status of the associated indicator variable prior to executing an EXEC SQL COLLECTION statement.
Please wait for the update…