Main reason to put the other exception

Hi all

Just curious, what should be the main reason to put other exception handler in the outdoor unit of a PL/SQL block?

According to my understanding, when others exception all deal with this kind of exceptions that defines us not explicitly in PL/SQL block...

Please correct me if you find me wrong...


Muzz says:

It's an interview question, the options are:

-Can be placed in any order but it work effectively when when put in last

-It facilitates a way to catch all rippled unhandled exceptions within a unit of the whole program.

-When use it first, then it gives less possible information against exception trapped
-If it is placed before the explicit exceptions, then it will catch an exception more and override the ability of the explicit exception handler to run...

Look like, I mean we're correct...? Please correct me if you find me wrong...

So, let me correct you.  (And you could easily test yourself)...

SQL > ed
A written file afiedt.buf

1 declare
No. 2 c;
3. start
4. select count (*) in c of emp;
exception 5
6 so that others then
7 null;
8 when no_data_found then
9 null;
10 * end;
SQL > /.
while others then
*
ERROR on line 6:
ORA-06550: line 6, column 3:
PLS-00370: OTHER Manager must be last among managers of exceptions to a block
ORA-06550: line 0, column 0:
PL/SQL: Analysis of completed Compilation unit

As indicated the compile error, except WHEN OTHERS must be the last in the exception block, so he cannot appear before the other exceptions.

The second answer is correct, with respect to the question asked, it captures exceptions all not managed within the program unit.

The real reason for using has when others is, as Billy said: to clean up the resources, or as a means of recording of exceptions before re - trigger, though often this recording should be the 'highest' level (depending on the context) of the code.

Tags: Database

