Scheduled job does not stop even after the scheduling window closes

We have written custom stats gathering job whose duration has been set as 14 hours in the schedule. This job starts daily at 6:00 PM and expected to complete upto 8:00 AM next day. But the problem is that this job continues to execute even after 14 hours. If we look at the dba_scheduler_job_run_details table, then its execution duration is about 16 - 19 hours daily. We could not understand as why it is not closed when scheduling window closes? Is there any problem with the scheduler configuration?
select job_name
      ,program_name
      ,schedule_name
      ,schedule_type
      ,stop_on_window_close
  from dba_scheduler_jobs
where job_name = 'GATHER_STATS_STD_JOB';
Output:
JOB_NAME
PROGRAM_NAME
SCHEDULE_NAME
SCHEDULE_TYPE
STOP_ON_WINDOW_CLOSE
GATHER_STATS_STD_JOB
GATHER_STATS_STD_PROGRAM
GATHER_STATS_STD_SCHEDULE
NAMED
TRUE
SELECT window_name
      ,schedule_owner
      ,schedule_name
      ,schedule_type
      ,start_date
      ,repeat_interval
      ,end_date
      ,duration
      ,window_priority
      ,next_start_date
      ,last_start_date
      ,enabled
      ,active
  FROM dba_scheduler_windows;
window_name
schedule_owner
schedule_name
schedule_type
start_date
repeat_interval
end_date
duration
window_priority
next_start_date
last_start_date
enabled
active
GATHER_STATS_STD_WINDOW
sys
GATHER_STATS_STD_SCHEDULE
named
+00 14:00:00.000000
high
23-feb-15 06.00.10.000000 pm +02:00
23-feb-15 06.00.10.095878 pm +02:00
TRUE
TRUE
We are using Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod on Linux platform.
Message was edited by: Moazzam

Straight out of the docs 83 DBMS_SCHEDULER
stop_on_window_close
This attribute only applies if the schedule of a job is a window or a window group. Setting this attribute to TRUE implies that the job should be stopped once the associated window is closed. The job is stopped using the stop_job procedure with force set to FALSE.
Having said that, stop_job with force applies to whether information about the job is gathered - you would have to test, but I believe that the statistics gather will be terminated in the middle of whatever it's doing.
Update: force says:
force
If force is set to FALSE, the Scheduler tries to gracefully stop the job using an interrupt mechanism. This method gives control back to the slave process, which can update the status of the job in the job queue to stopped. If this fails, an error is returned.
If force is set to TRUE, the Scheduler will immediately terminate the job slave. Oracle recommends that STOP_JOB with force set to TRUE be used only after a STOP_JOBwith force set to FALSE has failed.

