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: turning off autocommit in mod_plsql? (supporting transaction commit state across mod_plsql calls)

Re: turning off autocommit in mod_plsql? (supporting transaction commit state across mod_plsql calls)

From: Mark C. Stock <mcstockX_at_Xenquery>
Date: Wed, 3 May 2006 12:56:42 -0400
Message-ID: <_YqdnS0p_pVWfcXZnZ2dnUVZ_tidnZ2d@comcast.com>

"Mark C. Stock" <mcstockX_at_Xenquery .com> wrote in message news:5-WdnTu9qp2eJsXZnZ2dneKdnZydnZ2d_at_comcast.com...
:
: "Maxim Demenko" <mdemenko_at_arcor.de> wrote in message
: news:4458b8cf$0$4503$9b4e6d93_at_newsread2.arcor-online.net...
:: Mark C. Stock schrieb:
:: > i remember seeing an article on supporting transaction commit state
: across
:: > multiple mod_plsql calls, but can't seem to find the article
:: >
:: > i know this is possible, since the 'SQL Commands' window in HTMLDB/Apex
:: > allows AUTOCOMMIT to be toggled on and off
:: >
:: > anybody know how mod_plsql supports this, so the same feature can be
:: > implemented in a custom mod_plsql app?
:: >
:: > ++ mcs
:: >
:: >
::
:: What i see in the docs is definitely opposite to your statement,
::
:

http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14337/concept.htm#sthref29
::
:: By tracing a htmldb session i saw that piece however:
::
:: =====================
:: PARSING IN CURSOR #44 len=186 dep=1 uid=55 oct=47 lid=55
:: tim=1119789769169787 hv=758058536 ad='299aedac'
:: begin declare
:: job number;
:: begin
::
:

dbms_job.submit(job,'wwv_flow_sc_transactions.sc_job('||:SESSION||','''||:FLOW_USER||''');');
:: :P1003_JOBID := job;
:: :P1003_AUTOCOMMIT := 'Y';
:: end;
:: end;
:: END OF STMT
:: PARSE
: #44:c=0,e=948,p=0,cr=0,cu=0,mis=1,r=0,dep=1,og=1,tim=1119789769169743
:: =====================
::
::
:: Best regards
::
:: Maxim
:
: I know, when I searched on mod_plsql transactions, I kept coming up with
: "This mechanism does not allow a transaction to span across multiple HTTP
: requests" -- but there was a paper or doc about 3 years ago or from oracle
: that explained how to configure mod_plsql to hndle transactions across
HTTP
: requests. It may also have required some special coding of the procedures,
: though.
:
: I'll post it or a link to it when I find it.
:
: I did notice from V$SESSIONS that it looks like DBMS_JOB is involved for
: Apex's implementation. I wonder if they set up a daemon job of some sort?
:
: ++ mcs
:
:
:

looks like the method i'm remembering relied on mod_ose, which was desupported with 9iR2.

there is a section in the OSE Developer's guide titled 'Writing Stateful PL/SQL Stored Procedures'

interestingly, this reference still occurs in the 10R2 Application Developer's Guide - Fundamentals (Page 11-9):

"An alternative way to main state information is to use Oracle Application Server and its mod_ose module. This approach lets you store state information in package variables that remain available as a user moves around a Web site."

i would hope documentation bug has been filed.

++ mcs Received on Wed May 03 2006 - 11:56:42 CDT

Original text of this message

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