How to handle the no_data_found exception
Hi allHow to treat no_data_found exception in the procedure. I created a procedure with the cursor, the cursor loop and passing the value to the select statement (in the where clause). It works fine if the select statement returns one other wise he throws exception no_data_found, but I want to continue execution after the statement select returns no ecor. Please let me know how to handle this.
Thank you and best regards,
Rajasekhar
Hello
Assuming it's the syntax of your procedure:
create or replace procedure XXXXXX as
.
.
.
.
for cur_rec in
loop
.
.
.
.
.
.
begin
exception
when no_data_found then
end;
.
.
.
.
end loop;
.
.
end procedure;
Tags: Database
Similar Questions
-
How to handle the case of zero insert line?
11.2.0.2, I want to insert into a table and you want to handle the case where the zero line is inserted. I use the following code and hope an exception is caught and let me have the chance to do something
The block runs OK, but not seen release. How to handle the case of insertion of line 0?set serveroutput on begin insert into his2051 select * from his2051 where today not in ( select distinct today from his2051 ); EXCEPTION WHEN NO_DATA_FOUND THEN DBMS_OUTPUT.PUT_LINE('NO_DATA_FOUND exception ' ); WHEN OTHERS THEN DBMS_OUTPUT.PUT_LINE('OTHERS exception ' ); end;
This will do what you want:
set serveroutput on begin insert into his2051 select * from his2051 where today not in ( select distinct today from his2051 ); if SQL%ROWCOUNT = 0 THEN DBMS_OUTPUT.PUT_LINE('%rowcount must be [' || SQL%ROWCOUNT || '].' ); DBMS_OUTPUT.PUT_LINE('NO_DATA_FOUND - but won't cause an exception ' ); END IF; EXCEPTION WHEN OTHERS THEN DBMS_OUTPUT.PUT_LINE('OTHERS exception ' ); end;
-
How to handle the onTriggered many ActionItem created dynamically
Hi, I created the ActionItem dynamically using (loop)
because data is from webservice
How to handle the onTrigerred?
If my code is like this:
for (int i = 0; i)< alist.count();="">
{
My page page * = iRoot-->
findChild ("SpecificObject");
ActionItem * action = ActionItem::create () .title (aList [i] .name);bool res = QObject::connect (action, SIGNAL (triggered ()), this, SLOT (handleAction (())); what I'm confused because I don't know what action is triggered
Q_ASSERT (res);
Q_UNUSED (res);my page-> addAction (action, ActionBarPlacement:efault);
}
MyClass::handleAction() Sub
{
aFunction(); This parameter of function required of aList, said user.user aList [i]
}
Do I need to create handleAction() as well as added actionItem SLOT
But I don't know how much action added because it is dynamic server
Thank you
There are a few options:
Create a single location and connect all the signals. You can then call sender() into the slot to retrieve the object that sent the signal and go from there. You can also use a QSignalMap that maps each signal to a value and send this value to a single location. You can also use QSignalMap::sender() to get the sender object.
I used the QSignalMap to do something similar for handling created dynamically successfully drop-down lists.
-
Hi all
Can someone tell me how to handle null.
I have a radio button, I need to capture the worth and inspiring I have a search criterion.
If I select the radio button without problem. If I did not choose the option button it gives me the error.
OAMessageRadioButtonBean var1 = (OAMessageRadioButtonBean) webBean.findChildRecursive ("job"); If (var1! = null) { S1 = var1.getValue (pageContext) m:System.NET.SocketAddress.ToString (); } Please suggest.
Kind regards
Sangu
S1 = (String) var1. GetValue (PageContext);
-
Inactive Contacts - how you handle the?
We currently have XXX, XXX (there is no way I'm telling you, in fact) of contacts in Eloqua, which is not just whatever be done in a VERY long time. We have recently acquired another company who does not use Eloqua and working on their integration in our system. Now I'm sure that like Eloqua me just buy more space, I work on a project to clean up the deadbeats and leave room for shiny new customers. The program that we run has three points of contact, and if a customer engages in any of the steps they got out the program and will be left in the system. In the last step we let them know that if we do not hear back from them within 10 days, we will assume that they are super busy and we will remove them from our database. Also, we are ignoring those who joined in the last 12 months, because they can always be interested in reading some of our materials and have not gotten yet around him.
This seems to be an Amir of a program and will surely cause our stats boost then because we send is more people that never open anything.
How you handle these kinds of people? Do you agree with our approach?
Absolutely! It is a perfect process. In my life earlier as someone who was directly in the marketing of opps, we did this process manually about every 3 months. Automating this process with a campaign and send to the PB to automatically remove contact looks a perfect nurture automated.
You can even include the verbiage in the last email, if they "do not" provide this mail they will be removed from the system.
-
How to handle the task of automation without connection SGD-Automation
Hello
I have created an Automation task, the task performs the work, but after completing the work, I need to connect SGD-automation user and update the status of the task to move to the next step. How to avoid manual handling in the task of automation? How to do the task to go to the next manual task without connection with CMS-automation.
Kind regards
MargIn your Xquery use the syntax "context: completeTaskOnExit ($context, $exitStatus).
Set these two variables ($context, $exitStatus) according to your required exit status.
Hope this has helped.
Thank you
-
How to avoid the OutOfMemory exception in an intensive application of memory in Java?
We have developed a java application, whose goal is to read a file (input file), treat it and convert it into set of output files.
(I gave a generic description of our solution, to avoid irrelevant details).
This program works perfectly well when the input file is 4 GB, with memory settings-Xms4096m-Xmx16384m in a 32 GB of RAM
Now we need run our application with the input of size 130 GB file.
We used a linux machine with 250 GB of RAM and memory setting of - Xms40g-Xmx200g (also tried a few other variants) to run the application and click on OutOfMemory Exception.
At this stage of our project, it is very difficult to think about the redesign of the code to meet hadoop (or someother large-scale data treatment framework), the current hardware configuration which we can afford is also 250GB of RAM.
Can you please offer us ways to avoid the OutOfMemory Exceptions, what the general practice when developing applications of this kind. ?
Thanks in advance
Thanks a lot for all your quick responses.
We decided to investigate the Redis it will solve the problem that is described in the post. All hashmaps can be put in databases (secondary memory) and exceptions of memory can be managed.
-
How to handle the larger size than the movie disc?
I couldn't see a razor tool, or something like that in yet that I can use to cut the video if it is larger that the DVD could hold. What could I do if I am OK to remove some content in order to fit into the drive?
Thank you!
How to cut the timeline? This is the part that I don't understand.
I don't know that you can. And if you can, I'm not saying that it is a bad idea.
Drag the end to the beginning. This makes it shorter.
Drag the beginning to the end; then drag the element remaining in the beginning (do not leave any space empty).
-
How to handle the OAMessageLovInputBean Action?
Hello
Can someone help me on how to manage the activity or action of OAMessageLOVInputBean?
Thank you.
JonJon,
If (pageContext.isLovEvent ())
{
Form has been sent because the user has selected a value from the LOV modal window, either because the user tabs to the LOV of entry.
Find out what entry LOV triggered the event.String lovInputSourceId = pageContext.getLovInputSourceId ();
At this point, all data are available in the VO base, just like regular events of PPR. Call AM an method for updating application VO properties.
If ("myLovInput".equals (lovInputSourceId))
{
am.invokeMethod ("handleMyLovInputEvent"); Invoking method here AM
}
}Thank you
-Anil -
How to handle the exception in the OSB 11 g
Hello
In my project, level of service proxy must add exceptions, please inform me the steps.
Please let me knowHello
Proxy handling OSB service error is possible in 4 ways.
Stage - manages all the errors in a stadium.
Pipeline - manages all the errors in a pipeline, as well as all errors not managed any stage in a pipeline.
Service - manages all the errors in a proxy service, and errors not managed in a pipeline in a service. All errors of WS-Security are addressed at this level.
System - handles all errors that are not anywhere else in a managed pipeline.
You can find more info on links below.
http://docs.Oracle.com/CD/E21764_01/doc.1111/e15867/modelingmessageflow.htm#i1040168
http://svgonugu.WordPress.com/2011/06/15/fault-handling-in-OSB/See you soon,.
Durga -
How to handle the null pointer exception in session management
Hello
I use jdeveloper 11.1.1.6.0 version.
I am using following code session storage
and retrieve it using the following sentenseabcList = new ArrayList<abcVO>(); JSFUtils.storeOnSession("key",abcList );
It's ok I'm able to get session value because I record it first.abcList = (ArrayList<abcVO>) JSFUtils.getFromSession("key");
But I want to know if the list is stored in the session scope earlier if not then want to store
If the data are not present at a meeting and I'm its value before it is stored, he throws null pointer exception
How to check if the value is null or not null before you access the session.abcList = (ArrayList<abcVO>) JSFUtils.getFromSession("key");
Hello
if(JSFUtils.getFromSession("key") == null){ .. create it here ... }
Frank
-
Hi my jdev - 11.1.1.7 version
I ask a socket connection in my AM and I want to catch the exception of the sockettimeout of t and display the error message in the user interface of the view layer.
I use customException class that extends DCErrorHandlerImpl, but if we use try catch, then exceptions doesnot reach customclass.
How to catch exceptions and return to view the layer if we use the operation binding. ?
Because you call the operation via the link layer, which is perfectly fine, you do not get an exception at all. Exceptions thrown in methods called via the link layer are captured by the framework and transferred to the appellant in the operation binding.
For that, you get the list of errors after the call returns and add them as messages of faces
execute the method
Method.Execute ();
List errors = method.getErrors ();
If (! errors.isEmpty ()) {}
handle errors errors here is a list of exceptions!
We only get the first
E receive = errors.get (0);
FacesMessage msg = new FacesMessage (FacesMessage.SEVERITY_ERROR, e.getMessage (), "");
FacesContext.getCurrentInstance () .addMessage (null, msg);
}
no error return to normal work
Timo
-
I bought the printer mumbai to donote to my school in my village. I tested the printer in mumbai and now want to take to my Village. I have to travell 15-20 hours by Bus to get to the place. So just wanted to know what kind of precautions should take before departure.
A few things came into my mind was as below
(1) should handling cartridge - I remove the cartridge of the printer? If Yes, then, is there any specific packaging should do. As boxed lunch or something.
(2) I have the original box, so I'll be packaging printer except cartridge in this area.
Any guy of pointers?
Thanks in advance
Ashok kamara
Hey Ashok,
It should be possible to carry the printer with you on the bus. The printer will be with you or it will be in one area of luggage on the bus?
It should be possible to leave the cartridges in the printer, but they must be original and held in the ceilings of the printer. To ensure that cartridges are held in home position please turn off the printer on the power button and wait that all the noise to stop. Cartridges would then be held in the ceilings of the printer. This should be reasonably sure. Then unplug the printer from the outlet on the wall.
If the cartridges are removed from the printer, then it would be difficult to preserve them so that they may function properly after a trip of 15 to 20 hours outside of the printer it is therefore better to keep them in the printer, but they must be original and held in the ceilings of the printer.
Given that you have recently purchased this printer it would be better to put back in the box with all foam packaging printer who was with her when you bought it. In this way they will be protected during transport. If you do not have the box and the packing of origin perhaps put in a bag with bubbles of air or paper around it to protect it when you travel. If possible, it would be preferable to keep it with you on your knees on a trip, but this is not possible.
This is the best advice I can give. I hope this helps.
I can't guarantee anything, but it would be better to check it out again when you arrive at your destination.
-
How to handle the case end good app?
Hello
I'm creating an application for BB Storm2 5.0 device. I have a function to maintain a custom in app menu item native contacts, and clicking from there, brings to my screen of the application. It works very well.
Problem occurs in the following steps:
Steps to follow:
1. start my native element menu contacts application, launch my app successfully screen.
2. then if I press the red button, launching the device home screen.
3 then run on the native Contacts application once again, throw my request directly instead of native contacts.
Because in step 1, I launched my application screen in the menu contacts native. Because it does not have closed earlier, lance on native contacts spear my request.
Anyone explain how can I handle this situation?
Thank you.
What amrishodiq said, this isn't 100% correct. Let me correct that, then explain what you see:
You can add the ApplicationMenuItems without even starting your Application, by doing this in the treatment of hand (.). If your application is present or not is irrelevant. In fact, if you add them to the start of your application, you can get several added entries, must be careful about this.
What amrishodiq said about the red button and the usual methods of closing an Application is correct. If you really want to exit your Application, is to call System.exit (.). This happens automatically if you use the screen and you close the last screen in the stack to display.
That said, you're doing something completely different here.
You run in a Menu of Application element. This menu item runs your code, but it is actually run by the Contact Application. That's why, when press the red button and then relaunch the application contact, you view your screen. If you had an icon for your Application and you have clicked on that right now, you will see a different screen.
In this case, if your screen called System.exit (.), he was closing the Contacts Application.
The problem of the listeners and ApplicationMenuItems running in the Application they are related is something that comes up quite often on this forum. You really need move on to your own application and process the contact in there. There are complications with it, make it seem easier to do what you're doing, that is just run your screens under enforcement Contacts. However, I would recommend that you look at putting in a global events in the context of switch for your application, I think it's a better long-term solution.
-
How to handle the UAC to run the file?
Get a weather app to run each time that the boot of win7, but it always pop up to alert security of the UAC.
I would like to know any approach to handle this situation:
(1) add known run the file in the lists of confidence, so he would not jump to the top once again
(2) turn off UAC
Does anyone have any suggestions?
Thanks in advance for your suggestions
There is no "trust list" for UAC because that would be a weakness that hackers could exploit immediately. You have these options:
- Download a compatible version of Windows 7 software.
- Ask the supplier, how it can be changed to be compatible Windows 7.
- Turn off UAC (not recommended)
Maybe you are looking for
-
If I have more access to a device, how to do a sync - it?
My phone is synchronized with my computer laptop ex friend and also synchronized with a friend of his phone. I don't want him to see that he has my words of past or history research. How can I UN-sync my email settings and firefox to its devices with
-
How do I enter previous old Stickies of a hard drive?
For reference, here's my situation: My old Macbook pro has liquid damage, but the hard drive was in perfect condition, so I have all my files, but I don't know how to access my aide-mémoire (the widget and one through the app). I have the last update
-
Smart touch want 23: impossible to reset win 10
I was not able to reset my computer after that I upgraded from win 8 to 10 to win. I tried the system restore and startup repair, got a message says "WDF_violation". I also tried to restart the computer from a recovery disk on a USB hard drive that
-
Microsoft updates keeps laptop computer misuse of my husband
The other day I jumped the laptop open & he said that it has been updated 2 3 or something to that effect. It remained like that for hours without having it done. I had to do a repair and restart it at an earlier date to get going again. This has hap
-
Lost XP and reinstalled. Now the drivers for the Ethernet controller and a PCI Simple Configuration are not there. Can not find them, is there a place I can get these drivers.