schedulerjob to the evolution of the arguments

Hi all

I'm about to convert jobs (previously treated with dbms_job) to the tasks in the Scheduler (see example below).

=================================================================

My job is:

Start

dbms_scheduler.create_schedule (schedule_name = > 'sched_index_sync',)

repeat_interval = > ' FREQ = minutely; RANGE = 2',

Comments = > "schedule to run every two minutes");

dbms_scheduler.create_program

(program name = > 'prg_sync_index',)

program_type = > 'PLSQL_BLOCK' ,

program_action = > ' START PKG_Admin_IM. PRCD_sync_index ("KATALOG_KATWERT_IM"); END;',.

enabled = > TRUE,

Comments = > "Index of Sync KATALOG_KATWERT."

);

() dbms_scheduler.create_job

job_name = > 'katalog_index_sync ',.

program name = > "prg_sync_index"

schedule_name = > "sched_index_sync"

enabled = > true,

Comments = > 'index katalog of sync.'

);

end;

=================================================================

Now my question is:

task is the textindexes synchronization in an interval of 2 minutes. As I have more than one index I want a solution that allows me to create a job that simply receives the apropriate attributes and then begins to run.

Attribute changes in oral argument (index_name) given to the package. My only idea how to manage this is a chugging of jobs, but it is so necessary to create several jobs each manages a specific index (which I don't). So is there a way to simply create a job using a scale and manages SEVERAL index?

Any help appreciated.


AMAZON


Hello

If you want to manage multiple indexes in the same job, then use a loop in your PL/SQL block to call your proc several times.

Another option is to create your program as a procedure_stockee with 1 argument. This argument would be a collection of index names. Before you run the work pass the collection as the value of the argument.

Tags: Database

Similar Questions

  • I can't the arguments passed to the AWR Design environment?

    From a script Visual Basic can I get a list of command line arguments that were used to start Office from microwave or VSS?

    The command line arguments passed to the application at startup are accessed through the collection of application arguments MWOffice.Arguments . Each whitespace delimited command line argument is available as an argument object in the collection. The Argument.Value property contains the value of this argument. For example, the following script displays a list of the arguments passed to the application in the debug output window.

  • Value of the argument of the Add method must be a date or UsiTimeDisp.

    I am writing a code to allow users to define what to look for in the navigatro and then use the results for further analysis. But when I try to search by date of creation I get an error that says: "add the argument to the value of the method must be either a date or a USiTimeDisp. I have tried different methods to enter the dates (dd/mm/yyyy, mm.dd.yyyy etc) but none have worked.

    What is this error and how can I fix?

    The add method does not accept a string but only CDate or UsiTimeDisp.

    Creation usiTimeDisp

    protected cdateVal: cdateVal = now
    protected timedispVal: set timedispVal = createTime (year (cdateVal), month (cdateVal), day (cdateVal), (cdateVal) hour, minute (cdateVal), second (cdateVal))

    In this case, I started with a CDate I created using now.

    How to get a CDate from a string. Here, we encounter the problem of the locale.

    English: 22.08.1970 10:22:30

    German: 22/08/1970 10:22:30

    which is also reflected by converting a CDate chain.

    Option Explicit

    protected cdateVal: cdateVal = now
    Dim strVal: strVal = CStr (cdateVal)
    StrVal MsgBox
    protected cDateVal2: cDateVal2 = CDate (strVal)
    msgBox cDateVal2

    This code will work. It is capable of converting a CDate a CStr and then back into a CDate. This works if the string is formatted as expected by your locale.

    CDate ("22.08.1970 10:22:30")

    will work in Germany but fails in the United States.

    protected diademtimeVal: TTR = diademtimeVal ("22.08.1970 22:30","dd.mm.yyyy HH" ")
    protected timedispVal: set timedispVal = createTime (0, 0, 0, 0, 0, 0)
    timedispVal.SecondsFrom0000 = diademtimeVal

    you create a usitimedisp object using a fixed format string. This should resolve your request.

  • the server script, line 2610; 2 the argument must be of type table

    I get an error message: script server, line 2610; 2 the argument must be of type table.

    This message appears on the screen immediately after that I turned on my laptop. Please see the below.

    Please advise the possible fix for this problem.

    Thank you

    To resolve your concern, we suggest that you perform a clean boot on your computer. Perform a clean boot on your computer will help us eliminate software conflicts that could cause this error message. To perform a clean boot on your computer, follow the steps on this link.

    Let us know how it goes.

  • Chr (44) to replace the commas separating the arguments of a function?

    In Oracle SQL, it is possible to replace the commas between the arguments of the function with chr (44)?  A simple example with substr():

    substr ("yyyy", 1, 1) - the result is 'a '.

    vs

    substr ("aaaa" chr (44) 1 chr (44) 1)-this should also return 'a '.

    Is there a way to make the second example works the same way as the first?  I tried different techniques escaping, string concat, etc., and I failed.  Is there a method to replace the comma (",") the character of the way I'm looking for or is this impossible?

    Thank you

    N °

    The Analyzer seeks commas, not for other things you as a human being assimilated by a comma.

  • After effects are "disabled" when you run the argument s AfterFX.exe

    Hey guys, was hoping that you could help me.

    Write my first script with sequels to automate some of my approach. I want the script runs at startup with certain arguments passed via the command line, so I use the command - s.

    Everything is done except for one problem, when I run AfterFX.exe with the argument - s, for example if I do this:

    "PATH_TO_ADOBE_CS6\Support Files\AfterFX.exe" s "alert ('foo')"

    It opens after effects and I get this dialog box "foo", but for some reason any after effects is 'disabled '. I mean, it of that I can't do anything, is not open any project, nothing. all options are grayed out.

    Note that if after effects is already running, and I run the command, it is not 'turn off' after effects and I got the desired result.

    I use windows and legacy CS6.

    Note: of course, I intend to do something more complex than alert ('foo') that has been used a minimalist example to show my problem.

    Figured it out. For those who find it later, all I had to do was add "app.exitAfterLaunchAndEval = false;

  • Closure on the arguments of a function

    I know it must be simple, but I'm apparently not find good Google search terms.

    I have a function called foo, in which I want to pass any number of arguments.  Each argument will be the name of a page element.

    For example: foo ('P21_CUST_NAME', 'P21_CUST_CITY', 'P21_CUST_ZIP');

    I want to iterate (loop) over the arguments and values of each test item.    Foo will return a string like. y.n.y. that will be searched to find all occurrences of. n. If all occurrences of. n. lie, then the page is not fully completed, and I'll show you a red icon.

    I want to build this as a multi-purpose function that can accept a number any arguments.  The logic in the loop (i.e. null or not) is not at issue here.  I can do it without problem.  I just need to know how a loop on all of the arguments passed in foo, if there is an argument, or three or twenty-seven.

    Thoughts, please?

    Apex 4.2.3.00.08

    Mark T. says:

    I was unclear in my use of the word "function".  I want to define a function in JavaScript, not PL/SQL.

    In this case, iterate over the elements of the arguments object:

    function foo () {
      for (var i = 0; i < arguments.length; i++) {
        alert(arguments[i]);
      }
    }
    
  • Get-clusters. Get-view resulting with the argument cannot be null or empty

    Recently, one of my faithful scripts stopped working - all the words of wisdom and advice are welcome.

    SCRIPT:

    $clusters = get-Cluster | Get-opinion

    foreach ($cluster in $clusters)

    {

    $1stESXinCluster = Get-VIObjectByVIView - MORef $cluster. Host [0]

    }

    RESULT:

    The argument cannot be null or empty.

    In: line tank: 5:46

    + $1stESXinCluster = Get-VIObjectByVIView - MORef < < < < $cluster. Host [0]

    It would be possible, one of the pole which is located in $cluster is without a host.

    You can add the conditional operator in the present.

    $clusters = Get-Cluster | get-view
    foreach ($cluster in $clusters)
    {
    if ($cluster.Host[0]-ne $null){
    $1stESXinCluster = Get-VIObjectByVIView -MORef $cluster.Host[0]
         }
    }
    

    Hope this helps

  • Exception by calling 'SearchDatastoreSubFolders_Task' with '2' or the arguments

    We are trying to create a script that will search our LUN and save my VM to an ESX host. I have a few FC LUNS and LUN iSCSI. The problem is none I only get an error message when he discovered the Local VMFS volume.

    The error is the followinng.

    Exception calling "SearchDatastoreSubFolders_Task" with "2" or the arguments: "path of the invalid data store ' [http://bru03srvesx:storage1 |]» [http://bru03srvesx:storage1] "". " "

    To: line: 142 tank: 62

    + $TaskMoRef = $DatastoreBrowser.SearchDatastoreSubFolders_Task < < < < ($DatastorePath, $SearchSpec)

    Does anyone have an idea?

    I think the line should say $FolderID instead of $folder.

    ...
                   $FolderID.RegisterVM_Task($VMx,$matches[1],$FALSE,$ResourcePool.MoRef,$null)
    ...
    
  • What does '... argument ' average in the arguments of a function

    So can someone explain this?

    So far, I have seen no document on this subject. I don't know how to use it, but I would like to know what it means and.

    Things like these makes the flash/flex/as learning reylly hard when there is no documentation.

    If you define a function, you can add... .args as argument, which means that the function can receive an array of multiple arguments. This is useful if you don't know in advance of the arguments how your function will receive.

    An example:

    public void sum(...args):Number

    {

    var s:Number = 0;

    for each (var n: Number in args)

    {

    s += n;

    }

    return s;

    }

    See also: http://www.adobe.com/livedocs/flex/2/langref/statements.html#..._%28rest%29_parameter

    Dany

  • How to create line breaks in the argument cftextarea, format = flash

    I use < cfform format = "flash" >, and I can't understand how to create a linebreak in the form argument cftextarea control. For example, in the following code, I would display "item1", "item2" and "item3" on separate lines. I'm new to cfform and flash tags, so any help would be greatly appreciated!

    < name of the argument cftextarea = "impacted_systems."
    label = "affected systems.
    ReadOnly = 'yes '.
    height = "24".
    Width = "300".
    Wrap = "virtual" > < cfoutput > topic 1, item2, item3 < / cfoutput > < / argument cftextarea >

    Try #chr (13) # between your objects


    label = "affected systems.
    ReadOnly = 'yes '.
    height = "48".
    Width = "300".
    Wrap = "virtual" >item 1, #chr (13) #item2, #chr #item3 (13)

  • ORA-30625: shipping method on the argument NULL SELF is not allowed

    Hello


    I have the following script when I = 5, it returns the value isn't always but is based on the 'i' value dynamically based on my .xml
    If I use the syntax below, I get ORA-30625: shipping method on the argument NULL SELF is denied, I tried to uncomment the commented below lines but the i get no error in compilation, but he always returns null if in this case, he must come back when my i = 5, any suggestions how to solve the error ORA.




    declare

    l_xmltype XMLTYPE.
    p_file_name constant varchar2 (50): = "xx.xml";
    v_temp varchar2 (100);
    Start
    l_xmltype: = XMLTYPE (bfilename ('XMLDIR', p_file_name),
    nls_charset_id ('AL32UTF8'));
    for i from 1 to 8 loops
    dbms_output.put_line ('i' | i);
    -If l_xmltype.extract ('/ html/div/table/tbody/tr/td/b/text () ') is null then
    -v_temp: = null;
    -dbms_output.put_line ('v_temp :'|| v_temp);
    -other
    v_temp: = l_xmltype.extract('/html/div/table/tbody/tr/td[i]/b/text()').getStringVal ();
    dbms_output.put_line ('v_tmp :'|| v_temp);
    -end if;
    end loop;
    end;
    /

    Close on your attempt to paste the code.
    Put the tag after the code as well. And I mean here the code word wrapped with {}

    Then in the text window when you write, it would look like this (without space after the Word code)
    {code}
    declare
    i the number;
    Begin
    dbms_output.put_line ('dbms_output.put_line (l_xmltype.) Extract('/HTML/DIV/table/TBODY/tr/TD[2]/text()').getStringVal ());
    end;
    {code}

    that would translate to

    declare
       i number;
    Begin
       dbms_output.put_line('dbms_output.put_line(l_xmltype.extract('/html/div/table/tbody/tr/td[2]/text()').getStringVal());
    end;
    

    The text in the first example has the same size of spacing as the second example HTML cache multiple spaces, so they are different.

  • Problem with the arguments of a function

    I'm having a problem with the arguments of a function does not. In the attached example, the values passed to the function never appear within the function.

    Can someone tell me what I am doing wrong?

    Thank you
    David

    * the params in your displayPic function should be only by var, not their names name var and their data types *.

    Copy and paste the code I wrote below in a new flash on chassis of the _root document, follow the code, test the movie and check your output window. you will see how to pass arguments to a function is as simple as 1, 2, 3.

  • does not the passage of the arguments

    I'm stuck and have no idea on the left

    First of all, I have a global activity creation in what method I attribute to the arguments value for example:
    County = 10109

    then in my start in the BeginIn window node, I attributed this argument to a variable of proyect
    Instance variable: contador
    Argument: County

    and I have an automatic activity when I put a screen of contador but it illustrates the displayed options: [0]

    Creating global activitry is in a line of the function and the Begin node and the activity is automatic on automatic control

    Thank you

    Try this to see what it is we are doing differently.

    Import the project I exported to http://www.4shared.com/file/136580244/2ef9898b/TestProcess.html (download the file-> Studio start-> click on "File"-> "Import"-> "BPM" expand-> click on 'export BPM project...) ».

    This project is a single process that I just built using the same steps above.

    1 double-click on the activity to Begin. Note the instance variable 'count' mapped to the argument variable 'countArg '. Also notice the 'meter' project variable mapped to the argument variable 'countArg '.

    2. start the engine and run the project from the workspace (newspaper as 'test'). Create an instance and note that when you run the Interactive activity, you will see the value passed in the displayed global creative activity.

    Hope it gets you going,
    Dan

  • What does the argument [] State_Information in the FIRFiltering() function?

    I'm writing a digital filtering code, but I have no experience with digital filters.  I think I need the advanced analysis library FIRFiltering() function.  This feature provides arguments for the input data table, all of the coefficients of the filter, the output array and also a table called the State_Information.  Whence this table and what is it?

    Original terms of X contains the most recent entries. The last entry prior should be the last item in the array. The number of elements in this array must be less than the number of items in the table of Coefficients of FIR.

Maybe you are looking for