avoiding the multiple connection so that others

If I nested call of procs such as JAVA p1 calling calling calling p3 p2 calling p4 and each of them have a call to a stored procedure to the error in the log and re-raise so that the java layer is notified of the exception, then the error is recorded several times in each nested proc as the exception propagates upward to the java layer and is trapped by WHEN E.A. and revived each proc. Even if I take Tom Kytes advice and limit the OTHERS WHEN in p1 alone though the outermost proc I would still need to log the exception exactly where it happens because I have all the context information tell in p3. But WHEN OTHERS in p1 would always double check the exception.

Any successful implementation of suggestions / real to this problem?

user4900730 wrote:

That's exactly my question. I want to immediately connect the error say p3. But how should I inform p2 and p1 it has already been saved.

You can use a global variable (defined in a packet header and usable by any code of PL in this session) for example is a Boolean.

If TRUE then the LogMessage() procedure called from an exception handler logs an exception. If FALSE, it is not.

You can now set to true by default. The first time that LogMessage() is called in a session, she saves this exception, and then set the variable false - preventing any future exception being saved.

So what you want to do, is not feasible. I wonder, however, whether this approach is sensitive for the reasons that I said previously.

The previous answer by BILLY VERREYNE indicates that multiple logging of the error should not be considered a problem. Maybe I'll settle for that.

You can always report on an exception. Let's say that your LogMessage() procedure registers the exception with a timestamp of system (using a stand-alone insert) and with a single session or the process identifier, a journal table.

P3 throws an exception. It connects there. P2 catches, saves her and it triggers again. P3 grabs and it opens a session.

You have now 3 exceptions to the process. Each with a different timestamp. Your report for people dealing with exceptions can select the first exception (using the time stamp) that took place for this process.

At the same time, you have a pile of complete call procedures that handled the exception which may shed more light on who called p3 when the 3 p exception occurred.

Consistencyis a concept important in software engineering *. Consistency in design. Consistency in the code.

If the p1 exception handler must act differently from p2 and 3 p (because of the requirement of logging) exception handlers, you now have an inconsistency in the design and code. This makes the design more complex and more complex code. Increase of complexity makes the code more difficult to read and to understand and maintain. Increases the likelihood of bugs.

This is the fundamental reason why I don't like the approach you plan to record an exception only once to avoid a kind of duplication. There is inconsistent behavior of the code and exception handlers.

Rather deal with this (no exception duplicate) requirement to report on this matter - as it is much more logical to apply the filter and reports logic to transform the data on exceptions in useful information for users.

Tags: Database

