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

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



Hello Thaî,

this is what i want:

Prevent the SQR to stop with an error, if ORA-54 occurs.
SQR stops with following error ( sometimes ;-) ):

<SNIP>
<+++++ START ExportDFUE +++++>
MIST
MIST
MIST
WEKLchuessler Heppenheim                              
WEKLBurger King                                       
(SQR 5528) ORACLE OEXEC error -54 in cursor 96:
   ORA-00054: resource busy and acquire with NOWAIT specified

Error on line 266:
   (SQR 3723) Problem executing cursor.

SQR: Program Aborting.
<SNIP>

In this case the update should not executed, but the other code in my sqr ... 
;_)
After the BEGIN-SQL - Block ....

Sorry for my bad english ...

TIA, Michael




-----Ursprüngliche Nachricht-----
Von: Thaî Le Tat [mailto:thai.le-tat@creditlyonnais.fr]
Gesendet: Freitag, 15. November 2002 15:12
An: sqr-users@sqrug.org
Betreff: [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





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