HELPLIB.HLB  —  RDML72  Statements  START_TRANSACTION, Format
  (B)0START_TRANSACTION qwqqqqqqqqqqqqqqqqqqqq>qqqqqqqqqqqqqqqqqqwqk
                     mq> ( qq> TRANSACTION_HANDLE var qq> ) qj x
   lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq<qqqqqqqqqqqqqqqqqqqqqqqqqqqj
   mwqqqqqqqqqqqqqqqq>qqqqqqqqqqqqqqqqwqwqqqqqqq>qqqqqqqqwqk
    mq> distributed-transaction-flag qj tq> tx-options qqu x
                                        mq> on-clause qqqj x
   lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
   mqqwqqqqqqqq>qqqqqqqwqq>
      mqq> on-error qqqj

  (B)0distributed-transaction-flag =

  q> DISTRIBUTED_TRANSACTION qwqqqqqqqqqqqqqqqqqqq>qqqqqqqqqqqqqqqwq>
                              m> DISTRIBUTED_TID distributed-tid qj

  (B)0tx-options =

  qqwq> BATCH_UPDATE qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqwq>
    x                                                                x
    mqqwqqqqqqqqqqqqqqqqqwqqwqqqqqqqqqqqwqqwqqqqqqqqqqqqqqqqqwqqqqqk x
       tq> READ_ONLY  qqqu  tq> WAIT qqqu  tq> CONCURRENCY qqu     x x
       mq> READ_WRITE qqqj  mq> NOWAIT qj  mq> CONSISTENCY qqj     x x
                                                                   x x
    lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq<qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj x
    x                                                                x
    mqqqwqq>qqqqqqqqqqqqqqqq>qqqqqqqqqqqqqqqqqqqqqqqwqqqqqqqq>qqqqqk x
        mqq> EVALUATING qqwq> evaluating-clause qqqwj              x x
                          mqqqqqqqq  , <qqqqqqqqqqqj               x x
                                                                   x x
    lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq<qqqqqqqqqqqqqqqqqqqqqqqqqqqqqj x
    x                                                                x
    mqwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqwqqqqqqqqqq>qqqqqqqj
      mqq> RESERVING qqqwq> reserving-clause qqwqqj
                        mqqqqqqqqqqq , <qqqqqqqj

  (B)0on-clause =

  qwq> ON qwq> db-handle qwq> USING qqq> ( qwq> tx-options   qwq> )qwq>
   x       x              x                 mq> DEFAULTS qqqqqj     x
   x       mqqqq  , <qqqqqj                                         x
   x                                                                x
   mqqqqqqqqqqqqqqqqqqqqqqqqq<qqq AND <qqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

  (B)0evaluating-clause =

  qqwqqqqqqqqqqqqqqq>qqqqqqqqwqq constraint qqk
    mq> db-handle qq> . qq> qj                x
                                              x
    lqqqqqqqqqqqqqqq<qqqqqqqqqqqqqqqqqqqqqqqqqj
    x
    mqqqqq>  AT qqqwqq> VERB_TIME qqqwqqqq>
                   mqq> COMMIT_TIME qj

  (B)0reserving-clause =

  qqqwqqwqqqqqqqq>qqqqqqqqqqqqwqqq> relation-name qqqqqqqqqqqwqqk
     x  mq> db-handle qq> . <qj                              x  x
     x                                                       x  x
     mqqqqqqqqqqqqqqqqqqq , <qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj  x
                                                                x
     lqqqqqqqqqqqqqqqqqqqqqq<qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
     x
     mqq> FOR qqwq>qqqqqqqqqqqqqqqwqqqwqq> READ qqqwqqqqqqqqqqqqqqk
                tq> EXCLUSIVE qqqqu   mqq> WRITE qqj              x
                tq> PROTECTED qqqqu                               x
                mq> SHARED qqqqqqqj                               x
                                                                  x
      lqqqqqqqqqqqqqqqqqqqqqq<qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
      x
      mqqqqqqqqqwqqqqqqqqqqqqqqqqqqqqqqqqwqqqqqqqqqqqqqqqqqqqqqqqqq>
                tq> WITH AUTO_LOCKING qqqu
                mq> WITH NOAUTO_LOCKING qj

