How to catch the exception in the sliders

Hello

How to catch the exception no. DATA FOUND/other exceptions with the cursor
DECLARE
CURSOR c1 IS SELECT * FROM EMP WHERE empno = 1234;
BEGIN
FOR i IN c1 LOOP
DBMS_OUTPUT.PUT_LINE(i.ename);
END LOOP;
END;
so 1234 is not in my table, how to trap this.could help me please

Published by: user4587979 on 27 May, 2010 03:46

Maybe it's

declare
  CURSOR c1 IS SELECT * FROM EMP WHERE empno = 1234;
  lemp c1%rowtype ;
begin
  open c1;
  loop
    fetch c1 into lemp;
    exit when c1%notfound;
    DBMS_OUTPUT.PUT_LINE(lemp.ename);
  end loop;
  if c1%rowcount = 0 then
    raise no_data_found;
  end if;
  close c1;
end;

Tags: Database

Similar Questions

  • BBM how to retrieve BBM be hacked or how to catch the pirate?

    Hello everyone, I have a few requests here as member of my family comes from live be hacked:
    -can I know if we provide BBN, PIN, could we know email ID used to register?
    -How to retrieve the BBM be hacked?
    -How to catch the pirate?
    Thanks in advance!

    Most likely you allowed someone to get your credentials BBID, or you have been deceived into giving them upward.

    This is the management of Blackberry users who have their BBID diversion...

    -------------
    In these scenarios, the user must email\contact our office of privacy protection
     
    http://CA.BlackBerry.com/legal/privacy-policy.html
     
     
    10. questions or concerns? How to contact us
    BlackBerry welcomes your questions or comments about this privacy policy and the way in which we treat your personal information. If you have any questions, concerns, or you want to request access to your personal information under the privacy or data protection laws, please communicate with BlackBerry, either by e-mail or in writing and we will use commercially reasonable efforts to respond:
    email: [email protected], or
    write to one of the following offices of the nearest BlackBerry you:
    BlackBerry Privacy Office c/o BlackBerry (attention Legal Department), 2200 University Avenue East, Waterloo, Ontario, Canada N2K 0 to 7
    BlackBerry Privacy Office c/o BlackBerry (attention Legal Department), 200 Bath Road, Slough, Berkshire, United Kingdom SL1 3XE
    BlackBerry Privacy Office c/o BlackBerry (attention Legal Department), 1 International Business Park, The Synergy Building, 2nd Floor, Singapore 609917
    ------------

  • How to catch the event storm rotation?

    Hi all

    As the title,

    I want to know how to catch the rotation on the device of the storm?

    Y at - it samples which I can draw?

    Thank you

    You can use the method getOrientation() class net.rim.device.api.ui.Display

    Press the button Bravo thank the user who has helped you.

    If your problem has been resolved then please mark the thread as "accepted Solution".

  • How to catch the end of an external task?

    Hello

    How to catch the end of an external task?
    OS: Windows 2003
    DB: 10.2.0.1

    The code I wrote will run forever:
    declare
       d date;
       n number;
       -- and more
    begin
        d := sysdate;
        dbms_scheduler.create_job(
          job_name => c_job,
          job_type => 'executable',
          number_of_arguments  => 14,
          job_action => c_cmd,
          enabled => false,
          auto_drop => true
        );
        dbms_scheduler.set_job_argument_value(c_job,1,'/c');
        dbms_scheduler.set_job_argument_value(c_job,2,c_command);
        dbms_scheduler.set_job_argument_value(c_job,3,c_pw);
        dbms_scheduler.set_job_argument_value(c_job,4,c_pw_val);
        dbms_scheduler.set_job_argument_value(c_job,5,c_port);
        dbms_scheduler.set_job_argument_value(c_job,6,c_port_val);
        dbms_scheduler.set_job_argument_value(c_job,7,c_key);
        dbms_scheduler.set_job_argument_value(c_job,8,c_key_val);
        dbms_scheduler.set_job_argument_value(c_job,9,c_agent);
        dbms_scheduler.set_job_argument_value(c_job,10,c_batch);
        dbms_scheduler.set_job_argument_value(c_job,11,c_source);
        dbms_scheduler.set_job_argument_value(c_job,12,c_dest);
        dbms_scheduler.set_job_argument_value(c_job,13,c_log);
        dbms_scheduler.set_job_argument_value(c_job,14,c_yes);
        dbms_scheduler.enable(c_job);
     
        -- Job started, waiting...
        loop
          select count(1)
          into n
          from user_scheduler_job_run_details t
          where job_name = c_job and
                t.log_date >= d;
          exit when n > 0;
          dbms_lock.sleep(1);
        end loop;
     
    end;
    The work ends in fact, user_scheduler_job_run_details is updated (if you run the select statement in the loop in another session, it returns 1), but the selection running into the loop will always return 0.
    Any help is appreciated.

    Kind regards
    Lmocsi

    Hello

    It's strange, maybe you can try to use the timestamp type rather type date and with the help of an offset in the case where the work already finished for example d = systimestamp - second interval '1'

    Another thing to watch is if you compare the dates in the same time zone, otherwise you must ensure that all sessions use the same time zone (setting the default_timezone attribute Planner can help).

    Hope this helps,
    Ravi.

  • How to catch the error in 1843. .nOT months valid...

    It's in my cursor loop for

    mstart_issue: = TO_CHAR (to_date(mstart_issue,'YY-MON'), 'Mon.YYYY');
    mend_issue: = to_char (to_date(mend_issue,'YY-MON'), 'Mon.YYYY');

    But it throws error 1843...


    I have execptions to conclude an error value
    When value_error then
    alert ('value error' | moldmembership);

    But I need something to catch the next error is to say... The moment a month not valid error. . He should catch this error
    Like warn ('not validm months' | membershpnumber)
    What should be the exception to catch. .the 1843 error...
    As we have been exceptions, as when too many lines to catch duplicate records...

    And this is how my data end_issue looks like.... 10 - Jul
    12 - Aug date in the format yy - my...
    But there is error...
    Kindly help...
    Thank you

    You pass the NLS_DATE_LANGUAGE in the TO_DATE function, but not the function TO_CHAR. You want to convert the string to a date in a NLS_DATE_LANGUAGE of AMERICAN, but then you want to convert the date to a string using NLS session parameters. If these parameters are not AMERICANS, you will get the results you see.

    Justin

  • How to catch the long menu key?

    Hello

    I have a background application that launches a window of the screen only and I need to be able to listen/catch long menu key press the application to switch to this meal bar. In fact, if the user launches the application switch my screen bar somehow needs to know so he can close. How do I do that? A UIApllication can simply listen to deactivate() calls but screen can do that. I've already implemented KeyListener, but the long press event is not caught it.

    Update:

    Hmmm... She is one storm that has the feture to launch the switch application through a long press on the menu button? Doen't work on Curve 8900.

    I can still catch the application change event in a window of the screen, anyone know how?

    Thank you.

    KeyListerners keyRepeat() seems to intercept the key event in the application that starts the screen.

    Problem seems to be resolved then.

  • How to catch the error in time-out in BEPL

    Hi, I am building some SOA BPEL to call another SOAP service that may treat the time quite a long time. In this case, SOA BPEL fails with ErrorCode ORAMED-03303. In order to ensure the completion of the entire BPEL process, I tried to add a CatchAll to intercept this error. But FAILED. The BEPL still does not with ORAMED-03303. Can someone help me on this? Thank you.

    Hi Lisoft,

    You might see these errors because of the long running process. There are several places where you have to fine-tune the settings of time-out.

    The first thing you should look into is the MBean timeout "SyncMaxWaitTime" which is set by default at 45 seconds. (Connect on SOA EM > SOA > click right on soa-infra > Administration SOA > BPEL properties > more BPEL properties > SyncMaxWaitTime). You then have to check what the JTA transaction time-out set for the instance of weblogic (connect on the SOA console-> click-> JTA field).

    You can control the time-out settings max on a composite level using "oracle.webservices.httpReadTimeout" and "oracle.webservices.httpConnTimeout" binding properties. These values configured in the composite must be less than the value of the "SyncMaxWaitTime" for synchronous processes.

    If you use the properties mentioned above for your Web service reference, then you could catch the fault of "timeout" in your composite. The binding reference might look like below in the file composite.xml.

    UI:wsdlLocation = "TestService.wsdl" > "

    http://xmlns.Oracle.com/SOATestWSService/TestWSService/bpelTestWSService#WSDL.interface (bpelTestWSService)"/ >

    http://xmlns.Oracle.com/SOATestWSService/TestWSService/bpelTestWSService#WSDL.EndPoint(TestWSService_ep/bpelTestWSService_pt)"

    location =""

    soapVersion = "1.1" >

    much = 'false' override = "may" > 10000

         

    much = 'false' override = "may" > 10000

    much = 'false' override = "may" > false

    Hope the link below could be very useful for you.

    http://soasol.blogspot.com/2009/12/how-to-set-timeout-for-Web-service-in.html

    https://technology.AMIS.nl/2011/11/18/timeouts-in-Oracle-SOA-Suite-11g/

    It will be useful.

  • How to 'catch' the data in a field of apex_item.text

    Hello

    How can I catch the data, I write in a field of apex_item.text and copy it to another table.

    Example:

    Source table

    Create table Hund(
    PRI_KEY number,
    Name varchar2(30)
    );
    
    

    Classic report in the Apex:

    Select
    APEX_ITEM.DISPLAY_AND_SAVE(1, PRI_KEY),
    APEX_ITEM.DISPLAY_AND_SAVE(2,Name),
    APEX_ITEM.TEXT(3,weight) as weight
    From Hund;
    
    

    The weight of the column do not exist in the table Hund, but is it possible to catch what is written in the Apex Page (and put in another table)?

    EDIT: Maybe a resolution with a Collection of APEX?

    THX

    René

    René

    F01 being a checkbox only lines checked are in the table.

    This means that when the box is checked for lines 1 and 3. Only the rows are in the table in the f01.

    Then, when for the second race hollow the loop index is 2. You treat rank 3 for the f01 table but the 2nd rank of the other tables.

    You have to match the table value f03 with f01 table values to find the line number for the f20 table.

    for i in 1..apex_application.g_f03.count
    loop
       for k in 1..apex_application.g_f01.count
       loop
          if apex_application.g_f03(i) = apex_application.g_f01(k)
          then
             UPDATE PRM_CHK_BSTBS_ABGL_EDIT
             SET KOMMENTAR=APEX_APPLICATION.G_F20(i)
             WHERE NUMMER_EINHEITLICH=to_number(APEX_APPLICATION.G_F03(i));
           end  if;
       end loop;
    end loop;
    

    This will update the checked lines.

    If you want to update all the lines to leave out the inner loop and instruction.

    I don't see what you posted I have, this is the case, but it is not a good idea to mix apex_item and columns be updated regular.

    Nicolette

  • How to catch the movement of return on investment when the user drags a handful of return on investment?

    Hello, I use VDM2009 with c#. I need to make some manipulations of KING and need to intercept mouse movements, but do not know what to use. For example, suppose I created a KING OvalContour and that it is a circle (width = height). I have to do 2 things: 1) when the user drags one of the 4 handles, I need to check what handle is moved so that I can drag a few adjacent programmatically so that the circle is a circle and does not become an oval.

    (2) when the user clicks/behind the center of the circle, I need prevent the update so that the circle does not move the return on investment. (It would be even better if there was a way to disable the movement of the circle and allow the scale.) I don't know what to use to accomplish this behavior and do not know how to retrieve the KING handles about which is slipped. Any help would be very appreciated. Thank you, Neville

    Hello Ben,

    Thanks again for your help.  I looked up the definitions for the ROILeft, etc., in the reference VB help as you suggest.  While many objects is similar in setting/name, it seems that these objects (ROILeft, etc.) are those who are not easy to find how to use in the c# version.  But thanks for pointing me to the help file in VB Ref.  I wish, in there wasn't one for c#... I can't understand how to search effectively in the Visual c# help file that is integrated into Visual Studio.

    Thanks for your suggestion about the return on investment.  It makes sense, and I'll keep it in mind.

    In the meantime, I found a solution to my problem.  I use c# function public bool PreFilterMessage (ref Message objMessage) for prefilter mousedown and mousemove event messages.  Once I found one, I check if the cursor is on a part of the KING that I care.  If I want to do something special, I'm doing it right here.  If I want to keep the normal behavior of the KING OR on mousedown and mousemove, I trash the message.

    It's a total pain, but it seems that functions NOR are not put in place to do this kind of things in an elegant way.  Thanks again for your help!

    Neville

  • How to catch the change of profile event?

    Hello

    for my application, I need to react on the evolution of the active profile. What I do now, is that I have recorded the listener with AudioManager.RINGER_MODE_CHANGED_ACTION action. I catch the same as once - just after always recording listener and he gets the AudioManager.RINGER_MODE_NORMAL result. Listener does not receive events more. Application works correctly on the Android platform.

    Some ideas?

    Thank you

    I have an answer of comments under the list of intentions not supported:

    http://developer.BlackBerry.com/Android/apisupport/unsupported_api_jellybean_intents.html

    I confirmed that "android.media.RINGER_MODE_CHANGED_ACTION", which has the constant 'android.media.RINGER_MODE_CHANGED' is not supported.

    December 3, 2014

  • How to catch the alt keycode?

    Hi all

    I am trying to catch the alt keycode, when I press alt on the keyboard. I can get all key codes, but alt key does not work. I tried like this

    stage.addEventListener (KeybordEvent.KEY_DOWN, isdown)

    function isdown (event) {}

    trace (event.keyCode ())

    }

    I'll get all the keycode values plotted, but alt does not work.

    Any help on this. Thanks in advance.

    I do not believe there is a code of the ALT key, but you can apparently determine whether or not it is active (Boolean) by using the theKeyboardEvent.altKey property.  See the following topic in the help documentation.

    http://www.Adobe.com/LiveDocs/Flash/9.0/ActionScriptLangRefV3/Flash/events/KeyboardEvent.h tml

  • How to catch SQL exceptions in BPEL

    Howdy,

    I'm trying to convert our PLSQL validations in web services using a BPEL process. For example:

    BEGIN
    SELECT employee_number
    IN employee_num
    OF per_all_people_f
    WHERE person_id = < number >
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    < something >
    WHEN TOO_MANY_ROWS THEN
    < something >
    WHILE OTHERS THEN
    < something >
    END

    I set up the Web service so that it returns valid data using BPEL. However, I would also like to implement exceptions in the BPEL process. In other words, when no data is returned, BPEL will lift an exception 'NO DATA FOUND' or 'TOO OF LINES' when more than 1 row is returned.

    Is it possible to catch these exceptions SQL using BPEL?

    Any help would be appreciated

    Hoang.

    You can catch blocks to catch these exceptions, ideally we lack of liaison, lack of runtime and catch-all blocks in bpel.

    The faults you mention will be captured in the block of runtime.

    http://docs.Oracle.com/CD/E12839_01/integration.1111/e10224/bp_faults.htm

    Thank you
    Vijay

  • How to catch the exact validation error message?

    Hi experts,

    I want to intercept the exact validation error message.
    If the validate operation fails then I get the following SOAP fault:

    < env:Fault xmlns:ns0 = "http://docs.oasis-open.org/wsbpel/2.0/process/executable" >
    ns0:invalidVariables < faultcode > < / faultcode >
    faultName < faultstring >: {{http://docs.oasis-open.org/wsbpel/2.0/process/executable} invalidVariables}
    messageType: {{http://schemas.oracle.com/bpel/extension} RuntimeFaultMessage} < / faultstring >
    < faultactor / >
    < detail >
    < exception / >
    < / details >
    < / env:Fault >

    However, in the Manager of the company (audit trail) I see the following message to the failure to validate the operation:

    Invalid data: the value of the variable 'req_ProcessAdjustmentOp' part 'bodyUPI' does not match the schema definition for this part of invalid text '?' in the element: 'date '. Invalid xml document is shown below:

    I would like to send this message to the service consumer because it contains more information about the error. How I do that? I've tried the function ora: getFaultAsString() but I had the original sin.

    Thank you
    Viktor

    The root cause of the problem is that, in the bpel fault lifted, the details of the fault are empty (i.e.) {summary}, {details} and

     are not populated for  element.
    This same issue was logged and tracked via Bug 12551111 - VALIDATE ACTIVITY DOES NOT POPULATE FAULT VARIABLE FROM CATCH - published on My Oracle Support.
    
    As per developments update in 12551111 :
    Failure content won't be set for standard faults according to BPEL specs. It will be available in the audit trail.
    
    This means that :
    1. {summary} , {detail} and 
    

    will be omitted for standard faults fault variables.
    2. given that the details of 'fault' are not met, "validation" of the variable of fault against the schema (RuntimeFault.wsdl) should fail.

    There is a demand for improvement already filed: Bug 12700279 - FAULT VARIABLE DETAILS ARE NOT POPULATED for STANDARD HOLES.
    Unfortunately, at the moment there is no workaround known solution for this.

    Best regards
    Oana

  • How to catch the flaws of adapter database on OSB jca?

    Hello

    We use a business offering derived from an adapter in jca on OSB database to execute a select statement, then multiple insert/update/delete statements. This set works very well for the positive case.

    However, the insert/update/delete statements must be issued by actions to publish, so if one operation fails, the pipeline gets any feedback about the failure.

    Is it possible for the pipeline for feedback on the success or failure of a call from db adapter?

    I tried setting mode in routing options to request-response, but this causes a null pointer exception since the adapter seems to inherently one-way. Our design is conceptually wrong?


    (We want to avoid writing stored procedures because we want to take advantage of the built-in functionality as much as possible).


    Thank you...
    Garret

    If you want to catch errors in your Actions to publish, and then follow these steps.

    Add an activity of routing inside your Action to publish Options and set the parameter for the movement of stocks as "Exactly Once". By default, this is 'Best Effort'.

    This will ensure that you catch all faults arising from your JCA adapters.

  • How to make the sliders on two plots are linked

    I have two graphics of waveform on the face before (Ch3 and Ch4).  Each of them have the same X axis scale and for each have 2 cursors (0 and 1 slider slider). I want to make cursors follow one another.  For example, I select cursor Ch3 0 and move it to a certain position of X.  I then want to Ch4 cursor 0 to the same X position on the waveform of Ch4.  If I then move the cursor to 1 Ch4 cursor at a certain position of X, I want 1 Ch3 cursor to move to the same X position on the wave form Ch3.

    I tried using the event Structures and it works very well if I want to just Ch4 sliders to follow the Ch3 sliders.  But if I want to be able to adjust and have follow-up else I can't make it work.  If I could get two event structures in the same loop, it could work but A) I read is not a good idea and B) I have been unable to operate anyway.  I'm sure it's possible... could someone give me some suggestions?  Thank you.

    What do you mean by

    lme999 wrote:

    If I could get two event structures in the same while loop...

    ?

    You can manage events in the structure of the event (just set up 2 events).

    (It is true that it is not a good idea to have 2 event structures in a while loop. It's the nature of the stream... the while loop runs only when the two structures event run exactly once. Anyway, usually 1 event structure is sufficient.)

Maybe you are looking for

  • Add a blank line, while Double spacing turned on

    Sometimes, I want to add an additional line to a double spaced document. Is it possible to do so and to map it to a keyboard shortcut, so I don't have to go back a single space and double?

  • Carpet * a UJ - 831S engraving options (Satellite M40X-237)

    Hello I recently bought a Satellite M40X-237 with this carpet * a DVD - RAM drive.For DVD playback in a home theater system, I usually burn DVDs with booktype set to DVD - ROM, so that the reader can read correctly.Problem is that the latter does not

  • Appearance of enter cluster Statechart

    Hello I was wondering if it was possible to change the vertical order of individual entries in the cluster of entry of a caller to States transitions VI. Thank you in advance.

  • Help! Compaq MINI freezes while browsing Internet

    I bought a Compaq Mini Notebook compaq mini cq10-405dx on Black Friday and it performed well. Throughout the last 2 weeks whenever I'm browsing the screen freezes, and you must manually it restart to restart. If you press Ctrl Alt Delete it does not.

  • stop Subvi nonstop main VI

    Hello I a Vi that has a Subvi within a structure of the event, and this sub - VI runs a measure, and to stop it that I have implemented the code for that ater the measure that ends the program stops, by using the STOP button, which is the same as pre