[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Transaction-safe XML-CLOB Update

  • To: Martin Bernauer <m.bernauer@g...>
  • Subject: Re: Transaction-safe XML-CLOB Update
  • From: Jurgen <jurgen.moortgat@o...>
  • Date: Thu, 02 May 2002 16:03:34 +0200
  • Cc: xml-dev@l...
  • Organization: Oracle Corporation
  • References: <19856.1020153835@w...>

clob update

Martin,

triggers are always part of the current transaction (i.e. you can't <commit> or
<rollback> in a trigger). However, if you would like an independent transaction
from your trigger, you can always use an autonomous procedure call (check Oracle
documention on this matter).

Cheers,
Jurgen.

Martin Bernauer wrote:

Martin Bernauer wrote:

> I wonder whether is it possible to update an XML document that is stored in
> a RDBMS in an attribute of type CLOB in a transaction safe way?
>
> Consider the following example: Upon an SQL-Insert into relation R (occuring
> in a transaction t) a trigger is fired (in the same transaction) that
> updates an XML Document stored as an attribute of type CLOB in relation S.
> When t
> is aborted (i.e., a rollback takes place) I do not want the update that the
> trigger performed on the XML document to be persistent.
>
> Is it possible to write the trigger, i.e. the XML document update, in a
> transaction safe way in general (independent of the employed DBMS)? However,
> I
> assume that it is only possible knowing the employed database. Since we use
> Oracle, does anybody know how I can achieve this in Oracle9i?
>
> Any help is highly appreciated.
>
> Kind regards,
> Martin Bernauer
>
> --
> GMX - Die Kommunikationsplattform im Internet.
> http://www.gmx.net
>
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
begin:vcard 
n:Moortgat;Jurgen
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:Jurgen.Moortgat@o...
fn:Jurgen
end:vcard

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.