Similar Questions

  • 'VMware Workstation does not support the multiple monitors feature in other guests'

    When I click the icon "Cycle multiple monitors", I get the message "VMware Workstation does not support the multiple monitors feature in other guests."  Google found me no hits on it.  Anyone know what that means or how I could get multiple monitors to work?

    The host OS is Windows 7 Professional x 64 with service pack 1 applied.  The guest operating system is Debian Linux, version 8, also 64-bit.

    $ uname - a

    Linux debianvm 3.16.0 - 4-amd64 SMP 3.16.7 - ckt9-3 #1 ~ deb8u1 Debian (2015-04-24) x86_64 GNU/Linux

    The virtual machine was created with VirtualBox, then exported to a .ova file, then imported into VMware Workstation.  VMware Workstation is version 11.1.2 build-2780323.

    -Steve

    Hi Steve and welcome on VMware communities!

    With your virtual machine turned off the power, go into the settings of your virtual machine and on the Options tab, under general, select the client OS type: Linux > Debian 7 64-bit.  Then try to turn your virtual computer and see if it works.  (8 debian is quite close to Debian 7.)

    See you soon,.

    --

    Darius

  • My laptop screen shows just the color of the cursor and background that other users can connect as usual

    Dell Inspiron 1525 Windows Vista, I can only log in safe mode please help!

    Hello

    Thanks for posting your question in the Microsoft Community forum!
    Description of the problem, it seems that you can only connect in safe mode on the windows vista computer.

     
    I would appreciate if you can help me with the following information.

     
    1. don't you make changes to the computer before this problem?
    2. you receive an error message/code?

     
    Try these methods to start the computer in normal mode.

     
    Method 1
    Put the computer in a clean boot state to see if there is a software conflict as the clean boot helps eliminate software conflicts.
    http://support.Microsoft.com/kb/929135
    Note: After completing the steps in the clean boot troubleshooting, follow step 3 of the link to start the computer to a Normal startup mode.
     
     
    Like the other users can log on as usual. Try to perform a restore of the system in safe mode.
     
     

    Methoad 2

    Try to run in safe mode system restore.

    Step 1
    Try to start the computer in safe mode, here is the link:
    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode

    Step 2
    Once you start the computer in safe mode, try to perform the system restore and check that if it helps, here is the link:
    http://Windows.Microsoft.com/en-us/Windows-Vista/system-restore-frequently-asked-questions

    It will be useful.
    Let us know if you encounter problems under windows in the future. We will be happy to help you.
     
  • Avoid the multiple join

    Hi all

    How can we avoid multiple join for queries like this

    Select temp1 a, temp1 a.x, b.x, c.text a, c to temp2 where a.y = c.y and b.y = c.z

    So, it will scan temp1 twice. Can we do this to analyze only once

    application of warehouse that joins the tables more then 5-6

    Well, it certainly changes the circumstances ;)
    However: put you it in a small testcase, everyone can play and test with, thanks for this anyway.

    If am understanding right

    What I wanted to point out, is that you will need to run tests on your own configuration (equipment/sets/distribution, etc.)
    My little test notes (on my setup, which is not a warehouse at ;)) there's still nothing wrong with a full table scan + hash join.) It would be 'better' in 'my cases '.
    But "your case" is quite different.
    One thing I do know of: your hardware will be better than my old Windoze pc by orders of magnitude.
    Optimizer considers several aspects (selectivity of cpu/data etc.) that will completely differ from my plans.
    You should compare the different options you have in tracing the respective motions, you think that you could use, each of them and compare the results you get. Choose the one that suits.
    So: you are about to go to the next level:
    Always test and measure these things, different scenario that are available.
    As there is no generic datamodel, it is not a generic 'alter system set fast = true' option (yet).
    Optimizer tries to keep track of each scheme and did the best that he can do, but it's also been polished every version.
    Therefore: never take results things for granted.
    Now I could say, just as everyone else: 'approach 'A' works better. Period. "(And create a"Silver Bullet"myth and selling lots of books perhaps ;))
    But we'll just have to say: ' approach 'A' works best, on my setup, using dataset X to version Y etc.. and I tested these scenarios, here are the results to which it will be clear why I chose approach 'A'. '. Your results may be different, because I don't know your configuration. "

    This is just good old: 'it depends' (after you ask 'why?')
    And then you will need to dive into your system to "understand why."
    You will need to test and measure.
    trace/tkprof and/or AWR is here to help you with it.

    Sweeping two large table in one of them was sweeping twice for this.

    What is today a large table? The number of records? What is the index? Is there present asymmetric data?
    I'm just pointing to this point, because all that comes to play.
    You should ask a lot of questions in order to get a grip/overview.
    Keep an open mind.

    So, I was looking for as an alternative to avoid twice scan

    Maybe you don't even need to. Perhaps optimizer has done the best it could do for you.
    But please, if you want to be sure: test, trace/tkprof and you will get your answer.
    If you are unsure of the results you can always post and ask here or the DBA (and some authorities of Tuning that hang out there as well this subject ;)) @ the [General Forum database | http://forums.oracle.com/forums/forum.jspa?forumID=61])

    Enclosing: tips are usually a path of last resort. At least: on my PC sloppy, they are always ;)

  • Avoid the multiples of scanning for performance

    Hi gurus,

    I have the query which is identical to type of givin in the example below which is the scanning table 3 times. We can avoid this 3 times analyze and improve.
    create table xyz(c_id number(4),c_state varchar2(2), c_code number(2), c_date date);
    insert into xyz values (1,'IL',4, sysdate);
    insert into xyz values (2,'IL',4, sysdate);
    insert into xyz values (3,'IL',4, sysdate);
    insert into xyz values (4,'IL',5, sysdate);
    insert into xyz values (5,'IL',5, sysdate);
    insert into xyz values (6,'IL',5, sysdate);
    insert into xyz values (7,'IL',6, sysdate);
    insert into xyz values (8,'IL',6, sysdate);
    insert into xyz values (8,'IL',6, sysdate);
    insert into xyz values (10,'IL',4, sysdate);
    insert into xyz values (11,'AL',1, sysdate);
    insert into xyz values (12,'AL',1, sysdate);
    
    select c.*
      from xyz c,
           (select a.*
              from xyz a
             where a.c_state = 'IL'
               and a.c_code = 4
               and exists (select 1
                      from xyz b
                     where b.c_state = 'IL'
                       and b.c_code = 5
                       and trunc(a.c_date) = trunc(b.c_date))) d
     where d.c_state = c.c_state
       and d.c_code = c.c_code
       and d.c_id = c.c_id ;
       

    Don't know if that's what you want, but the result matches your query.

    select c_id, c_state, c_code, c_date
    from (select xyz.*,
                 sum(case
                        when c_code = 5 then
                         1
                        else
                         0
                      end) over(partition by c_date) ct_5
          from xyz
          where c_state = 'IL')
    where c_code = 4
    and ct_5 > 0;
    
     C_ID C_STATE C_CODE C_DATE
    ----- ------- ------ -----------
        1 IL           4 02/04/2010
        2 IL           4 02/04/2010
        3 IL           4 02/04/2010
       10 IL           4 02/04/2010
    
  • LabVIEW can not detect the network drive so that other applications can.

    All network drives are mapped correctly and another application such as micro soft office or windows explore can see the correct mapping LabVIEW can not see the mapping? No idea how to solve this problem?

    -VS

    The solution: Add EnabledLinkedConnections to the registry

    https://TechNet.Microsoft.com/en-us/library/ee844140 (v = ws.10) .aspx

  • How to add a text box to the pdf format, so that others can fill

    How can I insert text in PDF nightclubs as well as others can fill it when it is sent to them?

    Hi susansln123,

    Refer to this KB document for help Acrobat help. Forms.

    Kind regards
    Nicos

  • What is the fastest connection that I can use for a new external SSD for my MBP late 2008?

    That IS the question. I want a new external SSD for my MBP late 2008.

    What is the fastest connection type that works?

    'External' and 'SSD' could be a problem.  SSDS are different animals of disks spinny.  Some will say that you need not trim on SSD (TRIM is a management tool to move only the ' opportunity' bytes in a block when the block of data is moved), but definitely TRIM does not work on USB or Firewire.  Not sure if the TRIM works on Thunderbolt connected readers as it does on disks SATA-path, however.

    Speed included between slower and faster, however: USB 2.0, Firewire 400, Firewire 800, USB 3.0, love at first sight.

  • How to change settings is disconnected so that other applications are not automatically closed?

    original title: log settings (windows 7 Home Premium)

    For Windows 7 Home Premium, how can we change the log settings so that other applications are not automatically closed with log off?

    I'm trying to keep Microsoft Word and files that I have worked on before closing logon.

    [Moved from the Word forum; please move again, if this isn't the right subforum]

    At best, I think all you can do is Pin password to your taskbar,

    Enable recent items, jump lists

    Right click your Start button and select Properties,

    Check the two boxes of privacy,

    Then at least you will have this item / items on the jump list, you can open it immediately when you log back in.

    You will still need to manually, save your work or value Word Auto save every minute / 60 seconds...

    But when your disconnect there is no way to have a program remain open.

  • avoid the following edge button clicks animate (was: click on Disable)

    Hi all!

    I have a box that comes alive when you click on it and a separate button that resets this animation.

    I try to avoid the following clicks so that the animation plays again after the first click.

    I tried

    SYM. Play();

    SYM. Stop ("End");

    that worked, but she also ignored the animation and went straight to the 'end' (haha).

    Thanks for any help!

    Hi Ian,

    If you want to bring back the event handler when you click on 'X '. Then, this is not possible if you delete the event handler using wide.

    Rather than use to remove the event listener. Check if 'X' is displayed and the operation

    If (sym.$("Text"). CSS ("Display") is 'none')

    {

    SYM. Play ("Play");

    SYM.$("text"). Show();

    SYM.$("mail_icon"). Show();

    SYM.$("Rectangle2"). CSS ("Cursor", "default");

    }

    Similarly the Manager click for 'X' will be constituted as follows

    sym.playReverse ("mailout");

    SYM.$("text"). Hide();

    SYM.$("mail_icon"). Hide();

    SYM.$("Rectangle2"). CSS ("Cursor", "point");

  • What is a substitute for the migration assistant? I tried in vain for three hours to migrate files from a macbook pro to each other so that even if connected with the ethernet cable the computers never see each other.

    What is a substitute for the migration assistant? I tried in vain for three hours to migrate files from a macbook pro to each other so that even if connected with the ethernet cable the computers never see each other.

    You can connect otherwise?  USB or FireWire or love at first sight?  You can connect both machines and start the one you want to transfer to target disk mode.  If your other machine is up and running with an account on it and you just want to move files, you can simply drag and drop the FRO the machine mounted TDM, or you can use the migration wizard.

    Or, if the other machine still starts and runs, you can start both computers and connect to the same wifi network and share the hard drive like machines on the network.  Access them in the finder on the new machine files and drag-and - drop, or use the wizard migration, on wifi.

  • Hi, I have a PDF form that has multiple check boxes. Some boxes have values (off, yes) that others have just (Yes). How can I get the value of "Off" to all of the other boxes as well. Any help is greatly appreciated.

    Hi, I have a PDF form that has multiple check boxes. Some boxes have values (off, yes) that others have just (Yes). How can I get the 'Off' the value assigned to all the other boxes as well. Any help is greatly appreciated.

    'Off' is the default value of any box when it is not checked. It can not

    be changed.

  • The homepage of Firefox will not develop my text in the search engine when I am connected to my Google account. In other words, when the top of the page is enabled (that is, the bar tabs allow you to read: + you, search, Images, videos, Maps, news, etc.).

    Here are a few screenshots that highlight this:

    http://i.imgur.com/HpyDl.jpg

    http://i.imgur.com/BjAdf.jpg

    http://i.imgur.com/MCkbU.jpg

    What is happening in the screenshots is identified on the left in black text. Basically, I don't see the search field bar. I can still type and get results, but the text I typed will not appear.

    Please note that the Google bar upstairs is turned on because I'm connected. Now look what happens when I log out of it:

    http://i.imgur.com/oSoZ2.jpg

    I run on Windows 7 64 bit. I have the most updated version of Firefox. I run Adblock Plus, NoScript, and Greasemonkey as addons. Note that disabling of all persons does not solve the problem: only signature of my Google account.

    It's a very interesting discovery. A few people have reported this. But we thought it was Google break this page purposely because they intend to remove this special Firefox search page. They think it's too old and want people to upgrade to the most recent. But I'm still not sure why being connected to Google breaks this page (and signing patches), I believe that Google is here at fault and must update the code on this page.

    The new search page Google for Firefox is:

    topic: Home

    Screenshot:

    http://i.minus.com/iewA9S.PNG

    This is a special page that is integrated into the Firefox browser. That's why he has a weird Web site address that does not resemble the normal sites that use http://www., .com, .net, or. org.

  • Vista will not recognize the projector connected for multiple display

    I'm under a system dual boot with Windows XP and Vista.  When running under XP, I doesn't hurt to connect a projector to my laptop and extend the desktop on the projector for meetings and others.

    When I am running Vista, it does not even recognize that the projector is connected.  However, once I have connected the projector, if I reboot the system, it will then display on the projector.  If I disconnect the projector, the screen does not reappear on the screen of the laptop, I have to restart, with the projector removed for office reappear on the screen of the laptop.  I'm hoping to get multiple monitors to work with Vista, as it does in my XP boot.

    For the purpose of the next presentation running in XP is not an option.

    Hi cptrigeek

    Try these steps and check if that helps:

    Method 1: We can try to perform a power cycle of the projector.

    Remove the cable from the power of the projector and this continues for 5-10 minutes. Also do the same for the laptop, Dungeon, it off. Then put back in place and start the projector. Now, start the laptop as well. Connect now. Now, you will need to install the driver for it (if there is one). After which, you need to configure the settings of the laptop.

    Method 2: Check the following steps:

    1. connect the projector to your Windows PC. NOTE: the following steps apply if you use your PC in MIRROR mode only.

    2. on the screen of the computer, right CLICK on the desktop and select Properties.

    3. click on the SETTINGS tab. If you want that your displays in mirror (what you see on laptop, it's what the public sees) you must make sure that the box "extend my desktop to this monitor" is DISABLED. If you see a box of "mirroring", remember to check it out.

    4. drag the slider to 1024 x 768 screen. As a general rule, the external monitor may limit this parameter. If your screen is higher, it might not display on the projector, then you want to test this until you're ready to take the floor. Drag the color to highest (32 bit) if available or medium (16 bit) quality if the first is not available.

    5. now select FN and press the function key. This key is usually given by a small screen icon, the CRT/LCDtext and is usually found on F8 or F5 even. Press the appropriate operation button ONCE and wait. After a few seconds, the second screen should light up. Be patient, it may take up to 5 seconds. On the projector, it may take up to 10 seconds for the projector to detect your system and switch. Note: a second press of this function (in general) will switch to monitor EXTERNAL only. A third press stop INTERNAL onlyand the circle for each push after that. Also note that some laptops can do this sequence in a different order, so learn your system so that you can quickly to the desired mode.

    6. click on the ADVANCED button. If 'apply the new settings to display without restarting' is not selected, select it. Under screen refresh rate, select 60 Hz. click APPLY and CONFIRM the choice. Click OK to close the ADVANCED options dialog. Close the display properties dialog box. You should now see a mirroring of your monitor on the second monitor.

    7. test: A test, disconnect the second monitor. put your mobile PC to sleep. He wakes up and let it fully come (login if necessary), and then reconnect the external monitor. On some machines, he needs to quickly display the screen in the last known state (you may need to wait up to 10 seconds). If it is not correctly displayed, press the switch function, ONCE. Yet once, note that it can take up to 10 seconds to view, so be patient. If only the projector display now, some pressure on the function switch key should provide for both screens again. If you can't get the projector to display, check all your connections and settings above.

    8 Note that when you use the projector, after pressing the function for changing the monitor button, it may take up to 10 seconds for the monitor find and block on your machine. Just wait. Pressing on the keys new fkey can simply ruin your settings or turn off the projector.

    9. not all laptops work the same way. Please make sure you learn how your work before you get to your presentation.

    (Not mirrored)

    1. If you do NOT want mirrored poster (display of different internal and external), CHECK the box next to the line that reads "extend my Windows desktop to this monitor." This SHOULD result in the external monitor display an image which is an EXTENSION of the current desktop.

    2. in the settings dialog box, the internal monitor appears as a '1' and externally as a '2 '. Click ONCE on the '2 '.

    3. with '2' selected, drag the Screen Resolution slider to the left or to the right until the resolution reads "1024 x 768". Also affect the quality of the highest (32-bit color) if available or average (16 bit) if the first is not available.

    4. click on the ADVANCED button. If 'apply the new display settings without restarting' is not selected, select it.

    5. Select the MONITOR tab. Under screen refresh rate, select 60 Hz. click APPLY and CONFIRM the choice. Click OK to close the ADVANCED dialog box. Your system is now set for an extended desktop. When it is connected to the screen, you may need to use the function switch key to turn once more on this option, but on systems that I tested, the extended desktop comes just when the monitor is connected. Yet once, I suggested some tests with this mode of knowing how your laptop will perform when connected to an external monitor before coming to speak.

    6. notes that, in this mode, items moved to the extended desktop can be "lost" it if the external monitor is disconnected because they live on the extended desktop is no longer available. Also note that if the extended desktop is turned on, this part of funds 'second' can continue to live, which means that the cursor and the object can be moved off the screen in this sector and not be visible on a single internal monitor. To resolve this problem, do a right-click on the desktop, select Properties, select settings, click on the '2' box and UNCHECK the extend option. Items left on the extended desktop should now align the right edge of the internal display.

    See also: http://windowshelp.microsoft.com/Windows/en-US/Help/16152337-a45c-4a1a-b302-cfd95399ce071033.mspx#EQB

    Understand multiple monitors: http://windows.microsoft.com/en-US/windows-vista/Understanding-multiple-monitors

    Set up multiple monitors: http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-multiple-monitors

    Multiple monitor issues: http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-multiple-monitor-problems

    After back and let us know if it helped to solve your problem.

    Thank you and best regards,

    R uma - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Multiple connection, but the connections are blocked port

    Hello

    If I want to have my windows 7 connected to two Internett different connections due to a block of some Web pages, and the other blocks all online games of (steam, origin, etc.)

    So my question is can I do a responsible only for browser data connection and the other connection to make all data on the computer.

    I saw this post on multiple connections. but I still need a connection can only be used for (chrome, firefox, ie, etc): http://answers.microsoft.com/en-us/windows/forum/windows_7-networking/multiple-internet-connections-in-windows-7-nlb/ffd5cb00-7330-452c-8f72-bb05fef7dbc5

    Also spesify the nettwork game log from time to time on a web browser, so the second connection cannot overide requires all web traffic or I won't be able to connect to the nettwork gaming. I have a script running at continualy connect on the web.

    All responses are welcome!

    Hello

    To ensure that you get the best response to this concern, we suggest that you post this query on the forum Web site the Microsoft Technet THERE that this issue is best handled by their level of expertise and support. To do this, visit this link.

    Best regards.

Maybe you are looking for