Similar Messages

  • IPhone 3gs Battery Heating, iPhone does not start even after the battery replaced

    Hello
    Last night my phone was plugged into the car charger and suddenly it went blank and turnned off itself. I Tried DFU'in it but nothing worked. I charged it but all it does is heats up. Today I replaced the battery and it sill wouldnt work. I cant turn it on at all!
    Can some one please help me.
    URGENT!!
    Thanks

    Extremely doubtful. Without being able to get the phone up and running, it's impossible to say for sure, but I'm guessing any data that was on the phone is long gone.
    As for what could be the issue... at this stage, I'll have to go with an all encompassing "it's broke". You're probably going to either have to find a professional repair shop or just buy a new phone. Apple won't touch it at this stage since you opened it yourself.

  • Sysvol was not shared\replicating after the DCpromo windows 2012 R2 datacenter

    SYSVOL does not shared\replicating after the DCpromo windows 2012 R2 datacenter, and the partner DC is 2008 R2 Standard.
    both the forest & domain level is Windows2008R2.

    First glance they cannot communicate through RPC, you might need to review the firewalls configuration.
    Some info on this topic:
    Active Directory Replication Over Firewalls
    Restricting AD Replication Traffic between DCs to only a few ports
    Another option would be a site to site vpn
    This post is provided AS IS with no warranties or guarantees, and confers no rights.
    ~~~
    Questo post non fornisce garanzie e non conferisce diritti

  • HT4061 the screen is blank and the phone does not respond even after pressing the on/off and home button. the only reaction is the vibration felt when I plug in to charge the phone. What should I do?

    The screen of my iphone 4 is blank and the phone does not respond even after pressing the on/off and home button, the only reaction is the vibration felt when I plug in to charge the phone. What should I do?

    This is the ipod touch forum

  • E72 notifcation light does not stop blinking after...

    After receiving an SMS my E72 sometimes keeps blinking the light even after reading it/deleting it. It's as if the notification gets "stuck". It also happens with calls but less often.
    This only started happening with 052.005, with previous versions where were no problems.
    Can anyone confirm this? Is it a problem in the current firmware or is just my unit needing a hard reset?

    zetty wrote:
    Hi
    Do you have the light active for any other apps or service on the phone like e-mail, missed calls, IM, etc...
    Only for missed calls or SMS/MMS. I don't have it on for email (as it would blink too often).
    Normally it would stop blinking as soon as I see a missed call on the call log or open/delete an SMS.
    But since firmware 052.005 now it sometimes does not blink right after the event is "cleared".
    I suspect it is a but as this version had some changes to the breathing/notification light behaviour due to asian languages (even if mine is european PT)

  • Unable to update, when executed table gets lock and Execution does not stop even for an hour.

    Following is my Query, which unables to update. When Executed, table gets lock and Execution does not stop even for an hour.
    update Employees 
          set Status = 'Close'
          where statusid IN (select statusid 
                                             from MyView 
                                              where DownloadedDate ='2014-07-27 00:00:00.000'
    here Employee contains 3,00,000 of records and Subquery return 1,50,000 Empid 
    i tried in various ways but not able to solve, statusid  column have no index on,  i tried using cursor but it does not work.
    plz let me know how to solve this Issue, Its very Important to get solve as all my further work depends on Updation
    , THANKS IN ADVANCE.

    See also your other thread with the same question:
    http://social.msdn.microsoft.com/Forums/en-US/80243625-fc3b-4ee1-bce1-4adcdbc16c14/unable-to-update-when-executed-table-gets-lock-execution-does-not-stop-execution-even-for-an-hour?forum=sqlserversamples
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Updating IOS8.02 on 4s,when service provider is changed or not available,phone goes to search mode,its drain battery very fast,it does not stop even in charging mode,it goes to zero.only get charged in Airplane mode.why?(with different Simcard)

    Updating IOS 8.02 on 4s,when service provider is changed or not available,phone goes to search mode & its drain battery very fast,it does not stop even in charging mode,it goes to zero.(Even in switch off mode) only get charged in Airplane mode.why?(with different Sim cards)
    RBVAIDYA

    Because GPS has nothing to do with WiFi, cellular signals, or data of any sort. GPS is implemented by signals sent by satellites that are received by GPS receivers. The receivers process the information from the GPS satellites and calculate your location. GPS never sends data anywhere; GPS functionality is receive only.
    If you have WiFi or cellular data turned on this can improve the accuracy of GPS, because the GPS receiver can then use the known location of cell towers and WiFi networks to refine the GPS location. GPS by itself has an accuracy of 10 meters, or about 34 feet. Using the additional information from WiFi and cellular data this can be brought down to 3 meters (10 feet). This mode is called Augmented GPS, or A-GPS.

  • Why did AME stop working after the last Windows 7 update

    AME suddenly stopped working after the last Windows 7 update. After the initial splash screen, I get a message saying that AME is not working and the program will be closed. Then I get the windows message that it is searching for a solution, then nothing. I am using the Production CS6. This happens whether I try to start AME directly, or queuing through Premiere Pro. I have tried reinstalling the entire package and have implemented all available updates from Adobe. I have no clue why this happened, but AME is crucial to my workflow.

    Try to delete the following folders and then launch AME:
    %AppData%\Adobe\Adobe Media Encoder
    %AppData%\Adobe\Common
    Make sure to first make a backup of those folders.

  • Press Alt to popup Menu Toolbar, Click on a Custom Icon and the item does not come up AND the Tool Bar closes

    Options-->Menu Bar is Unchecked(off) (so, TABS are at the top of the screen):
    Press Alt to popup Menu Bar, Click on a Custom Icon and the item clicked on does not come up -and- the Menu Bar closes.
    So, Alt->Popup Menu Bar->Click a Custom Icon does not function properly.
    see Troubleshooting Info below-->

    First off if you have Firefox4 you probably also have an earlier version such as firefox 3.6.15 installed. By default firefox installs these in slightly different locations, but it leaves it up to you to create a separate profile for each version. The profile is where firefox stores data and settings. I am not sure that firefox explains this clearly, but you will run into problems if you do not have a separate profile for each version of firefox. See http://kb.mozillazine.org/Testing_pre-release_versions
    To try to get the toolbars working correctly, after you have ensured you have separate profiles in use for each version ( the following action will make changes)
    # use the restore default set from the customise / customize toolbars dialogue
    # if that does not work then
    #* use [safe mode] and the option [X] reset toolbars and controls

  • Hi tutor,my system preferences remains in hang and it does not respond even after force quit.May i have a advice la

    my sytem preferences remains in hang and is not responding even after force quit,may i have suggestion la

    Hello: Welcome to Apple Support Communities!
    Could you specify the Mac OS X version and also what computer you
    are using it on, with some detail? Some of these kinds of issues, while
    they may seem the same across various years of OS X, can have
    different causes and also different cures.
    With that information, someone may be capable of researching a reply
    most suited to try & see if it works in your computer + OS X system.
    One idea, which may/may not help, would be to start the computer
    from its most recent OS X DVD install disc, unless it has OS X 10.7
    or Later, where there is a Recovery partition on the HDD to boot from.
    Then use Disk Utility> repair disk, while there, also repair permissions.
    Thanks.
    Good luck & happy computing!

  • "shared" section does not show up in the itunes window

    I'm trying to use Home Sharing on iTunes but the "shared" section does not show up on the left hand side of the screen where it should be, so now I cannot use home sharing.  Help?

    It doesn't show up until you go to the iTunes Advanced menu and select "Turn on Home Sharing".

  • Second Video not visible even after the first video is stopped

    Hi,
    I am trying to play a second video after the first video has completed(end of media). But the second video is not visible on the frame eventhough it plays in the background. I tried various things like stopping and closing the first video and removing all the components( visual and control). Still it does not work.
    p.stop();
                        p.close();
                        p.deallocate();
                        remove(p.getVisualComponent());
                        remove(p.getControlPanelComponent());
                        removeAll();Is this a problem with JMF or am I doing something wrong? Please help me out.

    Nidhi,
    What version of LabView and WMP are you using?
    This Knowledgebase points towards problems with LabView 7.1 and early and also WMP 9.0.
    Are you hearing sound when you play the video?  When you port the code over to the other application, are you including all necessary elements and preserving the link to the video?
    Rob K
    Measurements Mechanical Engineer (C-Series, USB X-Series)
    National Instruments
    CompactRIO Developers Guide
    CompactRIO Out of the Box Video

  • HT201412 iPad screen does not respond, even after several resets (both with iTunes and at the Apple Store). Apple is also unresponsive to a hardware problem once the product warranty period has expired. Does anyone have a suggestion?

    It is getting very frustrating to have Apple products.
    Constant software upgrades and product releases seems to be the sole focus of Apple.
    Apple does not offer hardware repair services. I can understand this policy when products do not fail. But it seems that this is not the case with Apple, as it becomes frequent that products fail just after the warranty period.
    New software releases also destroyed the value of a "GREAT EXPERIENCE". YouTube, Google Maps, ... all features that are deleted with the latest IOS and that Apple could not properly replace.
    It seems that Apple products are not 'consummable' products but 'disposable' products.
    Let's see how robust SAMSUNG tablets are

    Apple has hardware repair services, on repairable hardware. Apple just doesn't repair iPads, from day one Apple has always replaced iPads, either under warranty or as a reduced cost out-of-warranty purchase.
    The rest of your post is just a rant. Enjoy your Samsung products.

  • After upgrading my iPhone to new 5.1 iOS, and reloading all of my files back in , my music appears to be in the phone, but when I press play, the music does not play, even though the pause button is now lit.

    After 6 hrs. Of upgrading to 5.1 iOS , and reloading all data my music will not play. The music was reloaded from iCloud, and shows up in library, but will not play.

    Basics from the manual are restrt, reset, restore.
    Have you tried each of these?

  • My Imac Does not start even after follow all recommendations of the community. I am very desappointed with Apple. Please Advice

    I have a IMac 27" Core I7 Mid 2010 w/ Upgraded OS Mountain Lion 10.8.5 but I can't start it even after follows recommendations of the community. Please Advice
    I am very desappointed with Apple

    Imagine calling to your Doctor and saying "I'm unwell. Please advice (sic)"? What would he say? I think he'd start by asking a for a whole lot more information, wouldn't he? So, same here.

Maybe you are looking for