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: trying to understand transaction control in pl/sql

Re: trying to understand transaction control in pl/sql

From: ken quirici <kquirici_at_yahoo.com>
Date: 30 Oct 2004 04:32:25 -0700
Message-ID: <eeca902a.0410300332.453887cb@posting.google.com>


Hi Daniel,

Fair enough - I'm relieved at this stage to have at least some concepts relatively firmly in hand!

Thanks for your feedback. Everything helps.

Ken

DA Morgan <damorgan_at_x.washington.edu> wrote in message news:<1099099832.295079_at_yasure>...
> ken quirici wrote:
>
> > DA Morgan <damorgan_at_x.washington.edu> wrote in message news:<1098932765.849260_at_yasure>...
> >
> >>Manfred Peter wrote:
> >>
> >>
> >>>But this is not a good programing style as somebody could call your
> >>>procedure or function and the
> >>>caller can not decide wether to commit the transaction or to rollback it.
> >>
> >>Your advice confuses me completely. Do you understand Oracle
> >>architecture?
> >>
> >>Of what possible relevance is there to another session executing any
> >>code anywhere in the database?
> >
> >
> > Hi Daniel,
> >
> > I took the advice to be: avoid putting commits into called functions
> > or procedures because (unless they're declared as autonomous
> > transactions) they force the entire process to commit, which the
> > calling process may want to decide for itself.
>
> That is correct.
>
> > For example if you loop thru 100,000 rows and for each iteration, call
> > a function that does an update and commit, your 'granularity' of
> > committing is far too small - performance will suffer.
>
> Absolutely.
>
> > Is that not reasonable, or am I misapprehending how Oracle and called
> > subprograms and calling processes work?
> >
> > Thanks.
> >
> > Ken
>
> Very reasonable ... just not what I understood from your first posting.
Received on Sat Oct 30 2004 - 06:32:25 CDT

Original text of this message

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