Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: isolation level serializable
xhoster_at_gmail.com wrote:
> Laurenz Albe <invite_at_spam.to.invalid> wrote: >> Chuck <skilover_nospam_at_bluebottle.com> wrote:
> > I don't like that. Each transaction should commit or rollback itself when > it is done. I don't think it should be committed implicitly by the start > of some other transaction.
That's precisely what I am doing. The commit is only there because prior to bulk of the inserts is another insert into a log table. It just says "I'm at such and such point in the procedure". Prior to that was a bunch of truncates which do implicit comiits. If I don't commit at this point, the "set transaction" will fail because it must be the first command of the transaction.
>>> Then I do another commit at the end of the last insert. There are no
>>> commits, rollbacks, DDL, or any other SQL between the inserts, however
>>> I still get FK violations at the end when I try enable the constraints.
>>> Why?
> > To know why, it would help to know what. What is the problem that is > causing the violation?
As stated in the OP, it is a foreign key constraint violation on one the destination tables. A child row has no parent.
> Are you absolutely sure that the corresponding > constraint is in place and enabled and set to validate on the source table?
Yes. Absolutely.
> Is your process the only one that writes into the s1 schema or can other > people be messing around with it at the same time as you are?
My session is the only one that has access to the s1 schema. Received on Wed Mar 21 2007 - 17:00:29 CDT
![]() |
![]() |