Control/sleep of PL/SQL loop works only for expected less than 90 minutes

Hi all

I was wondering could someone help me. I've written a procedure that checks to see if a condition is true, and if it ends successfully. If the condition is not true he sleeps for a minute and then try again. If a time-out value is filled the procedure raises an error. This timeout is passed into the procedure in a few minutes.

My problem is that the procedure only works if the smaller numbers are passed. I tested with success in 1,2,5,10,20 and 30 minutes, but if I spend 90 minutes it is regularly indefinitely (I let it run for more than 2 hours before killing him).

CREATE OR REPLACE PROCEDURE proc_wait_test (p_minutes_wait, INTEGER)

IS

var_start_date DATE: = SYSDATE;

var_check_result NUMBER: = 0;

BEGIN

WHILE TRUE

LOOP

-fake check which returns always false just to test the concept

SELECT count (*) INTO var_check_result FROM DUAL

WHERE 1 = 0;

IF (var_check_result > 0)

THEN

EXIT;

ON THE OTHER

IF (SYSDATE > = (var_start_date + (p_minutes_wait/1440))) THEN

RAISE_APPLICATION_ERROR (-20000,' procedure has expired, waiting specified limit of ' | p_minutes_wait |) "minutes exceeded.");

END IF;

END IF;

DBMS_LOCK. SLEEP (60);

END LOOP;

EXCEPTION

WHILE OTHERS THEN

lift;

END;

The procedure is designed to integrate into an existing solution, so I can't change the basic features. Database version 10.2.0.2

Thank you very much in advance for any help.

Steve.

Hello Steve,.

We have this kind of question here: Firewall silently kills idle connections more N minutes (and when there is a high load on the firewall, the "N" decreases aggressivly).

In the "Workaround", we used "DCD" (dead connection detection) as clients of the server pings on the side of all the N minutes (we use 10), the original purpose of the CR is to interrupt the session side server if the client is gone. but we are interested in a "side effect": This causes a part of the network traffic it is enough to "cheat" the watchdog of firewall.

Very easy to implement: the server side, in sqlnet.ora:

SQLNET. EXPIRE_TIME = 10

(active next time the other is started)

Best regards

Bruno.

Tags: Database

