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

Home -> Community -> Mailing Lists -> Oracle-L -> SET TRANSACTION statements within PL/SQL?

SET TRANSACTION statements within PL/SQL?

From: Mark Richard <mrichard_at_transurban.com.au>
Date: Wed, 25 Aug 2004 14:07:00 +1000
Message-ID: <OF57170D6F.AD0188A8-ONCA256EFB.001607E7@transurban.com.au>

Dear List,

I am working on some large data conversion scripts and we would like to assign specific Rollback Segments to the queries. I have done some testing in standard SQL using "set transaction use rollback segment blah" and the results have been positive.

Typically, however, we write most conversion scripts in PL/SQL to provide a standard mechanism for exception handling and also to deal nicely with various tests / reporting. My concern is how to combine the set transaction statement with PL/SQL. The PL/SQL blocks are simply anonymous blocks within a script - Can I put a "set transaction" statement before the DECLARE line or does it need to be within the PL/SQL itself?

Also, sometimes the queries are just placed within the PL/SQL and other times EXECUTE IMMEDIATE is used (particularly when the same PL/SQL block first adds a new column to be populated) - I at least have the freedom to use either approach if it matters. Does this confuse the issue at all? Unfortunately I'm not clear on how the parsing of PL/SQL and calling of EXECUTE IMMEDIATE fit amongst a "set transaction" statement. Suggestions anyone?

Thanks in advance,

Mark.

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<---->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Privileged/Confidential information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such a case, you should destroy this message and kindly notify the sender by reply e-mail or by telephone on (03) 9612-6999 or (61) 3 9612-6999. Please advise immediately if you or your employer does not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Transurban Infrastructure Developments Limited and CityLink Melbourne Limited shall be understood as neither given nor endorsed by them.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<---->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Tue Aug 24 2004 - 23:10:18 CDT

Original text of this message

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