Help on the contingent work using dbms_sheduler restaurant.

Oracle experts,

I checked the docs of oracle to schedule a task of conditional based on my condition but I do not understand how to implement this. Please give me some ideas on how to do this.

My requirement as follows:
The work must be configured to run on the 1st Jan, Apr, Jul, Oct 09:00 central.

Conditions are the following:
(1) if the yr_close_day of the "table_x" yesterday, then wait a day and run (where quarter = 4).
(2) if the day of the week is Sunday, then wait a day and executed (what quarter! = 4).

Thanks in advance.

--
Anan.

Published by: Anan Ben may 22, 2012 06:43

IMO, you cannot schedule a job like that.

But you can write a procedure with all of these conditions and if condition satisfied do and donot other wise.

and schedule a task at regular intervals.

as you can have your procedure

Create procedure p as
Start
So so - what you specified in the question.
-action
end if;
end;

and the action as p for your work.

Tags: Database

Similar Questions

  • help in the application without using the pivot function

    Hi gurus,

    Can you please help write the query without using the PIVOT function.
     WITH indata AS
             (SELECT 1 sn, '123:456,789,323:456,213,344,345:5454' x
                from dual
              UNION ALL
              SELECT 2, 'abcd:fgrfr,rfrf,rfred,tg:tg,tg:ophhh,op,vdfgbh:poijn' x from dual),
            instr AS
             (SELECT a.SN,
                     rownum RN,
                     B.column_value || CASE
                       WHEN B.column_value NOT LIKE '%:%' THEN
                        ':'
                     END column_value 
                FROM indata a,
                     TABLE(CAST(multiset
                                (SELECT trim(SUBSTR(x,
                                                    (CASE LEVEL
                                                      WHEN 1 THEN
                                                       1
                                                      ELSE
                                                       instr(x, ',', 1, LEVEL - 1) + 1
                                                    END),
                                                    (CASE instr(x, ',', 1, LEVEL)
                                                      WHEN 0 then
                                                       4000
                                                      ELSE
                                                       instr(x, ',', 1, LEVEL) - 1 -
                                                       (CASE LEVEL
                                                          WHEN 1 THEN
                                                           0
                                                          ELSE
                                                           instr(x,
                                                                 ',',
                                                                 1,
                                                                 level - 1)
                                                        END)
                                                    END)))
                                   FROM dual
                                 CONNECT BY level <=
                                            LENGTH(x) -
                                            LENGTH(REPLACE(x, ',', '')) + 1) AS
                                sys.odcivarchar2list)) b)
            SELECT  col1_val2,
                    col1_val1,
                    col2_val2,
                    col2_val1,              
                   systimestamp
              FROM (select SN,
                          ROW_NUMBER() over(partition by SN order by RN) RN,
                           SUBSTR(column_value, INSTR(column_value, ':') + 1) VAL1,
                           substr(column_value, 1, instr(column_value, ':') - 1) val2
                      FROM instr ) PIVOT(MAX(VAL1) VAL1, MAX(VAL2) VAL2 FOR SN IN(1 as col1,2 as col2));
    Thanks in advance!...

    Any help would be appreciated.

    user590978 wrote:

    Can you please help write the query without using the PIVOT function.

    with indata as (
                    select 1 sn,'123:456,789,323:456,213,344,345:5454' x from dual union all
                    select 2, 'abcd:fgrfr,rfrf,rfred,tg:tg,tg:ophhh,op,vdfgbh:poijn' x from dual
                   ),
             t1 as (
                    select  x
                      from  indata
                      where sn = 1
                   ),
             t2 as (
                    select  x
                      from  indata
                      where sn = 2
                   ),
             t3 as (
                    select  level lvl,
                            substr(
                                   x,
                                   instr(',' || x,',',1,level),
                                   instr(x || ',',',',1,level) - instr(',' || x,',',1,level)
                                  ) col1
                      from  t1
                      connect by level <= length(x) - length(translate(x,'A,','A')) + 1
                   ),
             t4 as (
                    select  level lvl,
                            substr(
                                   x,
                                   instr(',' || x,',',1,level),
                                   instr(x || ',',',',1,level) - instr(',' || x,',',1,level)
                                  ) col2
                      from  t2
                      connect by level <= length(x) - length(translate(x,'A,','A')) + 1
                   ),
             t5 as (
                    select  lvl,
                            substr(col1,1,instr(col1 || ':',':') - 1) col1_val1,
                            substr(col1,instr(col1 || ':',':') + 1) col1_val2
                      from  t3
                   ),
             t6 as (
                    select  lvl,
                            substr(col2,1,instr(col2 || ':',':') - 1) col2_val1,
                            substr(col2,instr(col2 || ':',':') + 1) col2_val2
                      from  t4
                   )
    select  col1_val1,
            col1_val2,
            col2_val1,
            col2_val2,
            systimestamp
      from      t5
            full join
                t6
            on (
                t6.lvl = t5.lvl
               )
      order by coalesce(t5.lvl,t6.lvl)
    /
    
    COL1_VAL1  COL1_VAL2  COL2_VAL1  COL2_VAL2  SYSTIMESTAMP
    ---------- ---------- ---------- ---------- -------------------------------------
    123        456        abcd       fgrfr      23-OCT-12 11.50.12.015000 AM -04:00
    789                   rfrf                  23-OCT-12 11.50.12.015000 AM -04:00
    323        456        rfred                 23-OCT-12 11.50.12.015000 AM -04:00
    213                   tg         tg         23-OCT-12 11.50.12.015000 AM -04:00
    344                   tg         ophhh      23-OCT-12 11.50.12.015000 AM -04:00
    345        5454       op                    23-OCT-12 11.50.12.015000 AM -04:00
                          vdfgbh     poijn      23-OCT-12 11.50.12.015000 AM -04:00
    
    7 rows selected.
    
    SQL> 
    

    SY.

  • Help redefine the colors work... Please!

    I'm going a little crazy and need help. I do not know true with Illustrator, please bear with me. I need to change a few full-color files and convert them in two files of color. I don't want the look of Duotone, I want to keep everything that is red and convert other components in grayscale. I understand the direct color / Recolor work is probably the best way to get there, but for some reason, these options are grayed out. I tried "select all", the edit/change colors /... but the options to redefine the colors are grey. I can make it appear "live color" by the "color guide", but even once, I'm not able to make selections or changes. Its probably something stupid, I hurt, but I have beaten my head against the way of trying to understand what. Please help me out here.

    Thank you!!

    Stacy

    a guess and if you try this, then you're doing something stupid, then welcome to the stupid club. We are all members.

    Work by chance with image files come in illustrator, if so you cannot recolor using Recolor art art like this can be done only with vector art and raster effects not raster image files. If you want to be Duotone images you are the best to do this in Photoshop first convert to grayscale and Duotone.

    You can place a CMYK image in Illustrator and incorporate him and then turn on a gray scale and then copy the picture and paste in front or the rear command order B and F respectively. This pt one above the other in the same exact position. Then you can select the top or the bottom and then select a color in a color chart or the selector that will transform the image into a color image, and then in the transparency Panel you can set the blending mode to multiply and this will essentially give a Duotone, you can control the opacity of each image with the transparency Panel as well.

    I'll take

  • I've updated my ipad and Ive long since forgotten the HELP and the password I used now, I can't activate it. Someone at - it no clues.

    Apple. Ive updated my ipad and activate it, that ive never been asked before, I need the apple id and password that were used when I put in place. It was 8 years ago and Ive long since forgotten. Then how the * either override the need to activate deactivate or know what AID and password I was used.

    Apple seems very proud of screwing with us with updates. I hate the update whatever it is apple, I hate it. It always leads to problems. It is never easy. The one you have bright ideas?

    Are you still connected to the account anywhere so that you can look it up? Do you have the account downloads in your computer's iTunes library so that you can do "get info" on them and see the id? Have you tried: If you have forgotten your Apple - Apple Support ID ?

    If you can't find or still do not forget your id, and if you were the original purchaser of the iPad (i.e. he not was purchased used) then you could try to go to an Apple Store (make a Genius Bar appointment if you do) or try to contact iTunes Support Online (http://www.apple.com/support/itunes/contact/) and see if they can remove the iPad on the account - they are likely to want to see proof of ownership before they could help for example received original with top serial number

  • With the help of the cam without using veriface

    Hello

    I turned off (removed software) veriface and so it cannot use the webcam - or what I can? Is it possible to activate or use the camera as a webcam? Do I need a driver or software any?

    Thank you, pshing. I reinstalled the driver and that solved the problem.

  • Need help with the horizontal navigation using &lt; ul &gt;

    Although I normally use tables, I read that it is better to use < ul > and < li > my site horizontal navigation bar.

    I have problems with spacing, I want each item in the navigation bar to fit in one area of 166 width.

    Here is my CSS:

    {#ul.navbar}
    list-style-type: none;
    make-weight: bold;
    background-image: url (.. / images/166bar.gif);
    margin: 0;
    padding: 0;
    Width: 100%;
    }
    #ul.navbar li {}
    margin: 0px 20px 10px 20px;
    list-style: none;
    }
    #ul.navbar a {}
    text-decoration: none;
    }

    How can ensure me that each element of the horizontal navigation bar is in the center of the box? Can any recommend a good tutorial or an example?

    http://ALT-Web.com/demos/CSS-menus.shtml

    Change

    text-align: left

    TO

    text-align: center

    I want each item in the navigation bar to fit in one area of 166 width.

    In this case, you must use tables, images, or the vertical list menu.

    http://CSS.maxdesign.com.au/Listamatic/

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    www.Alt-Web.com/
    www.Twitter.com/ALTWEB

  • Help with the Brush tool!

    Hi all

    I am very new to Illustrator.  I followed this tutorial: https://www.youtube.com/watch?v=OGOeuEsgDrI.  I managed to make the wreath a style brush but when I create an ellipse with no filling/brush stroke and hit my created Crown brush, leaves extends around the border, but the circle is blackened (filled).  It is a different result that the tutorial where the leaves are the border and there is no fill.  When I choose other paint tools, such as the banner (it looks like a Ribbon), it behaves as the tutorial shows and the Center is not filled (as does the Crown Brush tool.  Please refer to the following screen shot, in comparing the two.

    Screen Shot 2014-01-09 at 1.28.27 PM.png

    Thanks for any help that you could provide!

    When you created the stem you probably had a fill that are associated with him. This caused it to fill with black when you assigned him to a circle.

    If you still have the original work used to create the branch, select only the stem and make sure that it is set to "no fill". Then option-do the work dragging the brush in the Panel icon shapes. This will update the work with the new art. Simply register and select "update to work. Your circle will now be hallow.

    If you do not have the original work, drag the icon of the brush on the artboard, remove center line filling and updating the art of the brush.

  • users cannot save .pdf, .doc files using "Save target as" in google search results. Can someone help me, I couldn't have known that the same works very well on some computers.

    I am the Director of technical support for more than 1000 computers. Recently in some computers (windows based) users cannot save .pdf, .doc files using "Save target as" in google search results. Can someone help me, I couldn't have known that the same works very well on some computers.

    Hi MASPAdministrator,

    Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet Windows XP forum.

    http://social.technet.Microsoft.com/forums/en-us/itproxpsp/threads

  • tried to create a private folder for the work of the book as the in-laws use our computer but don't know where to start and it seems to have sent the info im trying to hide anywhere please help

    tried to create a private folder for the work of the book as the in-laws use our computer but don't know where to start and it seems to have sent the info im trying to hide in every sense, please help, its windows 7 we have, I will learn more about computer but now I have to stop my son-inlaw through my belongings on the computer

    Nancy

                                                   

    Hi Nancy,.

    Encryption of files and folders is a way to protect against unauthorized access. EFS (ENCRYPTING File System) is a Windows feature that you can use to store information on your hard disk in an encrypted format. Encryption is the best protection that Windows provides to help you keep your information secure.

    You can make a folder and then encrypt it.

    http://Windows.Microsoft.com/en-in/Windows7/encrypt-or-decrypt-a-folder-or-file

    Good day!

    Answer please if you face concerns.

  • I'm black or white rectangles covering my picture while I'm working. I unchecked the camera raw 'use the graphics processor' I use an end 2013 27 "iMac. Can anyone help?

    I'm black or white rectangles covering my picture while I'm working. I unchecked the camera raw 'use the graphics processor' I use an end 2013 27 "iMac. Can anyone help?

    Hi Joel,

    • What version of Photoshop installed on your computer?
    • Also, please go to the Photoshop preferences, then the performance tab.
    • Here please click Advanced under 'Use Graphics Processor' settings and change the mode of drawing on 'Basic '.
    • Also uncheck "Open CL"
    • Restart Photoshop and then try to open an image and see for the boxes.

    Let me know if it helps.

    Kind regards

    Tanuj

  • Unable to run email of announcement of Craigslist with Firefox web browser. The link works fine when you use Internet Explorer. Don't know why this problem?

    When I click on send to a Craigslist of announcements of sale, e-mail software does not run. When I used the same craigslist Web page with Internet Explorer, the e-mail program runs without any problem. Not sure why this problem?

    If you change your preference of mail helper in Firefox for 'other use '.... "you are presented with a command prompt to select an application click 'Browse... '. "and browse your computer for the program of choice. Even if you're already shown two e-mail programs, try to re - select the one you want to use via the method go and then try again to open a mailto link.

    If this does not work, open your profile button in folder

         Help > Troubleshooting Information
    

    and the release of Firefox. With Firefox closed, remove the file "mimeTypes.rdf" of your profile folder, and then restart Firefox and Firefox will re - build the helper, file applications and you can try again to send someone from a link.

  • Equium A110-233 stops using the WiFi and the fans work only 3 sec

    I bought an A110 - 233 20/09/06. It works very well for about 1 hour then it interrupts the communication via the wireless network connection status States he is always connected, sometimes but not always the configuration window indicates that the without wire is cut and I should turn it on at the bottom of the window (there is lit) processor Intel Pro.

    I brought the world PC waiting for a replacement but I had to sit for an hour trying to reproduce the error, we couldn't go wrong but I have discovered that it does only when running on the network.

    Cooling fan only works for 1-3 seconds at a time, is it possible to increase this number.

    Any help would be appreciated
    Bob

    Hello

    If you want to change the properties of cooling module you must do in the standby power settings.
    You should know that the energy saver uses different modes of consumption. The laptop is using another mode of energy if the AC adapter is plugged and another mode of power if the laptop works only with the battery.
    On the basis of energy saver menu, you will be able to change the method of cooling. This option controls the fan.

    It is not easy to solve the problem of WLAN communication. I mean that there is no general solution. Additional it is not easy to solve because the issue doesn't happen always, but sometimes only. Perhaps the intensity of the signal is sometimes lower and therefore, the configuration software WLan Intel reports that the wireless network is turned off.

    In addition, you should also check the Wlan card properties. You will find that the properties in Device Manager-> right click on the wireless network card.
    Here, you must select the Advanced tab.
    You should find a few interesting options such as energy saving (disable) or the strength of the signal (enable).

    In addition, you can try to update the WLan driver. Maybe a new version is available.

    By the way: you should also know that some 3rd party application could have a bad influence on WLan communication.

  • Help with fft vibrations without using the package of noise and vibrations

    I'm looking for help in the analysis of vibrations. I use an example updated NI 9233 VI, to get a signal from the accelerometer for display using a FFT power spectrum. I'm not entirely sure if it works, because it's the first time I've ever done vibration analysis on LabView. So if you could explain a thing or two about vibrations or TFF, I'd be more than willing to hear from you. I have included my code along with a photo of an analysis of vibration of the computer, I work with. (even when I don't know if his work that I just thought it would be good to show an output)

    Brandon

    Data sheet:

    I have LabView 2011

    I FPGA, real-time

    I have a model of research of Wilcoxon accelerometer 797-33

    With an NI 9233

    On a cRio-9012

    Hi Brandon,.

    You can use the FFT Complex (photo attached) to calculate the magnitude of the acceleration at different frequencies. You will need to take a little further to build a new waveform with this release, which includes d0, df and the output of the FFT. In order to calculate the df, please refer to the user manual on page 10-3. With respect to the scale that is output by the FFT, it must be same as input. Hope this helps to answer your questions. Thank you!

    See you soon,.

    CARISA Leal

  • When I start the machine, continuous hard drive work for almost 1/2 hour, meanwhile if I open a program, the machine runs very slowly. Help solve the problem please

    I have wndow XP Home edition service pack 3 installed on my lap top. When I start the computer the hard drive continues to work for almost 1/2 hour; Meanwhile, if I open IE, or any program, the machine runs very slowly and I just can not open the program up until the drive hard light is off. Please help solve the problem

    How much RAM you have on your system? (Right click on "My Computer"-> properties)

    As a general rule, Windows XP does not work well if you have less than 1 GB or more of RAM.  What usually happens is that your RAM capacity is exceeded leading to overflow on virtual memory (the drive) to compensate for the need of RAM in the computer.  This causes your system to beat on your hard drive and slow down your system.

    If this is your problem, the options are to increase the RAM on your system or decrease the non-essential programs that launch at startup on your computer using a tool like Autoruns.

    HTH,
    JW

  • My computer freezes and stops working as soon as the antivirus is used.

    Original title: My computer has detected a virus.

    & He is obviously infected by a virus, but now when you run any number of different programs of not doing a full scan is detected. What should I do?
    I rebooted, it about 3 times & the virus survived still reboots.

    It freezes and stops working as soon as the antivirus is used. When you try to reinstall the Virgin keep PC, gets it to halfway through the installation, stop & comes with a blue screen.

    Hello
     
    What is the blue screen error code?
     
    System freeze may be due to viruses or some third party applications. So let us, start your computer by disabling all third-party services and see if it helps.
     
    Method 1:
    Try to perform the clean boot and check if it helps, here is the link:
    http://support.Microsoft.com/kb/929135
     
    Note: When you're done to diagnose, follow step 7 in the article to start on normal startup.
     
    Method 2:
     
    I suggest you make a system full scan just to be sure.
    Here is a link that will give you information on how to perform a full scan of the system:
    http://www.Microsoft.com/security/scanner/en-us/default.aspx
     
    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

Maybe you are looking for