FAQ
When i call the log_errors in the exception block what should i give the
aruguments for the procedure.?


thanks

-----Original Message-----
Sent: Thursday, July 31, 2003 12:54 PM
To: Multiple recipients of list ORACLE-L

sorry .... should be ...


insert into error_log (error_ts, ora_user, error_text, call_stack)
values (sysdate, user, szerrors,szcalls);

Raj

Rajendra dot Jamadagni at nospamespn dot com
All Views expressed in this email are strictly personal.
QOTD: Any clod can have facts, having an opinion is an art !

-----Original Message-----
Sent: Thursday, July 31, 2003 3:45 PM
To: Multiple recipients of list ORACLE-L

create or replace log_errors (in_errors varchar2, in_calls varchar2)
is
szerrors varchar2(1000) := dbms_utility.format_error_stack;
szCalls varchar2(1000) := dbms_utility.format_call_stack;
pragma autonomous_transaction;
begin
szerrors :=
insert into error_log (error_ts, ora_user, error_text)
values (sysdate, user, szerrors);
commit;
end;
/

begin
..
exception

when others then

log_errors;
-- for benefit of the program ...
raise;

end;
/

something like this should help ...
Raj

Rajendra dot Jamadagni at nospamespn dot com
All Views expressed in this email are strictly personal.
QOTD: Any clod can have facts, having an opinion is an art !

-----Original Message-----
]
Sent: Thursday, July 31, 2003 3:35 PM
To: Multiple recipients of list ORACLE-L
procedu

Hi All,

I want to log the oracle error code and messages that will be generated
within a procedure/trigger
into a table.

I know i can write this in the exception block.Does anyone has any sample
code to help me out.

thanks
ravindra
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
<http://www.orafaq.net>
--
Author: Basavaraja, Ravindra
INET: Ravindra.Basavaraja_at_T-Mobile.com

Fat City Network Services -- 858-538-5051 http://www.fatcity.com
<http://www.fatcity.com>
San Diego, California -- Mailing list and web hosting services

To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Basavaraja, Ravindra
INET: Ravindra.Basavaraja_at_T-Mobile.com

Fat City Network Services -- 858-538-5051 http://www.fatcity.com
San Diego, California -- Mailing list and web hosting services
---------------------------------------------------------------------

To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).

Search Discussions

  • Jamadagni, Rajendra at Aug 21, 2003 at 3:59 pm
    sorry .... none ... remove the formal parameters ...


    Raj

    Rajendra dot Jamadagni at nospamespn dot com
    All Views expressed in this email are strictly personal.
    QOTD: Any clod can have facts, having an opinion is an art !

    -----Original Message-----
    Sent: Wednesday, August 20, 2003 10:31 PM
    To: 'ORACLE-L_at_fatcity.com'
    Cc: Jamadagni, Rajendra

    When i call the log_errors in the exception block what should i give the
    aruguments for the procedure.?


    thanks

    -----Original Message-----
    Sent: Thursday, July 31, 2003 12:54 PM
    To: Multiple recipients of list ORACLE-L

    sorry .... should be ...


    insert into error_log (error_ts, ora_user, error_text, call_stack)
    values (sysdate, user, szerrors,szcalls);

    Raj

    Rajendra dot Jamadagni at nospamespn dot com
    All Views expressed in this email are strictly personal.
    QOTD: Any clod can have facts, having an opinion is an art !

    -----Original Message-----
    Sent: Thursday, July 31, 2003 3:45 PM
    To: Multiple recipients of list ORACLE-L

    create or replace log_errors (in_errors varchar2, in_calls varchar2)
    is
    szerrors varchar2(1000) := dbms_utility.format_error_stack;
    szCalls varchar2(1000) := dbms_utility.format_call_stack;
    pragma autonomous_transaction;
    begin
    szerrors :=
    insert into error_log (error_ts, ora_user, error_text)
    values (sysdate, user, szerrors);
    commit;
    end;
    /

    begin
    ..
    exception

    when others then

    log_errors;
    -- for benefit of the program ...
    raise;

    end;
    /

    something like this should help ...
    Raj

    Rajendra dot Jamadagni at nospamespn dot com
    All Views expressed in this email are strictly personal.
    QOTD: Any clod can have facts, having an opinion is an art !

    -----Original Message-----
    ]
    Sent: Thursday, July 31, 2003 3:35 PM
    To: Multiple recipients of list ORACLE-L
    procedu

    Hi All,

    I want to log the oracle error code and messages that will be generated
    within a procedure/trigger
    into a table.

    I know i can write this in the exception block.Does anyone has any sample
    code to help me out.

    thanks
    ravindra

    --
    Please see the official ORACLE-L FAQ: http://www.orafaq.net
    <http://www.orafaq.net>
    --
    Author: Basavaraja, Ravindra
    INET: Ravindra.Basavaraja_at_T-Mobile.com

    Fat City Network Services -- 858-538-5051 http://www.fatcity.com
    <http://www.fatcity.com>
    San Diego, California -- Mailing list and web hosting services
    ---------------------------------------------------------------------
    To REMOVE yourself from this mailing list, send an E-Mail message
    to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
    the message BODY, include a line containing: UNSUB ORACLE-L
    (or the name of mailing list you want to be removed from). You may
    also send the HELP command for other information (like subscribing).

    --
    Please see the official ORACLE-L FAQ: http://www.orafaq.net
    --
    Author: Jamadagni, Rajendra
    INET: Rajendra.Jamadagni_at_espn.com

    Fat City Network Services -- 858-538-5051 http://www.fatcity.com
    San Diego, California -- Mailing list and web hosting services
    ---------------------------------------------------------------------
    To REMOVE yourself from this mailing list, send an E-Mail message
    to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
    the message BODY, include a line containing: UNSUB ORACLE-L
    (or the name of mailing list you want to be removed from). You may
    also send the HELP command for other information (like subscribing).

    text/plain attachment: ESPN_Disclaimer.txt

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouporacle-l @
categoriesoracle
postedAug 21, '03 at 3:29a
activeAug 21, '03 at 3:59p
posts2
users2
websiteoracle.com

People

Translate

site design / logo © 2022 Grokbase