How to run a planner using regular time

-Details of the Planner
BEGIN
     dbms_scheduler.create_schedule(  
     schedule_name  => 'INTERVAL_EVERY_1_MINUTES',  
     start_date    => trunc(sysdate)+18/24,  
     repeat_interval => 'freq=MINUTELY;interval=1',  
     comments     => 'Runtime: Every day all 1 minutes');  
END;
-program code
BEGIN      
     dbms_scheduler.create_program  
     (program_name=> 'PROG_FEED_UK_DATA',  
     program_type=> 'STORED_PROCEDURE',  
     program_action=> 'LOAD_CUSOMERS_UK',  
     enabled=>true,  
     comments=>'Procedure to LOAD UK information'  
     );  
END; 
-labour code
BEGIN        
     dbms_scheduler.create_job  
     (job_name => 'JOB_FEED_UK_DATA',  
     program_name=> 'PROG_FEED_UK_DATA',  
     schedule_name=>'INTERVAL_EVERY_1_MINUTES',  
     enabled=>true,  
     auto_drop=>false,  
     comments=>'Job to collect data about session values every 5 minutes');  
END; 
all these three code successfully compiled. but it is not executed automatically and run every 1 minute.

I try to run this caraa using following code

BEGIN
dbms_scheduler.run_job ('JOB_FEED_UK_DATA', true);
END;

It works very well...
create or replace
PROCEDURE LOAD_CUSTOMERS_UK
IS
BEGIN
  Insert into CUSTOMERS_UK (ID, NAME, CITY)  VALUES (1,'SMITH','LONDON');
  Insert into CUSTOMERS_UK (ID, NAME, CITY)  VALUES (2,'JONES','LONDON');
  Insert into CUSTOMERS_UK (ID, NAME, CITY)  VALUES (3,'BROWN','BRIGHTON');
  Insert into CUSTOMERS_UK (ID, NAME, CITY)  VALUES (4,'GREY','BATH');
  Insert into CUSTOMERS_UK (ID, NAME, CITY)  VALUES (5,'ALDWIN','PLYMOUTH');
  COMMIT;
END;
What is the problem in my code

Published by: OraFighter on June 5, 2013 12:18

What is the value of the parameter - job_queue_processes? He sucks?

SQL> show parameter job

NAME                                 TYPE        VALUE
------------------------------------ ----------- ----------
job_queue_processes                  integer     1000

Published by: JAC on 5 June 2013 14:16
Between, you don't need to create employment in the SYS schema... In fact, you should avoid creating application objects in the SYS schema...

Tags: Database

