﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>FranklinFaces.com - Oracle &amp; SQL Server Database Forums for all IT Professionals / Oracle Forum / Oracle Database Administration  / UPDATING SCHEDULER WINDOWS: / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>FranklinFaces.com - Oracle &amp; SQL Server Database Forums for all IT Professionals</description><link>http://www.franklinfaces.com/</link><webMaster>no-reply@FranklinFaces.com</webMaster><lastBuildDate>Thu, 09 Feb 2012 11:16:19 GMT</lastBuildDate><ttl>20</ttl><item><title>UPDATING SCHEDULER WINDOWS:</title><link>http://www.franklinfaces.com/Topic98-97-1.aspx</link><description>There are times when you will need to update your windows based on business requirements or simply because your process takes longer then the default weeknight and weekend scheduler &amp;#119;indow.  Here are some guidelines to use for creating and updating scheduler activities.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;[b]To create a window, use the CREATE_WINDOW procedure. The following statement illustrates an example of creating a window:[/b]&lt;br&gt;&lt;br&gt;BEGIN&lt;br&gt;DBMS_SCHEDULER.CREATE_WINDOW (&lt;br&gt;   window_name     =&gt;  'CUSTOM_WINDOW',&lt;br&gt;   resource_plan     =&gt;  'HI_RESOURCE1',&lt;br&gt;   start_date           =&gt;  '15-JAN-09 01.00.00 AM',&lt;br&gt;   repeat_interval    =&gt;  'FREQ=DAILY',&lt;br&gt;   end_date            =&gt;  '15-SEP-09 01.00.00 AM',&lt;br&gt;   duration             =&gt;  interval '60' minute,&lt;br&gt;   window_priority  =&gt;  'HIGH',&lt;br&gt;   comments          =&gt;  'This is my custom &amp;#119;indow.');&lt;br&gt;END;&lt;br&gt;/&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;There are default windows already created in the system.   If you would like to make changes to the attributes to the default windows, here are the steps:&lt;br&gt;Default window names are:  WEEKNIGHT_WINDOW and WEEKEND_WINDOW:&lt;br&gt;&lt;br&gt;&lt;br&gt;[b]This will change the WEEKNIGHT_WINDOW to run M-F starting at 5pm (17hours).  It will also run for 600 Minutes or 10 hours.[/b]&lt;br&gt;&lt;br&gt;EXECUTE DBMS_SCHEDULER.SET_ATTRIBUTE('WEEKNIGHT_WINDOW', 'repeat_interval', 'freq=daily;byday=MON, TUE, WED, THU, FRI;byhour=17;byminute=0;bysecond=0');&lt;br&gt;EXECUTE DBMS_SCHEDULER.SET_ATTRIBUTE('WEEKNIGHT_WINDOW', 'duration', interval '600' minute);&lt;br&gt;&lt;br&gt;&lt;br&gt;[b]This will change the WEEKEND_WINDOW to run from Friday - Sunday (5pm to 3AM)  (10 Hours)[/b]&lt;br&gt;&lt;br&gt;EXECUTE DBMS_SCHEDULER.SET_ATTRIBUTE('WEEKEND_WINDOW', 'repeat_interval', 'freq=daily;byday=FRI, SAT, SUN;byhour=17;byminute=0;bysecond=0');&lt;br&gt;EXECUTE DBMS_SCHEDULER.SET_ATTRIBUTE('WEEKEND_WINDOW', 'duration', interval '600' minute);&lt;br&gt;&lt;br&gt;&lt;br&gt;[b]You can see the updated schedule by querying this view:[/b]&lt;br&gt;&lt;br&gt;select * from dba_scheduler_windows&lt;br&gt;where window_name in ('WEEKNIGHT_WINDOW','WEEKEND_WINDOW');&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Thu, 05 Mar 2009 10:52:50 GMT</pubDate><dc:creator>Admin</dc:creator></item></channel></rss>
