Trying to get the actual data that cause an exception
问题 I have a procedure that takes an input of 2 Associative arrays and after some basic count checks, does a FORALL statement to insert the data into a table. Here is the procedure: PROCEDURE INSERT_RECS(P_PROD_TYP IN prod_type, P_PROD_ADD_PK IN prod_pk_type) IS uniq_key EXCEPTION; PRAGMA EXCEPTION_INIT(uniq_key, -00001); loc_cnt NUMBER; BEGIN IF P_PROD_TYP.COUNT = P_PROD_ADD_PK.COUNT THEN FORALL i IN P_PROD_TYP.FIRST .. P_PROD_TYP.LAST INSERT INTO product_table ( pk, id, created_by, created_on,