| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.misc -> DBMS_ERRLOG will not compile within a cursor loop
DBMS_ERRLOG will not compile within a cursor loop. Depending upon
where I put the
semicolons, I get these types of error messages.
PLS-00103: Encountered the symbol "ERRORS" when expecting one of the
following: := . ( @ % ;
or
(S6019) Expecting: ; RETURN RETURNING
Any ideas on how I re-write to code below to work?
I can make it work with a regular non-looping insert statement from sqlPlus or PL/SQL
Thanks!
Alex Glaros
FOR c1_rec IN c1_accu_actions LOOP
INSERT INTO ACCUSATION_ACTIONS
( id,
acn_id,
VALUES ( c1_rec.seq,
c1_rec.id,
c1_rec.case_type,
c1_rec.action_code,
c1_rec.agency,
c1_rec.action_date,
c1_rec.action_desc,
LOG ERRORS INTO ACCUS_ACTIONS_ERR_LOG REJECT LIMIT
100;
v_recount := 0;
COMMIT;
END IF;
END LOOP;
![]() |
![]() |