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

Tags: Fusion Middleware

Similar Questions

  • 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

  • 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;

    /

  • 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

  • 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 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

  • 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

  • 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.

  • 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

  • Problems with the external program

    I create programs programmer with a string. A job will be created to launch the channel. One of these programs Planner will have to call a file is under windows. Everything goes well with the exception of which translates an error indicating that the process cannot find the files referenced in the external program.

    Here is the error of the battery being captured in the job log.

    CHAIN_LOG_ID = "16735", STEP_NAME = "L90_ARCHLOGRMANBACKUP", ORA-27370: slave to the job could not launch EXECUTABLE type work
    ORA-27300: dependent operation of the OS: access enforcement officer failed with the State: 2
    ORA-27301: OS Error Message: the system cannot find the specified file.
    ORA-27302: an error occurred in: 6a sjsec
    ORA-27303: additional information: the system cannot find the specified file.

    This is the code I used to create the program:

    BEGIN
    SYS. DBMS_SCHEDULER. CREATE_PROGRAM
    (
    program name = > "RTDB. ARCHLOGRMANBACKUP'
    , program_type = > 'EXECUTABLE '.
    , program_action = > ' C:\WINNT\system32\CMD. EXE'
    number_of_arguments = > 3
    activated = > FALSE
    , comments = > 'runs a RMAN backup compressed all archive logs generated by this process.
    );

    SYS. DBMS_SCHEDULER. DEFINE_PROGRAM_ARGUMENT
    (
    program name = > "RTDB. ARCHLOGRMANBACKUP'
    , argument_name = > "
    argument_position = > 1
    , argument_type = > "VARCHAR2".
    , default_value = > "/ q"
    );

    SYS. DBMS_SCHEDULER. DEFINE_PROGRAM_ARGUMENT
    (
    program name = > "RTDB. ARCHLOGRMANBACKUP'
    , argument_name = > "
    argument_position = > 2
    , argument_type = > "VARCHAR2".
    , default_value = > "/ c".
    );

    SYS. DBMS_SCHEDULER. DEFINE_PROGRAM_ARGUMENT
    (
    program name = > "RTDB. ARCHLOGRMANBACKUP'
    , argument_name = > "
    argument_position = > 3
    , argument_type = > "VARCHAR2".
    , default_value = > 'C:\oracle\product\OraDB102\admin\DTOD\work\RMAN_ARCH_OPENDOR.bat '.
    );

    SYS. DBMS_SCHEDULER. ENABLE
    (name = > ' RTDB.) ARCHLOGRMANBACKUP');
    END;
    /

    To verify that the files referenced in the above code and paths are correct, I spent to the DB host and run the following command from the beginning... Run:

    C:\WINNT\system32\CMD. EXE/q/c C:\oracle\product\OraDB102\admin\DTOD\work\RMAN_ARCH_OPENDOR.bat

    It works very well.

    Someone at - it ideas?

    Thank you

    -Joe

    Hey Joe,

    What you run here are steps of external string, which are transformed into external work when they are executed (see steps chain) upwards in the view of all_scheduler_jobs so that they are running.

    All restrictions for outdoor work hold for the external chain so that you will always have to make sure that the agent Scheduler service is running as a user who has the logon as batch windows privilege and upward.

    A simple external task works for you? If this is not you should probably get that working first and then debug your chain example later.

    Hope this helps,
    Ravi.

  • external work, # error ORA-27370

    Hello

    The machine is HP - UX - oracle 10g 10.2.0.2.0

    I follow post Ravi. But something seems to be missing. Please help me.

    It is the statement of work create.
    DBMS_SCHEDULER. CREATE_JOB (job_name = > 'Task1',)
    job_action = > ' / switch_load_scripts/scripts/load_switch_data.sh',
    number_of_arguments = > 7,
    job_type = > 'EXECUTABLE. "
    start_date = > sysdate, end_date = > NULL,
    activated = > FALSE);

    DBMS_SCHEDULER. SET_JOB_ARGUMENT_VALUE (v_jobName, 1, ' / home/User1 ');
    DBMS_SCHEDULER. SET_JOB_ARGUMENT_VALUE (v_jobName, 2, 2);
    DBMS_SCHEDULER. SET_JOB_ARGUMENT_VALUE (v_jobName, 3, 'x');
    dbms_scheduler.set_job_Argument_value (v_jobName, 4, 'y');
    dbms_scheduler.set_job_Argument_value (v_jobName, 5, 'z');
    dbms_scheduler.set_job_Argument_value (v_jobName, 6, ' / home/User1/temp ');
    dbms_scheduler.set_job_Argument_value (v_jobName, 7, 2);
    DBMS_SCHEDULER. ENABLE ('JOB1');

    permissions of the $ORACLE_HOME/bin
    bash-3. $00 ls-l ext *.
    -rwxr-xr-x 1 oracle dba 47936 extjob.nobody February 8, 2007
    -rwxr-xr-x 1 oracle dba 47936 extjobO April 20, 2006
    -rwsr-xr-x 1 oracle dba 47936 extjobo February 8, 2007
    -rwxr-xr-x 1 oracle dba 47936 extjoboO April 20, 2006
    -rwxr-xr-x 1 oracle dba 64008 extproc February 8, 2007
    -rwxr-xr-x 1 oracle dba 62656 extproc32 February 8, 2007
    -rwxr-xr-x 1 oracle dba 62656 extproc32O April 24, 2006
    -rwxr-xr-x 1 oracle dba 0 extprocO April 25, 2006
    -rwxr-xr-x 1 oracle dba 330 extusrupgrade February 8, 2007
    bash-3. $00 pwd
    /Disk2/Oracle/product/10.2.0.2.0/bin

    these are the error, select Details of dba_scheduler_job_run_details; *
    ORA-27370: slave to the job could not launch an EXECUTABLE type work
    ORA-27300: dependent operation of the OS: access enforcement officer failed with the State: 2
    ORA-27301: OS error: no such file or directory
    ORA-27302: an error occurred at: sjsec 3


    It is externaljob.ora

    bash-3. $00 ls-l externaljob.ora
    -rw - r - r - 1 oracle dba 1531 29 August at 15:29 externaljob.ora
    bash-3. $00 cat externaljob.ora
    # $Header: externaljob.ora 16 - dec - 2005.20:47:13 rramkiss Exp $
    #
    # Copyright (c) 2005, Oracle. All rights reserved.
    # NAME
    # externaljob.ora
    # FUNCTION
    # This configuration file is used by dbms_scheduler external executing
    work of # (operating system). It contains the user and group to run external
    jobs # as. It must be writable by the owner and should be owned by root.
    .......

    run_user = oracle
    run_group = s/n

    I gave permissions to the $ORACLE_HOME/bin

    ls-l
    Total 508
    drwxr-xr-x 5 oracle dba 1024 8 February 2007 OPatch
    drwxr-xr-x 11 oracle dba 1024 May 22, 10:25 admin
    assistants of drwxr-xr-x 7 oracle dba 96 February 8, 2007
    drwxr-xr-x 2 oracle dba 5120 8 February 2007 bin
    ..

    Please help me.

    Thanks in advance
    Varun

    Hello

    I think I'm missing something - or maybe you are!

    In your ad

    permissions of the $ORACLE_HOME/bin
    bash-3. $00 ls-l ext *.

    I don't see any listed executable extjob!

    You must have the executable extjob existing and with the correct permissions (root: dba 4750) for external tasks in 10.2.0.2. It should be installed when you installed the database, otherwise, you should be able to reuse a copy of extjobo renamed to extjob with good permissions

    For more information, see the post here
    Guide to the external work on with dbms_scheduler 10g for example scripts, batch files

    Hope this helps,
    Ravi.

  • Test reports implementation of barcodes on html

    We use routines LV running under TestStand to create 1 sheets Summary page in html format. Now, I put a code bar (format TBD) on these sheets. Is there a screw that create barcodes or I have to call the external task to create and then to place the image on the page?

    Thank you

    JVH

    A way to add an image of code bar to an HTML report:

    (1) determine the required barcode format

    (2) search for and install a font that supports the desired barcode format (for example: 'Free 3 of 9 expanded')

    (3) create a KPI and configure it to display the fonts installed barcode (font size set to make the image resulting 'scanable')

    (4) write data to be 'barcode' indicator

    (5) use the "Append Image control to Report.vi' to insert the barcode (from the indicator) image in the HTML report

    Steve

    www.ashfordsolutions.com