1  –  Format arguments

    TRANSACTION_HANDLE     The TRANSACTION_HANDLE keyword followed by
    var                    a host language variable. A transaction
                           handle identifies a transaction. If
                           you do not supply a transaction handle
                           explicitly, RDML uses the default
                           transaction handle.

    DISTRIBUTED_           You use this clause to specify the
    TRANSACTION            distributed transaction of which your
                           transaction will be a part.

    DISTRIBUTED_TID        A keyword followed by a host language
    distributed-tid        variable. You use the distributed-
                           tid variable to hold the value of the
                           distributed TID that DECdtm services
                           generate and return to the application.
                           DECdtm services use the TID to distinguish
                           the databases involved in a particular
                           distributed transaction.

    tx-options             Transaction options. Allow you to specify
                           the type of transaction you want, when you
                           want constraints to be evaluated and which
                           relations you intend to access.

    on-clause              Allows you to specify which database you
                           intend to access.

                           If you do not specify the ON clause, the
                           default Oracle Rdb behavior is to attempt
                           to start a transaction on all declared
                           databases (even if the RESERVING clause of
                           the START_TRANSACTION statement explicitly
                           specifies only tables in a particular
                           database).

    DEFAULTS               Allows you to specify that you want to
                           accept the default transaction options.

    on-error               The ON ERROR clause. Specifies
                           host language statement(s) to be
                           performed if an error occurs during the
                           START_TRANSACTION operation. For more
                           information see the entry on ON ERROR.

    BATCH_UPDATE
    READ_ONLY
    READ_WRITE             Declares what you intend to do with the
                           transaction as a whole. READ_ONLY is the
                           default.

    WAIT
    NOWAIT                 Specifies what your transaction will do
                           if it needs resources that are locked by
                           another transaction:

                           o  WAIT is the default. It causes your
                              transaction to wait until the necessary
                              recourses are released or until Oracle Rdb
                              detects a deadlock.

                           o  With NOWAIT, Oracle Rdb will return an
                              error if the resources you need are not
                              immediately available, thereby forcing
                              you to roll back your transaction.

    CONCURRENCY
    CONSISTENCY            These options specify the consistency mode
                           of the transaction:

                           o  CONCURRENCY is equivalent to SQL
                              ISOLATION LEVEL READ COMMITTED
                              (formerly called CONSISTENCY LEVEL
                              2).

                           o  CONSISTENCY is the default. Consistency
                              guarantees that when all transactions
                              complete by committing or rolling back,
                              the effect on the database is the
                              same as if all transactions were run
                              sequentially.

    evaluating-clause      Allows you to specify the point at which
                           the named constraint(s) are evaluated. If
                           you specify VERB_TIME, they are evaluated
                           when the data manipulation statement is
                           issued. If you specify COMMIT_TIME, they
                           are evaluated when the COMMIT statement
                           executes. The evaluating clause is allowed
                           syntactically, but is ignored, with
                           READ_ONLY transactions.

    db-handle              Database handle. A host variable used
                           to refer to a specific database you have
                           invoked. For more information see the
                           entry on the Database Handle clause.

    constraint             The name of an Oracle Rdb constraint.

    VERB_TIME
    COMMIT_TIME            VERB_TIME states when the data
                           manipulation statement is issued. COMMIT_
                           TIME reflects when the COMMIT statement
                           executes. VERB_TIME is the default.

    reserving-clause       Allows you to specify the relations you
                           plan to use and attempts to lock those
                           relations for your access. If you use the
                           WITH AUTO_LOCKING option (the default),
                           constraints and triggers defined on the
                           reserved relations will be able to access
                           additional relations that do not appear
                           in the list of reserved relations. The
                           WITH_AUTOLOCKING option will not work
                           for other relations not referenced in the
                           reserving clause.

    relation-name          The name of a relation in the database.

    EXCLUSIVE
    PROTECTED
    SHARED                 The Oracle Rdb share modes. The keyword
                           you choose determines what operations
                           you allow others to perform on the
                           relations you are reserving. For READ_ONLY
                           transactions, EXCLUSIVE and PROTECTED are
                           syntactically allowed, but are ignored.
                           SHARED is the default.

    READ
    WRITE                  Declares what you intend to do with the
                           relations you have reserved:

                           o  READ reserves the specified relation(s)
                              for read-only access

                           o  WRITE reserves the specified
                              relation(s) for read and write access

    WITH AUTO_LOCKING
    WITH NOAUTO_LOCKING    Oracle Rdb automatically locks any relations
                           referenced within a transaction unless you
                           specify the optional WITH NOAUTO_LOCKING
                           clause. WITH AUTO_LOCKING is the default.
Close Help