Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: job is done, but data does not show up in table for 1 hour

Re: job is done, but data does not show up in table for 1 hour

From: Frank van Bortel <frank.van.bortel_at_gmail.com>
Date: Thu, 14 Jul 2005 21:01:40 +0200
Message-ID: <db6cf9$obt$1@news1.zwoll1.ov.home.nl>


utefan001_at_gmail.com wrote:
> /* Transfer Material Costs */
> M_COMMIT_CNT := 0;
> FOR mat_rec IN material LOOP
> /* Attempt to Locate Current Record */
...
> /* Check for Commit */
> IF M_COMMIT_CNT = 100 THEN
> COMMIT;
> M_COMMIT_CNT := 0;
> END IF;
Delete the check for commit bit! You're committing inside a loop, and waiting for ORA-01555 to happen.
>
> END LOOP;
> INSERT INTO ITS_JC_TIMELOG VALUES(410,sysdate);
> COMMIT;
Make that an autonomous transaction.

-- 
Regards,
Frank van Bortel
Received on Thu Jul 14 2005 - 14:01:40 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US