Maybe you are looking for

  • Impossible to download or update applications

    Hello. I just got an iPhone 6s it upgrade 9.3.1 and restored it from a backup of my old iPhone. My old phone was running old software, so I have a lot of apps that I need to update and new I want to download. When I press the button update, the circl

  • Omen of HP 15: Wifi stop working. Win10 shows only a single network and it connects to the WiFi

    Hi guys,.Since a few days my wifi stopped working.If I click the Wifi icon it shows only a SINGLE NETWORK (two maximum), but not mine! And I live in a building of 20 + networks, as you can see on the WiFi Analyzer (I'm the only red to the right)If I

  • Re: My Satellite C660 is connected to my router but did not have access to the internet

    Hello I have a Satellite C660 (Windows 7) that I've had for more than a year. I had no problem with the connection to the internet before, but last week I went online and had a small yellow triangle down, at the bottom right of my screen against the

  • Qosmio X 500-12D-freezes random

    Almost since I bought this beast, I had little problems. First time graphics card were wild, then more warranty, I got new graphics and its fine. Since that time I noticed, random freezes, but I noticed that sometimes I am out, expect, recently gel w

  • NIST server problem

    Hi all I downloaded the code of https://decibel.ni.com/content/docs/DOC-13527 VerneD However when I try to run the code, even in an isolated VI I just get an error 42. I am running LabVIEW as an administrator, but no application for leave is appeared