Can we handled exceptions in Oracle EDQ?

Hi All,
I need to know, how to handle exceptions in EDQ? for example when i am fetcthing data from DB view, DB is down/ process is hanged then i have to send error msg to Webservice.
How can i handled this situation? Thanks in advance.
Regards,
Chandra

Hi,
This can be done, using the Triggers functionality, and a trigger that detects a certain type of error in a log and calls a web service.
Someone more experienced than me in writing triggers would probably need to help with an example.
Regards,
Mike

Similar Messages

  • Can we handle exceptions for the expressions in select query?

    Hi all,
    Can we handle exceptions for the expressions in select query.
    I created a view, there I am extracting a substring from a character data and expected that as a number.
    For example consider the following query.
    SQL> select to_number( substr('r01',2,2) ) from dual;
    TO_NUMBER(SUBSTR('R01',2,2))
    1
    Here we got the value as "1".
    Consider the following query.
    SQL> select to_number( substr('rr1',2,2) ) from dual;
    select to_number( substr('rr1',2,2) ) from dual
    ORA-01722: invalid number
    For this I got error. Because the substr returns "r1" which is expected to be as number. So it returns "Invalid number".
    So, without using procedures or functions can we handle these type of exceptions?
    I am using Oracle 10 G.
    Thanks in advance.
    Thank you,
    Regards,
    Gowtham Sen.

    SQL> select decode(ltrim(rtrim(translate(substr('r21', 2, 2), '0123456789', ' ' ), ' '), ' '), null, (substr('r21', 2, 2)), null) from dual;
    DE
    21
    SQL> ed a
    SQL> select decode(ltrim(rtrim(translate(substr('rr1', 2, 2), '0123456789', ' ' ), ' '), ' '), null, (substr('rr1', 2, 2)), null) from dual;
    D
    -

  • How can I handle exception? - to give user more friendly notification

    Hi!
    User gets an error:
    'Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum =...'
    How can I handle this exception (when two users want to modify the same set of data at the same time)? I would like to hide the above error message and give user more friendly notification.
    Thanks in advance,
    Tom

    Thanks Vikas for your answer.
    These workarounds are really creative and I want to use one of them. BUT my problem is to 'catch' the exception/error when two users want to modify the same set of data at the same time.
    Those solutions which we can read about in this link you gave me describe handling exceptions in pl/sql processes. How can I catch the error I am talking about in pl/sql code?
    Code would be like this:
    DECLARE
    two_users EXCEPTION;
    BEGIN
    IF --catch the error
    THEN RAISE two_users;
    END IF;
    EXCEPTION WHEN two_users
    THEN :HIDDEN_ITEM := 'Error Message';
    END;
    What should I put in a place where there is '--catch the error' ??
    Thanks in advance,
    Tom

  • How can we handle Exception Branch in BPM effectively

    Hi,
    I want to capture errors occurred in PM during runtime by using special "Exception Branch".
    For example If i define exception branch for one black then any step within that block thrown error then automatically it calls that corresponding exception branch within that block. Now i want to identify which step within that block has thrown error and what is the error.How can i achieve this?
    Thanks and Regards,
    Sudhakara

    Hi Sudhakara,
    Generally we use control step to raise an exception, Please go through this link for better understanding:
    http://help.sap.com/saphelp_nw04/helpdata/en/bb/e1283f2bbad036e10000000a114084/content.htm
    Also,
    Exception Handling:
    http://help.sap.com/saphelp_nw04/helpdata/en/33/4a773f12f14a18e10000000a114084/content.htm
    I hope it helps,
    Thanks & Regards,
    Varun Joshi

  • How to handle Exceptions in Oracle Report Builder 10.1.2.0.2?

    We are using Oracle Reports Builder 10g 10.1.2.0.2, Windows XP with Oracle 10g database. The reports are converted into JSP reports.
    How and where do we write exception handling code in Reports Builder? We want to achieve the following:
    1. Display a customized JSP page with customized error message
    2. Allow users to cancel the report execution, if possible and then direct them to the parameter form with all the values they entered before.
    Once we write these codes in the Oracle Report Builder where will it show in .jsp files?
    Thanks
    Hemant

    this link may be helpful:
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwwhthow/whatare/pformobj/a_pf_web.htm

  • How can i handle exceptions in bulck collect?

    Hi All,
    in case of any exception will raise i just print the emp_no prefix with sqlerrm.but i got sqlerrm only ,now the emp_no is blank.how can i print my emp_no.
    SET serveroutput ON;
    DECLARE
    TYPE employee_tab IS TABLE OF emp_ins%ROWTYPE
    INDEX BY BINARY_INTEGER;
    CURSOR c1 IS SELECT * FROM emp_ins ORDER BY emp_no;
    Employee_data      employee_tab;
    lv_n_emp_no NUMBER;
    lv_n_count NUMBER:=1;
    BEGIN
         IF c1%isopen THEN
         CLOSE C1;
         END IF;     
         OPEN C1;
         FETCH C1 BULK COLLECT INTO Employee_data;
         CLOSE C1;     
         FORALL i IN Employee_data.FIRST..Employee_data.LAST     
         INSERT INTO emp_test VALUES Employee_data(i);          
         lv_n_emp_no:=Employee_data(lv_n_count).emp_no;
    lv_n_count:= NVL (lv_n_count, 1) + 1;
         COMMIT;     
         Employee_data.DELETE;     
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE(lv_n_emp_no||','||SQLERRM);
    END;
    Regards
    Gopinath M

    SQL> create table emp_test as select * from emp where 1=2
      2  /
    Tabel is aangemaakt.
    SQL> alter table emp_test add constraint emp_ck check (sal > 1500)
      2  /
    Tabel is gewijzigd.
    SQL> declare
      2    type t_employee_tab is table of emp%rowtype index by binary_integer;
      3    r_employee_data t_employee_tab;
      4    e_bulk_errors exception;
      5    pragma exception_init ( e_bulk_errors, -24381 );
      6  begin
      7    select *
      8      bulk collect into r_employee_data
      9      from emp
    10     order by empno
    11    ;
    12    forall i in r_employee_data.first..r_employee_data.last save exceptions
    13      insert into emp_test values r_employee_data(i);
    14  exception
    15  when e_bulk_errors then
    16    for j in 1..sql%bulk_exceptions.count
    17    loop
    18      dbms_output.put_line
    19      ( r_employee_data(sql%bulk_exceptions(j).error_index).empno
    20        || ', ' || r_employee_data(sql%bulk_exceptions(j).error_index).ename
    21        || ', (sal=' || r_employee_data(sql%bulk_exceptions(j).error_index).sal
    22        || ') :' || sqlerrm(-sql%bulk_exceptions(j).error_code)
    23      );
    24    end loop;
    25  end;
    26  /
    7369, SMITH, (sal=800) :ORA-02290: check constraint (.) violated
    7521, WARD, (sal=1250) :ORA-02290: check constraint (.) violated
    7654, MARTIN, (sal=1250) :ORA-02290: check constraint (.) violated
    7844, TURNER, (sal=1500) :ORA-02290: check constraint (.) violated
    7876, ADAMS, (sal=1100) :ORA-02290: check constraint (.) violated
    7900, JAMES, (sal=950) :ORA-02290: check constraint (.) violated
    7934, MILLER, (sal=1300) :ORA-02290: check constraint (.) violated
    PL/SQL-procedure is geslaagd.
    SQL> select * from emp_test
      2  /
         EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO
          7499 ALLEN      SALESMAN        7698 20-02-1981 00:00:00       1600        300         30
          7566 JONES      MANAGER         7839 02-04-1981 00:00:00       2975                    20
          7698 BLAKE      MANAGER         7839 01-05-1981 00:00:00       2850                    30
          7782 CLARK      MANAGER         7839 09-06-1981 00:00:00       2450                    10
          7788 SCOTT      ANALYST         7566 09-12-1982 00:00:00       3000                    20
          7839 KING       PRESIDENT            17-11-1981 00:00:00       5000                    10
          7902 FORD       ANALYST         7566 03-12-1981 00:00:00       3000                    20
    7 rijen zijn geselecteerd.Regards,
    Rob.

  • Handle Exceptions during the Render Response phase

    Hi,
    How can we handle exceptions that occur during the render response phase, e.g. to redirect the user to an error page?
    In our application we have an unbounded taskflow with one page (jspx). It's quite a simple page, as it only displays some data from a managed bean.
    When we run the application and e.g. throw explicitly a RuntimeException form one of the getters, all we get is the 'progress indicator', not even a stacktrace on the page (only in the logs).
    Unfortunately, it doesn't seem possible to handle the exception, not via the taskflow Exception Handler, the web.xml error-page or a custom ADF Controller exception handler. In the latter case, we can catch the exception but when we try a redirect (on the external context or response) we get a 'java.lang.IllegalStateException: Response already committed' exception.
    Any suggestions?
    Ciao
    Aino

    Hi Aino
    I'm not sure if that's the problem, but I recently read somewhere (wish I remember where) an IllegalStatementException that was throwing because there was no entry page defined in web.xml.
    If you are trying that, remember that web.xml doesn't support .jspx pages.
    Edited by: TheCrusader on 09-jul-2010 15:03
    Edited by: TheCrusader on 09-jul-2010 15:10

  • Handling exceptions at Sub-Process Level

    Can we handle exceptions at Sub-Process level itself? Or do we need to transfer the exceptions to the main process and then only the admin user can handle them?

    The same thing applies to subprocesses. A subprocess is just a process that has been invoked by another process and the same exception handling rules apply to it.
    You can catch exceptions in any process using:
    <li> logic at the activity level using a try/catch block
    <li> an activity using an Exception transition
    <li> a Group in the process using an Exception transition
    <li> the process using an Exception Handler
    At a minimum, catch the "Others" exception using the Exception Handler. This ensures uncaught exceptions are not sent to the End activity (the default) and the instances are not lost. This simple best practice will save you days of debugging and several calls to customer support to resolve.
    Dan

  • Can we handle the pre defined exceptions?

    Hi people,
    I have a simple stored procedure in oracle 9i with following code.
    create or replace procedure psam1( no int) is
    a number;
    b number;
    e exception;
    v varchar(10);
    begin
    select sal into a from sample where sno=no;
    select count(*) into b from sample where sno=no;
    if b>1 then
    raise e;
    elsif a>1000 then
    v:='PASS';
    else
    v:='FAIL';
    end if;
    dbms_output.put_line(v);
    exception
    when e then
    raise_application_error(-20002,'MORE THAN ONE RECORD EXISTS');
    end;
    My question is if i want to handle the exception
    'ORA-01422: exact fetch returns more than requested number of rows'.
    If my fetch retrieves more than one row then Exception e should be raised.but can we handle those predefined exceptions?.

    Hi Vids,
    As said already, yes you can.
    But there is some misunderstandig in your code. If in fact you do have ORA-01422, you second select will never get executed, since the first one will raise that.
    You code could be as simple as this:
    create or replace procedure psam1(no int)
    is
       a   number;
       v   varchar(10);
    begin
       select sal, case sign(sal -1000)
                    when 1 then 'PASS'
                    else 'FAIL'
                    end
         into a, v
         from sample
        where sno = no;
       dbms_output.put_line(v);
    exception
       when no_data_found  -- Predefined exception for ORA-00001
       then
          do_some_thing; -- Perhaps, just raise;
       when too_many_rows -- Predefined exception for ORA-01422
       then
          do_another_thing;  -- Perhaps, just raise;
    end;As you see ORA-01422 is predefined (TOO_MANY_ROWS), read more about those here [Predefined PL/SQL Exceptions|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/errors.htm#insertedID4]
    If you choose just to (re)-raise the exception then you should omit that exception handler.
    Regards
    Peter

  • Creating Fault Handling and Exception in Oracle BPEL

    I am following BPELtutorial-Orderbooking.pdf and have successfully reached chapter 6 i.e. Creating Fault Handling and Exception in Oracle BPEL. Everything went fine except this one... i.e. after implementing the Fault Handling and Exception in Oracle BPEL when I execute my process and enter CustId that begins with 0.... the invokeCR generates error message as follows as expected:
    <NegativeCredit xmlns="http://services.otn.com">
    <part name="payload">
    <error xmlns="http://services.otn.com">Bankruptcy Report</error>
    </part>
    </NegativeCredit>
    However, the execution proceeds ahead instead of terminating. The tutorial states that the BPEL process should terminate as the SSN is invalid, can anyone please tell me whats going wrong.. ?

    Well not exactly.... but when click on the 'Audit' sheet under BPEL Console for this instance, I can see the following:
    invokeCR (faulted)
    [2006/03/20 10:35:07] "{http://services.otn.com}NegativeCredit" has been thrown. less
    <NegativeCredit xmlns="http://services.otn.com">
    <part name="payload">
    <error xmlns="http://services.otn.com">Bankruptcy Report</error>
    </part>
    </NegativeCredit>
    The above is exactly what the tutorial states will be the output, so I presumed that the exception must have fired !

  • How can you handle Third Party Payment in Oracle Payroll

    People I hope you all are at your Good Health!
    I have a question and that is i would like to know how i can restrict a dependent from getting an Insurance benefit after he has crossed the Age =18 Also the To date must be calculated and populated automatically.
    Also, how can we handle this third party payment in the Oracle Payroll.
    All comments are welcomed.
    Chetan

    For the payment piece, create a payment method on the person record as a third party. you would need to have setup the recieving party as a third party organization before setting up at employee level.
    During normal payroll processing, you may run Third party check writer to generate a check .
    Ankur thank you for the response i have understood that we must create a Payment Method and Check the Check box for Third party Payment on Payment Method window.But how will that be handled for case where an employee has taken a Loan from a Bank and he has to be deducted every month from his salary how can we handle such a requiremet.
    I did not understand when you said :
    "you would need to have setup the recieving party as a third party organization before setting up at employee level.
    During normal payroll processing, you may run Third party check writer to generate a check ."
    Could you please explain me.
    Regards,
    Chetan

  • How can we handle user defined exceptions in ejbStore() of entity bean

    Accroding to my knowledge in ejbStore we can not handle user defined exceptions. Can anybody help on this????

    In my case I am calling a method from ejbsotre() . In that method i wanted to put some checks according to that i wanted to throw exceptions.
    In this case how would I handle exceptions.
    Can you suggest in this case,please !!!

  • Handle Exception from LCDS

    Hello,
    I am using Flex 4 with LCDS 3. I am having problems with properly handling 
    exceptions. 
    I have a simple commit service like; 
    var commitToken:AsyncToken = 
    _serviceName.serviceControl.commit(); // Commit the change. 
    commitToken.addResponder(new AsyncResponder( 
    function (event:ResultEvent, 
    token:Object=null):void 
    Alert.show("DATA DELETED"); 
    function (event:FaultEvent, 
    token:Object=null):void 
    Alert.show("Save failed: " + 
    event.fault.faultString, "Error"); 
    _serviceName.serviceControl.revertChanges(); 
    Now when I try to delete a row which has a child record I get the following 
    error in my tomcat log; 
    hdr(DSEndpoint) = my-rtmp 
    hdr(DSId) = 9AFF219A-AB2A-3B60-D990-9E87A3D7CF71 
    java.lang.RuntimeException: Hibernate jdbc exception on operation=deleteItem 
    error=Could not execute JDBC batch update : sqlError = from SQLException: 
    java.sql.BatchUpdateException: ORA-02292: integrity constraint (CATEGORY_FK) 
    violated - child record found 
    followed by; 
    [LCDS]Serializing AMF/RTMP response 
    Version: 3 
    (Command method=_error (0) trxId=10.0) 
    (Typed Object #0 'flex.messaging.messages.ErrorMessage') 
    rootCause = (Typed Object #1 'org.omg.CORBA.BAD_INV_ORDER') 
    minor = 0 
    localizedMessage = "The Servant has not been associated with an ORB 
    instance" 
    message = "The Servant has not been associated with an ORB instance" 
    cause = null 
    completed = (Typed Object #2 'org.omg.CORBA.CompletionStatus') 
    destination = "CATEGORY" 
    headers = (Object #3) 
    correlationId = "D4B6573F-F8C2-0732-BD1C-6FD1C5979763" 
    faultString = "Error occurred completing a transaction" 
    messageId = "9AFF6D9A-3C1C-E99B-B00F-92E72069B64E" 
    faultCode = "Server.Processing" 
    timeToLive = 0.0 
    extendedData = null 
    faultDetail = null 
    clientId = "C2F15FE1-2977-23AA-1ADD-6FD1C096A82F" 
    timestamp = 1.281776280572E12 
    body = null 
    In flex in my "event" in the fault function I can only get general data like 
    "Error occurred completing a transaction", but I cannot access the error 
    "ORA-02292:...". 
    Is there a way to access it, as I need to handle multiple exceptions that Oracle 
    will catch such as duplicate ID.....

    Hi Hong,
    I can confirm that 0xE8010014 represents a driver fault. Unfortunately without a dump or some other trace file it is hard to track this down. You could create a dump file if you can reproduce it, upload it to your OneDrive and then post the link here, I
    can grab it and take a look.
    >>This is reported by users. Unfortunately I am unable to reproduce it.
    Could you please collect the OS version which have this issue?
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Not handled exception due to uninitialized variables ?

    I have successfully added a sap-proxy to my
    application.
    But when I try to invoke e.g. Bapi_Customer_Getdetail
    using concrete parameters,
    there's an error message indicating:
    <i>A non handled exception of type 'SAP.Connector.RFcException'.. has occured;
    further information:
    max.length for value / ID exceeded .. (some strange signs)</i>
    But I've in deed assigned values to my parameters, which
    are mandatory input parameters for SAP.
    Can anyone tell me, what I'm doing wrong.
    Thank you
    j.kerscher

    So what does it mean in below quotation from "PL/SQL User's Guide and Reference", that host environment determines what is rolled back, if the database manages it, as you have written?
    How Oracle Does Implicit Rollbacks
    +"Before executing an INSERT, UPDATE, or DELETE statement, Oracle marks an implicit savepoint (unavailable to you). If the statement fails, Oracle rolls back to the savepoint. Normally, just the failed SQL statement is rolled back, not the whole transaction. However, *if the statement raises an unhandled exception, the host environment determines what is rolled back*.+
    Edited by: twrzodak on Sep 23, 2008 8:56 AM

  • Qs on Handling Exception on BPEL Process

    Hi,
    Would like to know what is the best optimized way to handle exception that are caused by process because of type mismatch or variable not initialized or anything?
    So how we can do it?
    Thanks,

    Use the new error hospital feature in rel 10.1.3.3.
    http://www.oracle.com/technology/products/ias/bpel/pdf/10133technotes.pdf
    Marc
    http://orasoa.blogspot.com

Maybe you are looking for

  • How do I download the try version of illustrator?

    I went to http://www.adobe.com/cfusion/tdrc/index.cfm?product=illustrator&promoid=EBYEV and downloaded the download software* which I then started. But then what?? It does NOT start downloading illustrator or any other software, and illustrator is no

  • Does any one know if I can use my old Apple Lazer 16/1600 printer on My iMac 10.6.8

    Does anyone know if I can use my old Apple Laser printer 16/1600 with my iMac 10.6.8. When I switched to 10.6.8 it won't print. Can't find any software upgrades on the Apple support site. The printer does not have USB connection. It's a great printer

  • How to setup air help auto-update

    RH8 HTML. Im fiddling around with the AIR Help file and trying to get the auto update working. So far I have the comments syncing perfectly across users with a shared folder on our network. I'm now publishing the air file to a shared folder again whe

  • HTTPService + Flash Player 9 Issue

    Hi, I have run a sample program , that accesses HTTP Service and gets data. I have used Flex builder for this. At my organization, in order to access internet via proxy, it is required to provide AD authentication So everytime we access internet, we

  • NWBC 4.0 is unstable on IE11

    Hi, I am using Windows 7 and Internet Explorer 11. I have already installed Netweaver Business Client 4.0 for desktop. Initially, I have accessed to CRM Ides system. But when I logout from NWBC and retry to access, I am getting this error; 'You are c