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

Home -> Community -> Usenet -> c.d.o.tools -> PL/SQL 8.0.5 - A way to find if a transaction is allready running?

PL/SQL 8.0.5 - A way to find if a transaction is allready running?

From: Rui Rosa Mendes <rrm_at_midialog.pt>
Date: Thu, 14 Dec 2000 12:32:32 GMT
Message-ID: <A53_5.289$bl4.3939@nreader1.kpnqwest.net>

Can I find if a transaction is allready initiated?

Ex:
 In a hight level language I begin a transaction ...

PSEUDO-CODE
 BeginTransaction(sqlHandler);

     ExecuteQuery('Update .....',  sqlHandler);
     ExecProc('package.InsertHeader(iId)', sqlHandler);

Commit(sqlHandler);

PL/SQL
Create or Replace Package

InsertHeader(iId integer)
begin

    Insert into table
     (...)
    values
    (...)

   if not TRANSACTION RUNNING (??) then

        commit
  end if;

end; Received on Thu Dec 14 2000 - 06:32:32 CST

Original text of this message

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