Similar Questions

  • Adblock Plus working on main identitiy, stopped on the other profile, when I try to download it on another identity, "firefox cannot change the file'message.help please"

    don't know why, but the block of adplus works do not on the other account. When I tried to download it again, he says firefox can not complete... can not modify the file, help please, the amount of the pop ups and ads and the size of them is annoying to say the least. Thank you

    It is possible that there is a problem with the files that store the registry extensions.

    Delete the files (extensions.sqlite, extensions.ini, extensions.cache) extensions.* and compatibility.ini in the profile folder of Firefox to reset the extensions registry.

    New files will be created if necessary.

    See "extension corrupted files:

    If you see disabled extensions, is not compatible, in "tools > Modules > Extensions ' and then click the Tools button, on the left side of the search bar (or click on the"Find updates"button in older versions of Firefox) to check if there is an available update compatibility.

    If that didn't help then also try to delete the file addons.sqlite.

  • Insertion of the stills of DSLR in a mainly video project puts the stills in the video area leaving the video still visible on each side in the background - hints on how to fill the frame completely?

    Inserting still images on a mainly video project causes the video still visible to the left and to the right in the background. What I am doing wrong?

    iansilver

    What version of Premiere Elements and what operating system is involved?

    Can I assume that the stills are on Video 2 video 1 video above?

    If this is the case, place the indicator of the timeline on the still, click on the still image in the editing area monitor to display the bounding box of the image.

    Then use one of the handles of the bounding box to scale the image to fill the monitor space just at the point where the image below is not seen.

    What is your predefined project?

    What are the properties of your source media? And, did you, yourself or the project define the project preset to match the properties of the media source?

    What are the dimensions in pixels of these photos that you import into the project?

    What effect you are trying to create with these stills? Just in case message... the content on the top rail will be visible and content on a lower rail just below it will not be unless there are areas of transparency within the content of the upper track. If there are areas of transparency within the content of the upper track, then the lower content of track appear across these areas. Looks like what happens for you. In addition, Premiere Elements represents transparency as black, not black.

    Please review and study and explain what your goal edition is here. For questions about the questions or the comments above, feel free to ask.

    Thank you.

    RTA

  • Put the other letters

    Hi all

    11 GR 2 DB.

    To change the other letters uppercase the first letter from.
    (it's a kind of token in our app)

    How can achieve us?

    Entry - abcdefgh
    output - AbCdEfGh

    Thanks in advance

    Without splitting chain, hierarchy, model...

    with t as (
               select 'abcdefgh' str from dual
              )
    select  str,
            regexp_replace(initcap(regexp_replace(str,'(..)','\1 ')),'(..) ','\1') new_str
      from  t
    /
    
    STR      NEW_STR
    -------- ---------
    abcdefgh AbCdEfGh
    
    SQL> 
    

    SY.

  • Main document folder and the other for images

    Can I save the document of Muse in its own folder and save all the images into a subfolder.

    The reason why I ask this question is that when I view the "Source" file it has a folder of images in front of the name of the image, as below.

    SRC ="... /images/newheaderwithcontactcell.jpg? CRC = 343601382"alt =" "data-image-width ="380"data-image-height ="93"/ >"

    muse main folder& image foldr-2.jpg

    See the following discussions for a better understanding.

    How can I structure my muse with records cc site

    Muse folder structure

    What Muse will get a folder of void structure?

  • "Folio" DPS dashboard: we're working, not the other!

    Hi all

    I did 2 activities to incorporate in the DPS with edge.

    The fist one working properly! I put the other in another article... I see that the final phase.

    So I tried, with the same structure to change the embedded web content to point to the first.

    So the problem lies in the animation.

    Any idea what this may be?

    I just put a background to fade to the black and then 8 images sliding horizontally with effect of ease back to their final position, it is an animation of 3 seconds!

    Strange thing also is that if I saw the article only (not to the folio) and with the Office Viewer, she worked...

    Thanks for your help

    The value of the retard.125 seconds.

    Bob

  • How to create a movie clip and place the other clips to move inside?

    I followed a tutorial of ping pong (http://www.webzo.org/tutorials/flash/ping-pong-ball-movement.php).

    In the fourth step, it is said to

    4 - inside another Clip named 'Limits' place 'Pads' and the 'wall '.                           Name of the instance of the pads should be "Pads" and instance of the wall called "border".
    We put the wall and trim inside the same Clip, to use it in order to know when the balloon is collided. And we could not put everything together because the ball behaves differently if hit the wall instead of the pads.

    How to create this clip and put the other clips of film "inside"? Also, if anyone can find, where should I put this clip? Should I put it in the same place as the wall?

    Please help out me.

    When you double-click a movieclip to open for editing, you have a work space to put things inside this movieclip.  That's what I call its Stadium.

  • Another reason to hate the Photos app. I want to put titles on the photos that I put in an album to share with others. I can add titles on my MacBook, but not on my iPad Air. I tried to copy the photos from my MacBook to the iPad, but the titles have disa

    Another reason to hate the Photo App. I want to put titles on my photos in an album to explain what are the images. I can do this on my MacBook, but not on my iPad Air. I tried to copy the album (by airdrop) to my iPad, but the titles disappear. Any suggestions?

    Since the Photos of OSX application, select an image (once it's in an album, not in Moments) and you can add a comment that is visible in the Photos of iOS.

  • We have two iPhones, two iPads, two MacBooks. On each calendar events are synchronized via iCloud, except the inscriptions on the iPhone 6 +. They don't publish to other devices if the phone receives entries from all of the other devices. Help?

    We have two iPhones, two iPads, two MacBooks. On all the calendar events synchronize correctly via iCloud except the inscriptions on the iPhone 6 +. They don't publish to other devices even if the phone receives entries from all of the other devices. All the settings on the iPhone 6 + match those on other devices. All iOS and OS 10 software is up-to-date. Anyone have any ideas on what could be the problem?

    Hi there, therex!

    It seems that you have done your inquiry very well and it seems you have reduced to the iPhone 6 Plus. But, since you need see events sent from the phone on all your devices, I'll be happy to help you.

    Archive or make Copies of your Calendar (s) -as you work with live data, be sure to not skip this step to protect the information already there.

    Get help using iCloud calendars - test all the steps, but it has been my experience that I forgot to put this particular calendar as my default calendar.

    Thank you for using communities of Apple Support and have a great day!

  • How to make a single instance of the application regardless of the main application and the other entry point for the application

    Hello experts,

    I explain the sceniro of my application. My request is mainly a time system as well as some other features related businesses. My app has a landing screen which is actually a custom made calendar that accumulates information captured time. There is also a time where entry screen user at will has worked time and other related information. The user has the option to run the application manually at the entrance of the time and see the reports and there the event listener to follow the events of call/SMS/e-mail that invokes the application automatically and user to the scree of time entry.

    Problem one: I used headphones to follow the events of call/SMS/e-mail. When an event is called, alternet point of entry of the application the application is running. Application then get calls time, contact information etc. and push my entry screen with pre-filled information time.

    As such, it works very well, as expected, but the problem is the number of instence that he is creating. Each track event creates a new instance of the application. I want to keep only one instance.

    Two problems: to solve this problem, I removed the other point of entry and RuntimeStore to keep the running instance of my application. This instance of the application in a way keeps in singletone as such when the listener calls the application it finds that the application is running in the background. Then she moves the application to the foreground. It works very well, I mean the application user interface called on the foreground, but he won't have to time entry screen automatically as I hope. The block of code is as follows,

    public static final long applicationID =0x8ddc44508679bd5bL;
    static NSIApplication NSIInstance=null;
    RuntimeStore runtimeStore = RuntimeStore.getRuntimeStore();
    
    if (NSIInstance != null)
                {
                    NSIInstance.requestForeground();
                }
                else
                {
                    synchronized (runtimeStore)
                    {
                        NSIInstance = (NSIApplication)runtimeStore.get(applicationID);
                                            //listener initialization
                        NSIListener.Initialze();
                    }
    
                    if (NSIInstance != null)
                    {                   NSIInstance.requestForeground();
                                        //event's info manipulation and push the time entry screen                                     NSIInstance.RUN_NSIApplication();
                    }
                    else
                    {
                        NSIInstance=NSIApplication.getInstance();
                        NSIInstance.RUN_NSIApplication();
    
                        synchronized(runtimeStore)
                        {
                            runtimeStore.put(applicationID, NSIInstance);
                        }
    
                        NSIInstance.enterEventDispatcher();
                    }
                }
    

    I expect a guideline to follow so that I can reach the expected my workflow. Thanks in advance

    I can't propose to use the runtimestore to store instances of the application, as it was used on an example RIM, he has never worked for me.

    I suggest to use a single point of entry and the automated screen using a global event or status in the runtimestore.

  • What is the main reason for the use of SERIALLY_REUSABLE in your package?

    Hi Experts,

    What is the main reason for the use of SERIALLY_REUSABLE in your package?

    At first glance, the most popular reason seems that some developers forget to close cursors. Therefore, it is a good way to close automatically when your code is stopped during the same session.

    Second, if your business rules require that package variables still need to put the SERIALLY_REUSABLE default values is good for this.

    So, what's your reason?

    Thanks in advance.

    From http://docs.oracle.com/database/121/LNPLS/packages.htm#LNPLS99924:

    After the unit of work (call Server) a SERIALLY_REUSABLE complete package, Oracle database performs the following operations:

    • Closes all open cursors.
    • No free memory (for example, memory for collection and long VARCHAR2 variables)
    • Returns the instantiation of the package to the collection of reusable instantiations kept for this package.

    Explicit cursors in SERIALLY_REUSABLE packages:

    http://docs.Oracle.com/database/121/LNPLS/packages.htm#LNPLS99923

    I would not support using SERIALLY_REUSABLE instead of programming and the cursor's lifecycle management practices.

    > What is the main reason for the use of SERIALLY_REUSABLE in your package?

    If your package uses large amounts of memory in the State, especially in a multiuser environment heavy wherever the memory usage adds up and memory will not clean until the session is closed and the State is not held beyond the call to the package, then there's your use case.

  • In first items 14 scene selection from the Menu movie (Motion, holiday, Christmas frame) does not bind the scene 6 main Menu page. It places the scene 6 2 Menu scenes, but unrelated to the other, the main or scene selection Menu. What it

    How can I edit a movie Menu template? I use a Motion - celebrations and events - model of menu for Christmas related to 6 scene markers. Five scenes are represented by a thumbnail and name on 1 Menu scenes that appears when the button on the main menu page scene selection is reached. However, the scene 6, which has also a sticker and marker corresponding scene, is on another page (Menu 2 scenes) that does not link to the home page (does not appear in the scene selection Menu that has just 5 thumbnails and an arrow to return to the main Menu). In the area of work under the clip monitor Main Menu 1, Menu 1 and Menu 2 of scene scene appear together and by clicking on the thumbnail in the scene 2 menu the link to the clip 6 works except when Preview Disc is played, in which case the Menu 2 scene disappears. The scene marker is correctly linked, it just does not appear in the menus of the finish. The first five items of the Assembly (related to the scene selection menu) are all the video clips, but the 6th clip is a slide show. I read several threads on menus but found no mention that a slide show scene marker is treated differently by a menu template. Is it? The 5 first clips are all in the format AVI - DV with imported project files previously saved in this format, so that they could be related and engraved on a DVD. The slideshow is imported from PSE14 and 6 attached clips have already been burned successfully on disk (without menu) as a try-out. However, I was not satisfied with the resolution, then saved individually at the only other resolution DVD - SD576. Now I'm stuck at getting this sort menu. I operate 10 WIN. Any help will be accepted with gratitude.

    Hi, thanks for your response. I can rephrase the question very easily: why I've been so stupid? My problem was that I couldn't see a link in the menu between the Menu scenes 2 template and the main Menu. It turns out that the link was there all the time (a sideway arrow just above the main Menu link) but I thought he was part of the link from the main Menu and never clicked on it. When I burned my project to a disc and played on television, the sideway arrow was a different color and, of course, another link... the link I was looking for. Then, my apologies, problem solved, lesson learned - click on everything you see. Thank you. And I was very happy since the upgrade to 14 before except when it makes me feel stupid, which is frequently.

  • Playing several clips video one after the other on the main timeline

    Excuse the probably simple question but I'm just starting with Flash.

    I imported a few trailers directly in flash and saved as video clips.

    I want to be able to insert these clips on the main timeline and play one after the other, by repeating once they all played.

    In the main timeline, I put one layer for each clip and a keyframe where the clip is inserted for each layer.

    When I go to play the flash file, is to show the first frame of each movie file and before the first frame of the next movie file.

    What should I do to make the entire movie file flash game in this specific context before moving on to the next section where is the following file in the sequence, then to play all this film?

    Sorry for what is probably a simple thing to ask.

    Thank you

    Create a new layer actions on the timeline stop() and the main square. commands on this layer in each frame where resides a movieclip.

    In each clip, at the end (last image) you mean the main timeline to play(); While it moves to the next section (where it stops because of the stop() commands you add).

    If at the end of each movieclip you put either:

    AS2: _parent.nextFrame ();

    for AS3: MovieClip (parent) .nextFrame ();

    For the last movieclip in programming, you will replace nextFrame() by gotoAndStop (1);

  • can not put cookies and exceptions on the same screen. Need to fix this.

    Went to the options today and the format has changed. Now I can't put Cookies and Exceptions on the same page at the same time. It is vital that I can put together up to manage cookies. Please fix this. Anyone have any ideas?

    You can enable/disable browser.preferences.inContent false on the topic: page config to restore the autonomous Options/preferences window you had in previous versions of Firefox.

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

  • How can I get the Extension toolbar icon to display the image without text (without affecting the other icons universally)? How can I change the text of the icons (except space)?

    «In the drop-down view menu, you can choose what to display toolbars: icons, text, or icons and text together.» By default, Firefox shows icons only. "Is it possible to choose a setting for a specific toolbar icon to be icon only (no text) without affecting all the other icons on the toolbars universally?

    Second, is there a way to edit the text on a toolbar button by another extension (because it takes up too much horizontal space in the toolbar because of the amount of text)? I do not know how to locate the xpi file and open it with Notepad, but then it is mainly (not English) code & FIND is not to search the text of the button (to change).

    These 2 questions should apply to the buttons of the Extension in general. However IF it makes a difference I'm talking for the toolbar button back to 7.0 top of the page that says 'Go to top/bottom '. I would like to at least change on "Go to", but my questions also apply to the other buttons Extension. I realize that it may be necessary to redo a fix/change whenever there is an update? Thank you.

    You should always see this icon that only the text of the label could be hidden.

    You can try this code in the file userChrome.css below default @namespace.

    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    
    toolbar[mode="full"] #b2tTBUnicon { min-width:0px !important; }
    toolbar[mode="full"] #b2tTBUnicon .toolbarbutton-icon { margin-top:-20px !important; }
    toolbar[mode="full"] #b2tTBUnicon .toolbarbutton-text { display:none !important; }
    

Maybe you are looking for