Similar Questions

  • EPMA works only for IIS?

    I used asked the same question before, and I think EPMA works only for IIS, but I want to use IIS and Apachy, and apachy is for most services, IIS is only for server size, for the configuration, I lost my way, should I need to set up manually? Now, I have confirgure EPMA with Apachy without IIS, a service does not start, please notify.

    I think you're getting confused with Apache and IIS. EPMA don't use Apache, it uses a combination of weblogic (if it's the choice application server) and IIS. Uses of the EPM parts on IIS are installed automatically, you have just to make sure you have you upward and running .net and .net enabled in IIS.
    Apache is used as workspace server plugin, IIS can also be used as a plugin.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • ListView - multiple selection works only for StandardListItem

    Hello

    In the meantime, this ListView object are less contraingnant to use; I modified my UI to work as an example of application of Battambang.

    But I have another question

    I use a GridListLayout (such as sample app stamp collector) and my ListItem is a container custom instead of StandardListItem.

    Unfortunately multiselect Manager works only with StandardListItem

    In my case, the context menu is empty!

    RIM is able to provide a sample of collector of stamps with GridListLayout? and multi select Manager / work context menu? and to highlight the points of stamps feature works in multi selection mode?

    Nicolas

    Indeed, the DeleteActionItem is not visible all in Multi Mode. I also tested is not serious if it is set with GridListLayout or not and even deleteAction.enabled of adjustment.

    I have raised a question of public affairs to do this, https://www.blackberry.com/jira/browse/BBTEN-173 so, please vote for it when you get a chance.

    See you soon,.

  • After updating to the latest version of Itunes, it works really slow, takes more than a minute to recognize my Iphone and will not correctly backup my Iphone

    IPhone 6 64 IOS 9.3.1 runs the latest version of ITunes 12.3.3.17

    After I updated to the latest version of ITunes, when I run the synchronization, it goes through the six steps, and then returns the message that the backup has failed

    Running on a 64-bit Windows 8.1 Dell computer.

    ITunes now works much more slowly. Takes a long time to load. It takes more than a minute after I plug in my Iphone for the IPhone to be recognized by Itunes.

    I rebooted the machine. Remove the locked file. All have failed to solve the problem

    For general advice, see troubleshooting problems with iTunes for Windows updates.

    The steps described in the second case are a guide to remove everything related to iTunes and then rebuild what is often a good starting point, unless the symptoms indicate a more specific approach. Review other cases and a list of documents to support further down the page, in which case one of them applies.

    More information area has direct links with the current and recent if you have problems to download, need to revert to a previous version or try the version iTunes for Windows (64-bit-for old video cards) as a workaround for the problems of performance or compatibility with third-party software.

    Your library must be affected by these measures, but it is also related to backup and recovery advice if necessary.

    If you have tried the suggestions above without success, then another option is to go back to the previous version of iTunes that has worked for you. See the roll back tips to installers of iTunes. Roll back of 12.3.3 will be to restore the pre-upgrade library in the previous iTunes libraries folder.

    TT2

  • Display works only for 2 or 3 seconds after it is black on the Qosmio G50

    Hello

    I have a problem with my G50.
    On starup display only works for 2 or 3 seconds after it is black, I connect to an external display and using FN + F5, I can see everything on the second screen, if I turn to the internal using FN + F5 display, it works just the same 2 or 3 seconds.

    Thank you

    Hello

    Looks like an internal display of FL inverter delivers hardware problem but I think that it s display.
    It s certainly not display card problem because the external monitor works properly so I think that s no GPU, but screen FL inverter.

    I recommend to ask a technician of Toshiba laptop for a detailed audit of the part material

  • How to accept only 4 or less than four hexadecimal characters in the control chain

    Hello

    I want to accept only up to 4 hexadecimal characters in a control of the chain. I don't want to use the property "hex display.

    How is that possible? I have the string control key down? event event, I tried with the regex [0 - 9a - fA - F] {4}, but then I have to accept, left, right, delete, BACKSPACE, house keys as well.

    I agree with Dennis that you seem to be making life difficult for yourself.  However, did you ask the equivalent (as I understand) "How can I allow the user to type '1', '2', 'Ctrl-A', 'B',"Ctrl-C","D"and get this recognized as the string"12BD".  If you really want to do, here's a way (I was lazy and left the response as an array of strings of 1 4 characters).  I use PlatMods to exclude have any 'change' other key moving downwards, convert the digital Char to a string, then count the letters of acceptable Hex and conditionally, add them to the results matrix, stopping when I have 4 characters.

    Bob Schor

  • Need help Urgent, a Site on the 2 areas, edge of animation works only for a single domain (not the domain clients)

    Hello

    need help with something really strange.

    I create a Restaurant website: www.arkadasch.de

    I test on my server the Site: www.bbaur.com/arkadasch

    As you can see I got the top of the page an element Ede animated.

    When I look at the site on my server www.bbaur.com/arkadasch, you see the element works correctly. You see on the two sites of the 'face' of the apearing name.

    I have download the site now the clients site and the edge of animation is showning only half? Only the name of the left site is apearing and not that of the right?

    I downloaded the same site two areas and it is always the same. My only he is on the right.

    I have delate my cache also.

    Someone has an idea?

    WOW-found the error.

    The name is written 'o'. and the psd file is named «Özden»

    I have change the name of "ozden" to "zden', delate the German symbol 'o'.

    Modify the edge of animation, save again, insert into Adobe Muse and now it works

  • WMP 12 crossfader improvement settings set to 10 seconds, but seems to work only for the last two seconds

    WMP 12 issue and crossfader

    I use WMP9 for about 2 years and the crossfader option worked
    perfectly. I recently got a new laptop (HP) which came with WMP12/W7. I copied
    all my wav/mp3/wma from my old laptop to my new and all of my
    playlists. When I now use WMP12, I crossfader set to 10 seconds, but most
    at the time, it seems that it works for all the last maybe second,.
    two. What can I do to find out why WMP12 on my system won't allow any more
    My crossfader for 10 seconds to work.

    Thank you!

    Joe...

    I downloaded the free version of monkey media , and he did all the things I used in WMP.  A transition, looking tacky to name a few (more, he in fact finds all my media) so for now, I'll move this product until MS fixes WMP. I'm not holding my breath ;)

    Joe...

  • Is vim25 api works only for vSphere 5.0 or it also works with 4.1?

    No doubt trivial question. But I want to get confirmation of specialists esp w.r.t. to API (vim/vim25) as well as the all the versions they support.

    Thank you

    Kind regards

    Dreamer

    vSphere 5 is backward compatibility with vSphere 4.x, which means that you can still manage and exploit the features/capblities of vSphere 4.x using the vSphere SDK 5. However, the features/capablities in vSphere 5 are available only if you have a vSphere environment 5 as the DRS of storage for example.

  • New serial key works only for CS2

    Hello

    I did all the steps of error: Activation of the unavailable server. CS2, Acrobat 7, pass a hearing 3

    and the Installation of the new CS2 worked fine, the key to series on the download site was accepted.

    I wanted to start Indesign, and he asked me again for the key.

    I gave him the key as well as Installation, but this time it did not work.

    What can I do now?

    Need help.

    Thank you.

    Solved because of Windows 7 is not compatible with Adobe Photoshop CS2 - Microsoft community

    I had to change the installation directory C:\Program~2\ because of the Version 32 bits of CS2

  • Thin provision NFS works only for instant VMDK

    Hi guys,.

    We have a host of ESXi 4.1 using NFS as a storage device. NFS is provided by the platform, Bluearc Mercury.

    Whenever I create a new virtual machine, for Thin Provisioning option is checked but also gray outside. There is a line saying:

    "Actual allocation policy will be determined by the NFS server.

    I'll check the newly created VMDK and it's a thick disk, it consumes as much disk space I put for the disc size.

    So, it makes me believe that the Bluearc Mercury does not support provisioning.

    The strange thing happens after that I did a snapshot, another VMDK as server - 0001.vmdk was created, and it's the thin disk.

    Someone at - it the similar problem?

    Kind regards

    Derrick

    Showmanlkz,

    On the BlueArc server, file systems are provisioned files, thin as VMDK files are created as "fragmented files".  Just a slight difference in terminology, but the effect is what you're looking for in what concerns the commissioning only the disk blocks that are actually used (thin provisioning).

    If you have created a 10 GB VMDK file, but have only 5 GB of data on the inside, only pointers to these 5 GB of data blocks will be created.  Us will not pointers to blocks of empty data.  Standard orders will make reference to the metadata VMDK structure and will report on the 10 GB file.  In order for a command 'df' to show the use of real drive (5 GB), rather than the allocated size (10 GB), you must enable the "true fragmented file" mode.  Contact the BlueArc TAC for the real run command.

    Snapshots are a completely different beast.  By default, they are only pointers to a point static instant copy.  However, if you use our new feature JetClone to create clones in entry level file, these files will be also thin provisioned, only as the clone diverges in content data from the original VM has been created between more and more.

    Julie HG

    Product Manager, BlueArc

  • Continue button works only for publication in the swf format

    I created a quiz in Captivate and my options for success/failure in opening a URL on success.  I need to publish in flash (swf), but the button continue does not open the URL.  This works perfectly if I publish the file to .exe format.

    Here are my current settings (I traded my URL to the Web site of the BBC, while testing)

    Capture.PNG

    I use version 5.5

    Can anyone help?

    Have you set up the location of publication record as a location approved in your Flash Global security settings?  Otherwise, Google for information on how to do it.  This is probably the reason why your link does not work.

  • Double Optin - does this work only for the Webform newsletter?

    Can't seem to get the Double optin to work for new Web Forms?

    Can someone help here.

    Thank you

    Hello

    Please add "& OPTIN = true" at the end of your form action in your html page.

    More details: http://kb.worldsecuresystems.com/178/bc_1787.html

    Kind regards

    -Sidney

  • Product key works only for Windows 8/8.1 re - install

    PC of my son had been slowing down so it is re - install Windows 8.  He gets a message that the product key is already in use.  He tried the robo-call thing and it said he used his driver's license. The install method, he used did record everything.  Is there a way to fix this?  Is there a step to deactivate his license before trying to re - install?

    Thank you!

    Even that number phone activation you will find...
    http://www.eightforums.com/tutorials/24636-activate-Windows-8-phone.html

    While you bought a DVD 8 OEM Windows product key?  And it's the product key and the media you are using now?

  • 6.2 persona works only for creating profile

    Hello

    I am using the Persona with this environment 6.2 view:

    Floating 6.2 view pool, with 8.1 Windows x 64 ent. OPERATING SYSTEM

    The VMs are in a field

    File server is 2012R2 (not... simple DFS share.)

    no antivirus on a virtual computer

    a GPO configures persona profile redirect to \\ISC-SRV-PERS01\Profils\%username% and view persona file redirects to another server of files (desktop, my documents,...)

    When I connect first in a virtual machine, the profile is created successfully on the server files (\\ISC-SRV-PERS01\Profils\login. V2) and everything seems OK... (I'm the owner of the profile folder, etc...)

    BUT: if I connect to another virtual computer:

    -After a restructuring or

    -After logoff / log then on another virtual machine... because i ' ts floating pool or

    -in another virtual machine in another pool with the same configuration (pre-production)

    THEN:

    -connection takes forever...

    -J' finally got the Windows desktop, with a tip ball 'You're loged in a temporary profile.

    -I have clearly not my profile...

    - but redirects to files are OK (my documents, desktop, music,..)

    I'm missing the point... (I used persona much with the previous version without these problems..)

    Help, please...

    (Newspapers attached VMWVM..)

    Ok. I think it's OK now.

    I removed the GPO "Files and folders excluded from the roaming" (I got "Downloads" here...)

    I will later confirm if everything is ok at 100%.

    S

Maybe you are looking for