Similar Questions

  • One for the era: how to get this output using REGULAR EXPRESSIONS?

    How to get the bottom of output using REGULAR EXPRESSIONS?
    SQL> ed
    Wrote file afiedt.buf
    
      1* CREATE TABLE cus___addresses    (full_address                   VARCHAR2(200 BYTE))
    SQL> /
    
    Table created.
    
    SQL> PROMPT Address Format is: House #/Housename,  street,  City, Zip Code, COUNTRY
    House #/Housename,  street,  City, Zip Code, COUNTRY
    SQL> INSERT INTO cus___addresses VALUES('1, 3rd street, Lansing, MI 49001, USA');
    
    1 row created.
    
    SQL> INSERT INTO cus___addresses VALUES('3B, fifth street, Clinton, OK 74103, USA');
    
    1 row created.
    
    SQL> INSERT INTO cus___addresses VALUES('Rose Villa, Stanton Grove, Murray, TN 37183, USA');
    
    1 row created.
    
    SQL> SELECT * FROM cus___addresses;
    
    FULL_ADDRESS
    ----------------------------------------------------------------------------------------------------
    1, 3rd street, Lansing, MI 49001, USA
    3B, fifth street, Clinton, OK 74103, USA
    Rose Villa, Stanton Grove, Murray, TN 37183, USA
    
    SQL> The REG EXP query shouLd output the ZIP codes: i.e. 49001, 74103, 37183 in 3 rows.
    Published by: user12240205 on June 18, 2012 03:19
    /* Formatted on 2012/06/18 17:25 (Formatter Plus v4.8.8) */
    SELECT REGEXP_SUBSTR ((REGEXP_SUBSTR (full_address, '[^,]+', 1, 4)), '[[:digit:]]+') RESULT
      FROM cus___addresses
    
  • How to run a script using the OMB tcl

    I'm trying to run a tcl script using the following syntax in cmd

    D:\app\Username\product\11.1.0\db_2\owb\bin\win32 > ombplus.bat c:\t.tcl

    and I get the error

    OMB01001: Not connected to the repository.

    The tcl script was basically accompanied by a tutorial and I can't continue the OWB tutorial, unless I run it first

    Departure ombplus.bat

    You can then start the script with the source command such as

    source C:/t.tcl
    

    Be careful with the backslash (he is not C:\t.tcl)

    You must also add a connection before your script to OWB with the OMBCONNECT

    OMBCONNECT $UserLogin/$UserPassword@$DBHostName:$DBHostPort:$ServiceName USE REPOSITORY '$RepositoryUser' USE MULTIPLE_USER_MODE
    

    Replace the parameters $ with your own value.

    And then your script, you can disconnect:

    OMBDISCONNECT
    

    Success
    Nico

    Documentation is here for the 11g OMBCOMMAND
    http://download.Oracle.com/docs/CD/B28359_01/OWB.111/b31279/TOC.htm

  • How to run SQL scripts using OWB process flows?

    Hello
    I have a few SQL Scripts. I run them using process flow OWB.

    Can I get a document or a link that helps me to achieve this?

    Thanks in advance,
    SriGP

    Hi SriGP,

    You can call SQLPLUS using the external process activity.

    Order: Give the full path of the SQLPLUS executable
    Script: specify what you want to do in SQLPLUS

    Thank you
    Fati

  • Chips with 3 delimiter characters using regular expressions

    Hello world

    I have a function that is able to mark the input in a collection string using regular expressions.

    In case the input string is a character such as the comma or semicolon delimiter,

    We can just get the result we want like the example below.

    SQL> select * from v$version;
    
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    

    SQL> with tab1 as (
      2      select 'abc,dfg,h,,1234' as col1 from dual
      3  )
      4  select regexp_substr(col1, '([^,]*)(,|$)', 1, level, 'i', 1) as result
      5  from tab1
      6  connect by level <= regexp_count(col1, ',')+1;
    
    
    RESULT
    ---------------
    abc
    dfg
    h
    
    1234
    

    But in the case where the channel of entry has 2 types of delimiter and each delimiter consists of 3 characters as below

    I wonder if it is possible to get the result as below.

    The input string: 01| ^ | ABCD| ^ | 111| * | 02| ^ | efgh| ^ | 222

    Separators: | * | is divided into lines, | ^ | is divided into columns

    Expected result:

    col1 col2 col3

    Row1 - > 01 abcd 111

    row2-> efgh 02 222

    Simply put, take a next

    The input string: 01| ^ | ABCD |^| 111 |*| 02 |^| efgh |^| 222

    Separator: | * |

    Result:

    01. ^ | ABCD | ^ | 111

    02. ^ | efgh | ^ | 222

    How can I achieve this using regular expressions?

    Kind regards

    Euntaek

    You need to know the number of the column from the outset:

    with tab1 as)

    Select ' 01 | ^ | ABCD | ^ | 111. * | 02. ^ | efgh | ^ | 222' as double col1

    )

    Select rownum,

    regexp_substr (regexp_substr (col1 '(.*?) ((\|\*\|)| $) ', 1, level, null, 1),'(.*?) ((\|\^\|)| $) ', 1, 1, null, 1) col1,.

    regexp_substr (regexp_substr (col1 '(.*?) ((\|\*\|)| $) ', 1, level, null, 1),'(.*?) ((\|\^\|)| $) ', 1, 2, null, 1) col2.

    regexp_substr (regexp_substr (col1 '(.*?) ((\|\*\|)| $) ', 1, level, null, 1),'(.*?) ((\|\^\|)| $) ', 1, 3, null, 1) col3

    of tab1

    connect by level<= regexp_count(col1,'\|\*\|')="" +="">

    /

    ROWNUM COL1 COL2 COL3

    ---------- ----- ----- -----

    1 01 abcd 111

    2 efgh 02 222

    SQL >

    SY.

  • How can I save text that I use regularly in the emails to avoid having to retype it every time?

    How can I save text that I use regularly in the emails to avoid having to retype it every time?

    Try this add-on: https://addons.mozilla.org/en-US/thunderbird/addon/clippings/

    http://chrisramsden.vfast.co.UK/3_How_to_install_Add-ons_in_Thunderbird.html

  • How to use a Timer and an event with LIFA/Arduino

    Hello world

    I feel that my question is going to sound really stupid, but I can't find the solution. I want to use my arduino to do two tasks at the same time. I want to use a while loop with a timer, read my pins in my arduino. It's really easy. But then, I like to use as a case of event do different type of things. In the example, I downloaded, I just use an event to activate my fan. Again, I have no problem to use it by itself. But I can't find a way to use both at the same time, especially when I want out of my application. Because I use my arduino inside my event, I put it in an another while loop. But I want also an another while loop, but uses the clock. In my example, if you use the tool to highlight run, see you clearly that my signal goes the while loop that contains the case of the event, but not other things that I want to use it as a timer. That's probably because I missed something on the architecture, it's just to give you an idea. I just want to know what is the smartest way to combine my case of the event and my time in a loop using the timer and how to close them correctly. I'm not an expert in Labview, so it is a bit difficult for me. If my comments seems obscure, I'll answer all your questions without any problem.

    I thank very you much for your help and attention.

    FrenchLizard wrote:

    If you use the tool to highlight execution, you can clearly see that my signal goes the while loop that contains the occurrence, but not others

    Because of the LabVIEW data flow model: value of stop button is connected to the first loop for the second loop. You can see "How to stop several loops using the only button" then you can use any implementation. http://digital.NI.com/public.nsf/allkb/267704CDE91156D186256F6D00711AAE

  • money more sunset "files needed to run the Planner missing or corrupted" then program encounters problem and closes. Downloaded multiple times on multiple computers

    money more sunset "files needed to run the Planner missing or corrupted" then program encounters problem and closes. Downloaded multiple times on multiple computers

    Hello

    I suggest you post the same question in Microsoft Technet forum for Microsoft Money Plus Sunset related issues. We have a dedicated team to help you with the problems of Microsoft Money Plus sunset.

    Microsoft Money:

    http://social.Microsoft.com/forums/is/category/money

    Hope this information is useful.

  • How to paint on screen consitently using a timer...

    Hi all

    I have a painting of the question on the screen using a timer. The timer updates my vairable (or 'against') regularly, but fails to attract the vaule consitently on-screen. In other words, when I try to 'draw' the new value of the counter to the screen, it only is not draw constantly. He, however, will draw it always when I press on and hold down a key or hold the trackball in a certain direction (because I use them in the application). I don't know why this is exactly the case. Maybe I need some sort of "listener". Thank you in advance for your help!

    Here is a code of the timer...

    public class MainTimerClass {}

    public MainTimerClass (final chart graphics)
    {
           
    Super();
               
    game_time = new Timer();
    Countdown = new TimerTask() {}
                   
    public void run() {}

    -TimeStop;
                           
    String time_out = ' "+ timestop;

    graphics.setColor (Color.WHITE);
    graphics.fillRect (230, 5, 50, 30);
    graphics.setColor (Color.DODGERBLUE);
    graphics.setFont (myFont_18);
                           
    graphics.drawText (time_out, 230,10);

    }

    };
               
               
    game_time.scheduleAtFixedRate (count, 500, 1000);

    }
           
    }

    Try the updateDisplay() call to the last line within the run of your MainTimerClass class method.

    Concerning

    Bika

  • I have a clone of the hard disk that my images are on for the trip.  How to run LR using that drive rather than what he became in general?

    I cloned the drive that my images are on a hard disk that is tougher to travel.  Think of this as an extra back upward.  How to run LR using that drive rather than what he became in general?  My plan is to return to the top/clone the drive trip to the typical reader when I go home.  The catalogue is available on a MacBook Air I'll use at any time.  It is not just enough space on the hard drive of MB Air for images.  I thought of naming the road trip with the same name as the player who is at home, and know that LR, but I think I'll get confused by doing this. The info on the two drives is the same at this point.

    Thank you.

    You use the update folder location command, as explained in part 2 of this document: http://www.computer-darkroom.com/lr2_find_folder/find-folder.htm

    You can consider using Smart saw instead of wearing of the pictures with you on an external drive, if you have the space.

  • How can I change the phone number to use Face Time?

    How can I change the phone number to use Face Time?

    Your phone number come from your SIM, and when you open a session and activate FaceTime. It should appear automatically. If it is not, then I would say that your FaceTime does not complete the activation process. If you go to settings > FaceTime, you see something awaiting activation or waiting for activation under the switch to turn it on?

  • When downloading using firefox I should save the download, and then must go to the download file to start the download. When I download using internet explore I can run a download at the time where as it is downloaded. Can I change a setting somewhere?

    I use Windows 7 with firefox as my default browser. When I download a program using firefox, I wonder if I want to save the file, and then must go to the download folder to start the download. When I download using internet explorer, I gives me the ability to run the download at the time where it is downloaded instead of save the download. Is there a setting I can change to allow me to run downloads when using firefox instead of record?

    Hi shortwedge3,

    You can use the OpenDownload2 extension for the run option when downloading files with Firefox

  • How can I know if an external drive has been used for Time Machine and what computer it came with too?

    How can I know if an external drive has been used for Time Machine and what computer it came with too?

    I have several laptops and iMacs. I spent the relocation of the year and only used the MacBook Pro.

    Now I'm trying to figure out which drive goes with which computer

    I connected just a disk seagate 1.5 t and the first thing he did was to ask if I wanted to use it as a Time Machine drive.

    (1) if it is the TM disk accompanying this computer don't would not it have just started upward automatically?

    (2) what happens if I would have said yes?

    (3) I don't even know if it's been activated for TM. Is there a way to tell? It may hold just for iMovie files and other programs associated with a computer from my past.

    All readers of backup Time Machine contains a folder named: Backups.backupdb. If you open this folder, you'll find another folder with the name of the computer that has been saved. If several computers have been saved on the same disk, you will have several folders.

  • How can I use my time capsule as a hard drive on an existing network accessed through a password

    How can I use my time capsule as a hard drive on an existing network, storage, accessed through a password?

    We need more information in order to provide the right solution and Setup for you.

    You already have another router Apple... as an AirPort Extreme or Airport Express that provides the signal of your wireless network?

    If not, what is the serial number and model of your modem?

    Finally, what operating system is installed on the device you will use to install and configure the time Capsule? If it's a Mac and you're not sure what operating system it uses... click on the Apple icon in the upper left corner of the screen, then click on about this Mac, and post back with number of Version of OS X that you see there.

  • I have a new time capsule airport. How to limit the search for who can use the time capsule backup process?

    I have a new time capsule airport. How to limit the search for who can use the time capsule backup process?

    Set a password to disk... disk tab in the utility... and just give to those you want to use the TC...

Maybe you are looking for