Disqualification external tasks

Hello

I have a stored procedure, and I am the appellant through a Windows File batch (.bat) in the location "edq\oedq.local.home\commandarea".

The procedure is completed successfully, but the external task is not getting out even after that stored procedure runs correctly. We have to manually cancel.

Because the command line is not automatically get closed. Is there any solution to get out of the external Disqualification task task?

Appreciate your input on this.

Untitled.jpg

Thank you

Anand R

As we've said before, you must add an EXIT statement at the end of your script. It works for me if you do this:

...

end loop;

END;

/

EXIT;

/

Tags: Fusion Middleware

Similar Questions

  • The execution of an external task with dynamic parameters

    The current scenario is that a job is running a process that will return an XML of records and their corresponding scores after going through a few search rules. Finally, these files will be returned to Siebel, but until this is done, we would like to run a XSL Transformation on them. We have developed an external executable that takes input and the output XML target files as arguments and applies the transformation.

    Logically speaking, Disqualification will have to write to an XML file, call the external task (pointing to the correct XML file as it may be several simultaneous research generating XMLs), wait for the task to complete, read the XML data, and then pass this information through the web service.

    As mentioned above, the biggest problem here would be the potential of many users at the same time research. Therefore, a Shared output THAT XML is not a workable solution.

    How dynamic arguments can be passed in writing to an XML file and the execution of an external task?

    It depends on.

    In general, we use attributes of the entry on the message to change the behavior of a service in real time. The match of entry score threshold is an example of this - the process uses this attribute do not return the results below. Similarly, we use attributes in the address for service of cleaning that control whether to change the address of entry. Your customer may have a logic that defines the entry attribute values - in the case of Siebel, the threshold value is a good example of what it can be configured in Siebel and defined by the connector for Siebel Disqualification.

    Then there are options outsourced in a process of the Disqualification. These can vary for different works the same task using a profile or command-line... run the limitation of which is that the evolution of the option for a given service means stopping and restarting, but it allows things such as the same configuration to have different behaviors on different series, or by operating on different machines.

    I recommend you to read about outsourcing in the online help. Most of the settings configuration of the Disqualification can be outsourced and substituted at execution - a powerful feature that can and has been used to solve a variety of problems.

    Kind regards

    Mike

  • OEDQ 9.0.8 - external task - execution of Shell Script

    Hello Disqualification Experts.

    I am looking for your expert advise on this... With the help of the external task I am able to call the .bat (batchfiles) but I'm not able to run .ksh (UNIX shell script file), attached is the example script I am trying to run via the external task.

    File name: testfile.ksh

    #! / usr/bin/ksh

    Set - x

    $ORACLE_HOME/bin/sqlplus - s edq_test/edqtest@edqd < < EOF

    WHENEVER SQLERROR EXIT SQL. SQLCODE

    EXECUTE SP_TRUNCATE_TABLE ('ABC_OWN', 'ABC_TABLE');

    COMMIT;

    quit smoking;

    EXPRESSIONS OF FOLKLORE

    output

    Disqualification-> Manager-> External tasks-> Creates a new task called TestTask who has the below...

    Command: testfile.ksh

    Working directory: \opt\local\software\edq\config\commandarea

    Get this error Message:

    The external task (Execute testfile.ksh) failed because of the following exception: cannot run program "/ opt/local/software/edq/config/commandarea/testfile.ksh": error = 2. No such file or directory

    Thanks in advance!

    BG

    Dear Richard, thank you for your prompt response.

    # / bin/bash helped and I also have to export the ORACLE_HOME in the script, somehow the $ORACLE_HOME is not recognized by the external task.

    Example of Script working:

    #! / bin/bash

    export ORACLE_HOME=/ora02/oracle/product/11.2.0.4/client

    $ORACLE_HOME/bin/sqlplus - s edq_test/edqtest@edqdev<>

    WHENEVER SQLERROR EXIT SQL. SQLCODE

    EXECUTE SP_TRUNCATE_TABLE ('ABC_SCHEMA', 'ABC_TABLE');

    COMMIT;

    QUIT SMOKING;

    EXPRESSIONS OF FOLKLORE

    output

    Thanks for your help!

    BG

  • External tasks in OEDQ

    Hello

    I'm new to OEDQ. I am trying to build a work from end to end of the downloading of a file, do a cleanup and formatting, matching and finally inserted/updated to update to the final table. I'm stuck with the options "External task" on OEDQ.
    «Could someone please show how to use the options of "External Executable" and "file download" with some examples please.» I am trying to download a file from a computer on the network (something like / / machinename/foldername/filename.csv)
    Appreciate your help

    Thank you
    JAI

    Hi Jai,

    This should be as simple as using a file:// syntax in the URL of the file download task field.

    For example file://server/directory/subfolder/file.ext

    Kind regards

    Mike

  • How to catch the end of an external task?

    Hello

    How to catch the end of an external task?
    OS: Windows 2003
    DB: 10.2.0.1

    The code I wrote will run forever:
    declare
       d date;
       n number;
       -- and more
    begin
        d := sysdate;
        dbms_scheduler.create_job(
          job_name => c_job,
          job_type => 'executable',
          number_of_arguments  => 14,
          job_action => c_cmd,
          enabled => false,
          auto_drop => true
        );
        dbms_scheduler.set_job_argument_value(c_job,1,'/c');
        dbms_scheduler.set_job_argument_value(c_job,2,c_command);
        dbms_scheduler.set_job_argument_value(c_job,3,c_pw);
        dbms_scheduler.set_job_argument_value(c_job,4,c_pw_val);
        dbms_scheduler.set_job_argument_value(c_job,5,c_port);
        dbms_scheduler.set_job_argument_value(c_job,6,c_port_val);
        dbms_scheduler.set_job_argument_value(c_job,7,c_key);
        dbms_scheduler.set_job_argument_value(c_job,8,c_key_val);
        dbms_scheduler.set_job_argument_value(c_job,9,c_agent);
        dbms_scheduler.set_job_argument_value(c_job,10,c_batch);
        dbms_scheduler.set_job_argument_value(c_job,11,c_source);
        dbms_scheduler.set_job_argument_value(c_job,12,c_dest);
        dbms_scheduler.set_job_argument_value(c_job,13,c_log);
        dbms_scheduler.set_job_argument_value(c_job,14,c_yes);
        dbms_scheduler.enable(c_job);
     
        -- Job started, waiting...
        loop
          select count(1)
          into n
          from user_scheduler_job_run_details t
          where job_name = c_job and
                t.log_date >= d;
          exit when n > 0;
          dbms_lock.sleep(1);
        end loop;
     
    end;
    The work ends in fact, user_scheduler_job_run_details is updated (if you run the select statement in the loop in another session, it returns 1), but the selection running into the loop will always return 0.
    Any help is appreciated.

    Kind regards
    Lmocsi

    Hello

    It's strange, maybe you can try to use the timestamp type rather type date and with the help of an offset in the case where the work already finished for example d = systimestamp - second interval '1'

    Another thing to watch is if you compare the dates in the same time zone, otherwise you must ensure that all sessions use the same time zone (setting the default_timezone attribute Planner can help).

    Hope this helps,
    Ravi.

  • JSF and JSFF paged called by external task flow

    Hello world.

    After working with JDeveloper and ADF Faces not too much but not too little time, I have a question:

    What is the best and practice how to call from a workflow in a project, external Pages JSF or JSFF located in another project?

    In my particular case, I have:
    First: a project with all the JSF and JSFF stuff and a task runs for navigation JSFF which are called in a "main" JSF page
    Secondly: another proyect with all nodes in key workflows and activities.
    The two projects are in the same application.

    I studied the Oracle Fusion developer's Guide, read the Blog of the Andrejus Baranovskis to
    [http://andrejusb.blogspot.com/2008/06/how-to-call-remote-task-flow-in.html]
    And of course to review several post here in the Oracle Forum.

    For most of the JSF pages, I use the display component of the URL in the workflow project, providing the URL of the page.
    I call to the JSFF, just in the "main" JSF page workflow that calls the JSFF workflow. In a way, it's like a network of workflow.

    {So: any suggestions on how to improve this approach ' "?}

    Perhaps using an ADF file library JAR could improve this, but I don't know and I don't understand exactly how it works.
    A fact more: instead of using business components, I use the ADF faces with the EJB 3.0 technology because work requeriments.

    And... This will work also for projects in separate applications? or it is necessary that the workflow and the JSF stuff must be in the same application and even in the same project?

    Thanks in advance.

    Hello

    You can call external task (called remote task flow) flow of a workflow but call activity only if the workflow is using JSPX pages - no fragments of the page. If the workflow that you want to access using fragments of the page then the best practices to follow are to create an ADF of the workflow library and put at the disposal of an ADF Jar library. The library of the ADF JAR can be imported into a project in JDeveloper, using the range of resources in JDeveloper.

    Frank

  • External task does not work

    Hello

    I try to call a batch file that has copied the fdr files from one folder to another and runs sarmanalyzer to generate csv files in the disqualification landing area.

    The batch file works well when called from the prompt command or double click on the server of the disqualification, but does not work as expected when it is called project or work.

    I have generated a log file that confirms that the log file is running of the task for the last line, but commands to copy and file sarmanalyzer don't work quite simply.

    Pointers are greatly appreciated.

    Thank you

    SID

    SID,

    I don't know enough about the security of windows so I don't know if the Network Service account should run or not, but there is certainly a problem of security here [Account NetworkService (Windows)]. You certainly have correct permissions on the sharing of this machine [Note that it is not seeking to connect by using a domain account]. You can also change the service runs under a domain account - you can test it by running tomcat using your logon credentials. It would be the equivalent of the execution of the batch from the command line.

    Thank you

    Nick

  • External tasks

    I am trying to use the type of implementation 'External' of interactive activities, but I have some difficulty. I do not understand how the customer, also I don't know how the BPM engine knows who to call.

    Someone at - it an example of a project that can send me?

    Rodrigo Zuchetto

    Hi Rodrigo

    You can follow the following steps

    BPM
    1. in the title of the external resource, create a new resource of type "Server Configuration". Specify your host, port and path of servlet/jsp.
    2. for the main task of the interactive activities, choose the type of implementation as "external".
    3. create a preparation method and validation. Prepare method will be called from your servlet, and you can set arguments (like output args) which will be forwarded to your external java application of BPM
    4 validation method will be called from your java application, once you are done with the treatment. Here you can set args (as a starter). These args will be fixed in java app when he calls this method commit.

    In JavaApp
    1. for the servlet that you set in step 1 above, define a default handler and initialize a session of papi here.
    2. call activityPrepare on this papisession and get in on the variables passed to the step 3 above
    3. perform your treatment
    4. call activityCommit on the papisession and pass new parameters

    HTH

  • The external task - prepare method - encode - decode

    I ecrire write code in the prepare method, see thread:

    How to call a java application in the middle of the process
    Papi to work with processes using
    How to call a java application in the middle of the process

    If the error is caused by the decoding and the encodeing the URL, please tell me how to solve this problem.

    Thank you very much.

    The following code snippet
    -------------------code-----------------------------------------------
    getInstance package;

    Import fuego.lang.DynamicObject;

    Import fuego.papi.Arguments;
    Import fuego.papi.CommunicationException;
    Import fuego.papi.InstanceInfo;
    Import fuego.papi.ProcessService;
    Import fuego.papi.ProcessServiceSession;
    Import fuego.papi.OperationException;

    to import java.util.Iterator;
    import java.util.Map;
    import java.util.Properties;

    public class prepare {}
    {} public prepare()
    }

    Public Shared Sub main (String [] args) {}
    prepare prepare = new prepare();

    Properties configuration = new Properties ();
    configuration.setProperty (ProcessService.DIRECTORY_ID, 'default');
    configuration.setProperty (ProcessService.DIRECTORY_PROPERTIES_FILE, "D:\\BPM_HOME_standalone\\webapps\\papiws\\WEB-INF\\directory.xml");
    configuration.setProperty (ProcessService.WORKING_FOLDER, "/ tmp" "");
    System.out.println("1111111111111");

    Arguments argumentsResult = Arguments.create ();
    String taskIn = '0 '.
    Activity of channel = "/InvokeJavaProcess#Default-1.0/InteractiveJava"; both are very well
    Activity of channel = "InteractiveJava"; both are very well

    String instanceId = ' / InvokeJavaProcess#Default-1.0/203/0 ';

    try {}

    ProcessService processService = ProcessService.create (setting);

    ProcessServiceSession session = processService.createSession ("jcooper", "welcome1', 'host');
    System.out.println ("instanceID 33333 =" + instanceId);

    argumentsResult = session.activityPrepare (activity, instanceId, Arguments.create ()); error begins here

    System.out.println("444444444");
    DynamicObject obj = argumentsResult.getDynamicObject ();

    Map fieldMaps = obj.asFieldsMap ();

    for (iterator Iterator < String > = fieldMaps.keySet () .iterator (); iterator.hasNext ();) {

    Key of type string = iterator.next ();
    System.out.println ("key:" + obj.getField (key) + key "value");

    DynamicObject obj2 = argumentsResult.getDynamicObject ();
    Map fieldMaps2 = obj2.asFieldsMap ();
    for (Iterator < String > it = fieldMaps2.keySet () .iterator (); it.hasNext ();) {
    System.out.println ("key:" + key + "value:" + obj2.getField (key));
    }

    }

    session. Close();
    } catch (OperationException e) {}
    e.printStackTrace ();
    }





    }
    }


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

    But I get an error as follows:

    -------------------error---------------------------------------
    E:\Jdeveloper10131_20090318\jdk\bin\javaw.exe-client - classpath E:\Jdeveloper10131_20090318\jdev\mywork\Java_be_invoked\getInstance\classes;D:\BPM_HOME_standalone\client\papi\lib\fuegopapi-client.jar getinstance.prepare
    1111111111111
    Connector creation [fuego:SQL]
    Creation of ProcessService with the id "oracle/2009-03-31 18:08:47 + 08:00 '.»
    File local/tmp\system\Schema3387192-1796619082\catalogs found.
    Loading of the catalogues of local folder: / tmp\system\Schema3387192-1796619082\catalogs
    1 pots found locally.
    Local successfully jar '126' loaded.
    [CatalogMgrCache] =.
    Registration CatalogMgr [oracle/2009-03-31 18:08:47 + 08:00]... CatalogManagerCache 14949315:
    Managers:
    {}
    Counters:
    {}
    [CatalogMgrCache] =.
    CatalogMgr [oracle/2009-03-31 18:08:47 + 08:00] RECORDED! CatalogManagerCache 14949315:
    Managers:
    {18:08:47+08:00=fuego.util.LocalCatalogManager@1dacccc oracle/2009-03-31}
    Counters:
    {}
    ProcessService ' oracle/2009-03-31 18:08:47 + 08:00 ' created successfully.
    33333 instanceID=/InvokeJavaProcess#Default-1.0/203/0
    Tolerance of inaccessible engine (seconds):
    default: 0
    to serve: 0
    This customer papi sets cache not exceptions that involve that an engine could not be reached.
    Adding a local catalog for project: 124
    [CatalogLoaderMgrCache] =.
    CatalogClassLoader [oracle/2009-03-31 18:08:47 + 08:00 - 124] added to the cache

    ClassLoader catalogue card:
    {oracle/2009-03-31 18:08:47 + 08:00-124 = CatalogClassLoader (FuegoObjectCatalog (catalogIn: 124, directoryId: oracle/2009-03-31 18:08:47 + 08:00))}))}

    Cache Catalog Manager:
    CatalogManagerCache 14949315:
    Managers:
    {18:08:47+08:00=fuego.util.LocalCatalogManager@1dacccc oracle/2009-03-31}
    Counters:
    {oracle/2009-03-31 18:08:47 + 08:00 = 1}
    fuego.papi.exception.TaskFailedException: task '0' activity ' / InvokeJavaProcess # default - 1.0 / Interactive [InteractiveJava]' for example ' / InvokeJavaProcess#Default-1.0/203/0' cannot be run successfully. The task failed when executing method 'PREPARE %. "
    at fuego.papi.exception.TaskFailedException.create(TaskFailedException.java:57)
    at fuego.server.AbstractProcessBean.createTaskFailedException(AbstractProcessBean.java:3572)
    at fuego.fengine.FEngineProcessBean.createTaskFailedException(FEngineProcessBean.java:398)
    at fuego.server.AbstractProcessBean.runTask(AbstractProcessBean.java:3193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)
    at java.lang.reflect.Method.invoke (unknown Source)
    at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
    at fuego.lang.JavaObject.invoke(JavaObject.java:227)
    at fuego.component.Message.process(Message.java:585)
    at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:780)
    at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:755)
    at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142)
    at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134)
    at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:244)
    at fuego.component.ExecutionThread.work(ExecutionThread.java:839)
    at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
    at fuego.component.CustomExecution.next(CustomExecution.java:176)
    at fuego.papi.impl.rmi.RMIExecution.next(RMIExecution.java:109)
    at fuego.papi.impl.ProcessInstanceOperation.prepareExternalActivity(ProcessInstanceOperation.java:695)
    at fuego.papi.impl.ProcessServiceSessionImpl.activityPrepare(ProcessServiceSessionImpl.java:1420)
    at fuego.papi.impl.ProcessServiceSessionImpl.activityPrepare(ProcessServiceSessionImpl.java:1414)
    at getinstance.prepare.main(prepare.java:43)
    Caused by: fuego.lang.ComponentExecutionException: the "CIL_interactiveJavaPrepare" class method "oracle. InvokeJavaProcess.Default_1_0.Instance' cannot be run successfully.
    at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:519)
    at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:273)
    at fuego.fengine.FEEngineExecutionContext.invokeMethodAsCil(FEEngineExecutionContext.java:219)
    at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1280)
    at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:401)
    at fuego.server.execution.InteractiveNormalCilExecution.invoke(InteractiveNormalCilExecution.java:425)
    at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:513)
    at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:697)
    at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:657)
    at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:154)
    at fuego.server.execution.microactivity.InteractiveMicroActivity.executeNormalCil(InteractiveMicroActivity.java:501)
    at fuego.server.execution.microactivity.InteractiveMicroActivity.executeItem(InteractiveMicroActivity.java:454)
    at fuego.server.execution.microactivity.InteractiveMicroActivity.execute(InteractiveMicroActivity.java:104)
    to fuego.server.AbstractProcessBean$ 48.execute(AbstractProcessBean.java:3184)
    to fuego.server.execution.DefaultEngineExecution$ AtomicExecutionTA.runTransaction (DefaultEngineExecution.java:304)
    at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
    at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
    at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
    at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
    at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
    at fuego.server.AbstractProcessBean.runTask(AbstractProcessBean.java:3188)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)
    at java.lang.reflect.Method.invoke (unknown Source)
    at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
    at fuego.lang.JavaObject.invoke(JavaObject.java:227)
    at fuego.component.Message.process(Message.java:585)
    at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:780)
    at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:755)
    at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142)
    at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134)
    at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:244)
    at fuego.component.ExecutionThread.work(ExecutionThread.java:839)
    at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
    Caused by: java.lang.NullPointerException
    at oracle. InvokeJavaProcess.Default_1_0.Instance.CIL_interactiveJavaPrepare (Instance.xcdl:1)
    at oracle. InvokeJavaProcess.Default_1_0.Instance.CIL_interactiveJavaPrepare (Instance.xcdl)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)
    at java.lang.reflect.Method.invoke (unknown Source)
    at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:512)
    ... 34 more
    Process has finished with exit code 0.

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

    The following is the only difference with the code of yours and mine, and it does not work for me.

    fuego.papi.Arguments args = fuego.papi.Arguments.create ();
    args = papisession.activityPrepare (activity, instanceId, args);

    Note that I don't have another object to restultArgs you. Not sure if this should make a difference.
    Second, the arguments that I have nothing in it. For you, there is an argument in this object, which is var1 = dyn. I guess that since there is no argument in your prepare method entry mode, this variable could not be transmitted to the prepareMethod. (Just a guess)

    Here's my understanding:
    prepareMethod is used to pass arguments of BPM for external application. So, you can define arguments of prepareMethod as arguments of mode 'out '. These arguments are defined in 'args' when you call "args = papisession.activityPrepare (activity, instanceId, args); The external application can then perform a treatment based on them and later call commit and go back a few arguments to BPM.

    May be worth trying another

  • simple external task works in windows 7 Enterprise, but not windows 2008 R2, Enterprise Edition.

    SQL * more: 11.2.0.1.0 output

    widows 7 sp1 and company 2008 sp1

    The task runs without error on both environments of windows 7, but the job fails on windows 2008 with:

    Error 255

    "EXTERNAL_LOG_ID ="job_89424_68834 ",
    ORA-27369: jobs of type EXECUTABLE failed with exit code: extended attributes are incompatible.
    "

    I know that's not the credentials that I can replace it with another undefined user and it will tell me the username and/or password is not valid.

    I create a directory specified with the user in question and checked I can read/write in it.

    without arguments to cmd.exe job, I still get the error.

    Joe can run the cmd.exe without problem.

    Is there some slight difference in windows 7 and 2008 server (security?) that would explain this?

    the user joe is a member of local administrators and ora_dba on all servers groups

    employment and identification information defined as follows:

    BEGIN
    () sys.dbms_scheduler.create_credential
    username = > 'joe. "
    password = > joespassword,
    database_role = > NULL,
    windows_domain = > NULL,
    Comments = > NULL,
    credential_name = > ""DBREP"". "" Joe' "
    );
    END;

    BEGIN

    SYS. DBMS_SCHEDULER. () CREATE_JOB

    job_name = > "'BLAH'". "test" ', "

    job_type = > 'EXECUTABLE. "

    job_action = > "C:\Windows\System32\cmd.exe"

    number_of_arguments = > 0,

    start_date = > NULL,

    repeat_interval = > NULL,

    End_date = > NULL,

    job_class = > ' 'SYS '. ' ' DEFAULT_JOB_CLASS ' ',

    activated = > FALSE,

    auto_drop = > FALSE,

    Comments = > ",

    credential_name = > "'BLAH'". "" Joe' ',

    destination_name = > NULL);

    SYS. DBMS_SCHEDULER. () SET_JOB_ARGUMENT_VALUE
    job_name = > "'BLAH'". "test" ', "
    argument_position = > 1,
    argument_value = > ' / c ');
    SYS. DBMS_SCHEDULER. () SET_JOB_ARGUMENT_VALUE
    job_name = > "'BLAH'". "test" ', "
    argument_position = > 2,
    argument_value = > 'dir');
    SYS. DBMS_SCHEDULER. () SET_JOB_ARGUMENT_VALUE
    job_name = > "'BLAH'". "test" ', "
    argument_position = > 3,
    argument_value = > 'c:\temp');

    SYS. DBMS_SCHEDULER. SET_ATTRIBUTE)

    name = > ' 'BLAH '. "' test ' ',

    attribute = > 'logging_level', value = > DBMS_SCHEDULER. LOGGING_FULL);

    SYS. (DBMS_SCHEDULER). Enable

    name = > ' 'BLAH '. ("' test ' ');

    END;

    /

    Thank you Greg,.

    I appreciate it.

  • How to call a stored procedure PL/SQL of the Disqualification?

    I figured I could do this from a Groovy script but I am unable to make it work.

    Let's take the simplest scenario:

    At the end of a job, I have a need to call an once stored procedure that has no arguments.

    Translated by the logic of the stored procedure with Disqualification is not an option.

    If you must call it once at the end of a task, you must use the external task.

    If you call a procedure for each record, it can be done using a script.

  • Disqualification - file in a directory at the end of the export process

    Hello

    I use Disqualification 12.1.3 (just started). I was wondering if it is possible to have a process where you have a DB table or flat file as the source and, after some cleaning tasks, in the last step instead to write the results in a table DB etc, if it is possible to create a text file with the results (for example, .csv or .txt) and drop this file into a particular directory? If so, could you please explain how I can achieve this?

    Concerning

    Yes of course.

    Export of results or data to a file is simple. Create a database based on files, and then create an export job that takes data from a data Interface (if you never want the output of stage) or staged data (if you do) and written in the file. When you configure a job that contains the task of export you can choose to write the file every time (default) or add to the file.

    If export is running on the client is capable to export data from anywhere you can connect using your client - but this export task is then client-side (ask about data on the client and server stores in the online help) and must be run manually from the client. If you want to run the export under regular treatment, the export must write the file on the server of landing zone ([local home] / default landing, but you can replace it with another directory provided that he is a user of Disqualification has write access application server, using a line in the director.properties file.) For example, on my Windows Server, I have several Disqualification case who share a landing at C:\edqlanding. All servers have the following entries in director.properties:

    landingarea = C\:\\edqlanding (the extra backslash is used to escape from the colon and the backslash for Java to recognize the path.

    If you need to later move the file somewhere else, you could do this with the help of an external task (for example call a simple script), or some other tool (for example Oracle Managed File Transfer). This may be necessary permissions etc network readers that Disqualification will not generally.

    Kind regards

    Mike

  • Question: How do the Disqualification Trigger ODI?

    Hi all

    I know to ODI with trigger Disqualification job but are threre any wat do Disqualification to trigger ODI Job?

    Kind regards

    Nathan Srisaksakul

    Assuming that the ODI jobs can be called from the command line, you can use an external task and invoke a shell script of the for.

  • Scheduler jobs external 11g XE

    Hi all

    I tried for a while get external tasks to work on 11g XE with no luck.

    I tried a number of resources:
    < li > [url https://forums.oracle.com/forums/thread.jspa?threadID=555102] thread: Guide to the external work on with dbms_scheduler 10g for example scripts, batch files (Note: 11g XE are $OH/rdbms/admin/externaljob.ora or $OH/bin/jssu). Alors_que I can create some externaljob.ora, I have no idea on the jssu)
    < li > [tip of libpam libpam.so.0] The url

    To make it as broad as possible, assume I did the following:
    < li > installed OEL 5.6 64
    < li > yum install oracle-validated
    < li > rpm - ivh oracle-xe - 11.2.0 - 1.0.x86_64.rpm
    /etc/init.d/Oracle-XE < li > configure (accept all default settings)

    The code I want to run (swung oracle-www.m-base.org/Sounds.html of SqlPlus [URL http://www.oracle-base.com/articles/11g/SchedulerEnhancements_11gR1.php]):
    CONN / AS SYSDBA
    BEGIN
      -- Basic credential.
      DBMS_SCHEDULER.create_credential(
        credential_name => 'LOCALCREDENTIAL',
        username        => 'oracle',
        password        => 'oracle');
    END;
    /
    
    BEGIN
      DBMS_SCHEDULER.create_job(
        job_name             => 'local_unix_command_job',
        job_type             => 'EXECUTABLE',
        number_of_arguments  => 1,
        job_action           => '/bin/ls',
        auto_drop            => FALSE,
        enabled              => FALSE);
    
      DBMS_SCHEDULER.set_job_argument_value('local_unix_command_job',1,'/tmp'); -- assuming you have a /tmp
    
      DBMS_SCHEDULER.set_attribute('local_unix_command_job', 'credential_name', 'LOCALCREDENTIAL');
      DBMS_SCHEDULER.enable('local_unix_command_job');
    END;
    /
    
    SELECT *
    FROM (SELECT *
            FROM user_scheduler_job_run_details
           WHERE job_name = 'LOCAL_UNIX_COMMAND_JOB'
        ORDER BY log_id DESC)
    WHERE ROWNUM = 1    
    /
    
    BEGIN
       DBMS_SCHEDULER.drop_job('local_unix_command_job');
    END;   
    /
    The result:
    EXTERNAL_LOG_ID="job_20044_240",
    ORA-27370: job slave failed to launch a job of type EXECUTABLE
    ORA-27300: OS system dependent operation:accessing login executable failed with status: 2
    ORA-27301: OS failure message: No such file or directory
    ORA-27302: failure occurred at: sjseccel 1
    What should I do to get the famous status = success for labour?

    Kind regards
    Håvard

    I can confirm the issue on the victory platform, after trying your testcase (slightly modified) with an external local labour.

    I've traced the activity file and jssu.exe is 'missing '. After copying an another exe like jssu.exe the status of the job goes to "successful."

    To get an output stdout (job__stdout), I had to manually add the Planner/journal/folders in the path $OH.

  • Status of the scheduled task

    Hello

    In our current setup, we need trigger report of the editor on the completion of an external task.

    We use the Editor (ScheduleRequest) web services to start the generation of report and then to an FTP server.

    However, we must now trigger another task based on completion of the scheduled task from the Publisher.

    ScheduleRequest returns the job ID.

    1. How will I know the status of the current job and if the task succeeded or failed?

    Thank you
    Sheela

    To get the status use the operation getScheduledReportStatusRequest with parameters
    -scheduledJobID
    -user name
    -password

    He'll be back
    -jobId
    -the State of the job application jobStatus. Possible values are: 'Done', 'Error', 'Running', 'Regular', 'Hanging', 'unknown '.
    -message

Maybe you are looking for

  • Problems with the Qosmio F30-117

    Problem started when I noticed that he does that in safe mode now it does not work in any mode.Run recovery product and tried to re install windows xp with original discs.Meet up with the system message is run only has not fully been implemented agai

  • Detection wireless to Satellite L550 driver?

    Hi, so I just learned that the reason why my L550 is not able to activate wireless detection (FN + F8 does not work and no manual methods) is probably because the wireless driver has become corrupted and my laptop it dumped in self-defense.What I was

  • conditional statement file path

    Our project is using TestStand 2012 SP1. We use reportgen_txt.seq. and SequentialModel (.seq). My goal is to save report files in a specific directory only when I run my Self_Test.seq. I'm trying to use configure > Report Options > build the path to

  • How to download a file from a disk I want to mount on my computer

    My EADM (Electronic Arts Download Manager) does not work and does not for months and I am trying to download a new world for the Sims 3 so I can play.  I made a copy of my desktop computer and want to download this to my Sims 3 on this computer, but

  • Control word

    Hi, looking at the table 7-3 and other pages of ciscopress Architectures VPN layer 2 (Pignataro, Bokotey, Luo, Chan), I see that the control word is always 0 for EoMPLS. When can be useful the word of command on EoMPLS?