[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

[sqr-users] Réf. : [sqr-users] Does OR-54 Raise an error in aBegin-SQL Block ??





The record is looked.
So SQR will wait for the unlock and will not call the "ORA_54_Fehler"
procedure ...
This is the normal behaviour ...

What do you want to do exactly ? To test your "ORA_54_Fehler" procedure or
to catch timeout ?

Regards,
Thai






"Steinkellner, Michael" <michael.steinkellner@transflow.com>@sqrug.org le
15/11/2002 14:53:55

Veuillez répondre à sqr-users@sqrug.org

Envoyé par :      sqr-users-admin@sqrug.org


Pour :
cc :   "Klocker, Werner" <werner.klocker@transflow.com> (ccc : Thaî Le
       Tat/DED/DSTI/CLY)

Objet :     [sqr-users] Does OR-54 Raise an error in a Begin-SQL Block ??


Hello SQR-Experts,

I've a problem with SQR:

CASE 1:
! **********************************************************************

Begin-SQL   ON-ERROR=ORA_54_Fehler
begin
RAISE_APPLICATION_ERROR(-20999,'EIn Kleiner Testfehler1',TRUE);;
end;;
End-SQL

Oracle raises an error and SQR jumps in the  ON-ERROR - Procedure
OK!
! **********************************************************************

CASE 2:           ( Data is locked by an SELECT FOR UPDATE xy NOWAIT by a
other Terminal)
! **********************************************************************
Begin-SQL   ON-ERROR=ORA_54_Fehler
UPDATE abuc_buchung
SET   buc_dfueaus = $Sequence
WHERE buc_bucid = &AVIAUF_BUC_BUCID
End-SQL

Oracle raises an error (ORA-54) ?? and SQR jumps NOT in the  ON-ERROR -
Procedure??
It seems ORACLE is WAITING..., and WAITING......, and W...., and .......
Not ok ??????????

! **********************************************************************


! **********************************************************************
Begin-Procedure ORA_54_Fehler
! **********************************************************************
      SHOW '***************IN DER PROCEDURE
ORA_54_Fehler******************'
      SHOW '***************(misslungener Versuch
buc_dfueaus***************'
      SHOW '***************upzudaten
***************'
      SHOW '***************$pLAFID:'$pLAFID
      SHOW '**buc_dfueaus**$Sequence:'$Sequence
      SHOW '***************&AVIAUF_LAF_LAFID:'&AVIAUF_LAF_LAFID
      SHOW '***************&AVIAUF_BUC_BUCID:'&AVIAUF_BUC_BUCID
      SHOW '***************$pSATZART:'$pSATZART

      LET $TMP_ORA_54_Fehler = ''
      LET $TMP_ORA_54_Fehler = $TMP_ORA_54_Fehler ||  ' Fehler beim Sperren
( SQLERROR -> ' ||
                                    $sql-error || ' SQLSTATUS -> ' ||
TO_CHAR( #sql-status ) ||
                                    ' SQLCOUNT -> ' || TO_CHAR( #sql-count
)
      DO Print_Err($TMP_ORA_54_Fehler)
End-Procedure

Have somebody an explanation for this behaviour ??

TIA, Michael



Mit freundlichen Grüßen

Michael Steinkellner
Logistics Management
Software-Engineering

TRANSFLOW
Informationslogistik GmbH
Am Kehlerpark 1

A-6850 Dornbirn

T +43 (0) 5572 . 56 500 - 55
F +43 (0) 5572 . 56 500 - 9
mailto:msteinkellner@transflow.com




E-Mail Disclaimer

Der Inhalt dieser E-Mail ist ausschliesslich fuer den bezeichneten
Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail
oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form
der Kenntnisnahme, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des
Inhalts dieser E-Mail unzulaessig ist. Wir bitten Sie, sich in diesem Fall
mit dem Absender der E-Mail in Verbindung zu setzen. Aussagen gegenueber
dem
Adressaten unterliegen den Regelungen des zugrundeliegenden Angebotes bzw.
Auftrags, insbesondere den Allgemeinen Geschaefts- und Auftragsbedingungen
und ggf. den individuellen Lizenz- und Haftungsvereinbarungen. Der Inhalt
der E-Mail ist nur rechtsverbindlich, wenn er unsererseits durch einen
Brief
entsprechend bestaetigt wird, es sei denn, es ist ausdruecklich anders
vereinbart. Die Versendung von E-Mails an uns hat grundsaetzlich keine
fristwahrende Wirkung, wenn dies nicht ausdruecklich vorher vereinbart
wurde. Wir moechten Sie ausserdem darauf hinweisen, dass die Kommunikation
per E-Mail ueber das Internet unsicher ist, da fuer unberechtigte Dritte
grundsaetzlich die Moeglichkeit der Kenntnisnahme und Manipulation besteht.
Wir werden daher keine vertraulichen Daten unverschluesselt per E-Mail
ueber
das Internet versenden.

The information contained in this email is intended solely for the
addressee. Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any form of disclosure, reproduction,
distribution or any action taken or refrained from in reliance on it, is
prohibited and may be unlawful. Please notify the sender immediately. All
statements of opinion or advice directed via this email to our customers
are
subject to the terms and conditions expressed in the governing customer
engagement letter. Unless any other agreement, the content of this email is
only legally binding if confirmed by letter. The sending of emails to us
will not constitute compliance with any time limits or deadlines, unless
agreed on explicitly in the governing customer engagement letter. We also
like to inform you that communication via email over the internet is
insecure because third parties may have the possibility to access and
manipulate emails. For this reason we will not send any confidential
information via email over the internet, unless encrypted.

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users





Ce message contient des informations confidentielles ou appartenant au
Crédit Lyonnais et est établi à l'intention exclusive de ses
destinataires. Toute divulgation, utilisation, diffusion ou reproduction
(totale ou partielle) de ce message, ou des informations qu'il contient,
doit être préalablement autorisée. Tout message électronique est
susceptible d'altération et son intégrité ne peut être assurée.
Le Crédit Lyonnais décline toute responsabilité au titre de ce
message s'il a été modifié ou falsifié. Si vous n'êtes pas
destinataire de ce message, merci de le détruire immédiatement et
d'avertir l'expéditeur de l'erreur de distribution et de la destruction
du message.
Crédit Lyonnais, SA au capital de Euros 1.807.874.827 - RCS Lyon B 954 509 741
Siège Central : 19, boulevard des Italiens. 75002 Paris. France

This e-mail contains confidential information or information belonging
to Crédit Lyonnais and is intended solely for the addressees.
The unauthorised disclosure, use, dissemination or copying (either whole
or partial) of this e-mail, or any information it contains, is prohibited.
E-mails are susceptible to alteration and their integrity cannot be guaranteed.
Crédit Lyonnais shall not be liable for this e-mail if modified or falsified.
If you are not the intended recipient of this e-mail, please delete it
immediately from your system and notify the sender of the wrong delivery
and the mail deletion.
Crédit Lyonnais SA.
Share Capital of Euros 1.807.874.827.
Registered Office : Lyon (B 954 509 741)
Central and administrative Office : 19, boulevard des Italiens. 75002 Paris. 
France