User Defined Activity "hangs" Process Flow if it runs for more than 10mins

I have been using OWB (10g r2) for a while and have used "User Defined" activities in production process flows successfully before.
However my problem now is that the activity (shell command) I want to perform, takes more than 10 minutes to complete. If I run the process flow with a parameter that generates a shell command that executes in two or three minutes, the process flow continues past the sucessfully executed user defined activity to the next activity.
BUT
If I run the same process flow (without modification or even redeployment) with a different parameter , the user defined acivity sucessfully executes (after about 11 minutes or so) but the process flow , doesnt seem to know that it is finished and just says it is still executing.
my "user defined" activity has
COMMAND: /usr/bin/ksh
PARAMETER_LIST bound to a variable which is set earlier in the process flow.
RESULT_CODE:
SCRIPT :
SUCESS_THRESHOLD : 0
by examining (RUNTIME CONTROL CENTER SCHEMA).all_rt_audit_execution_params
I can see that the variable contents assigned to RESULT_CODE look like this
'/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_SHORT'
or this
'/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_LONG'
I put the -n in because I thought that may have been the problem, but I think its more likely that there is come sort of ".properties" in a runtime file that needs to be set to control the "timeout" of user defined activities.
(like in Runtime.properties
property.RuntimePlatform.0.NativeExecution.Shell.security_constraint = NATIVE_JAVA
except maybe
.........Nativeexecution.timeout = .....?????
Has anybody had a problem like this? Found a document describing available configuration properties for PF activites?
Can anyone help?

I have been using OWB (10g r2) for a while and have used "User Defined" activities in production process flows successfully before.
However my problem now is that the activity (shell command) I want to perform, takes more than 10 minutes to complete. If I run the process flow with a parameter that generates a shell command that executes in two or three minutes, the process flow continues past the sucessfully executed user defined activity to the next activity.
BUT
If I run the same process flow (without modification or even redeployment) with a different parameter , the user defined acivity sucessfully executes (after about 11 minutes or so) but the process flow , doesnt seem to know that it is finished and just says it is still executing.
my "user defined" activity has
COMMAND: /usr/bin/ksh
PARAMETER_LIST bound to a variable which is set earlier in the process flow.
RESULT_CODE:
SCRIPT :
SUCESS_THRESHOLD : 0
by examining (RUNTIME CONTROL CENTER SCHEMA).all_rt_audit_execution_params
I can see that the variable contents assigned to RESULT_CODE look like this
'/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_SHORT'
or this
'/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_LONG'
I put the -n in because I thought that may have been the problem, but I think its more likely that there is come sort of ".properties" in a runtime file that needs to be set to control the "timeout" of user defined activities.
(like in Runtime.properties
property.RuntimePlatform.0.NativeExecution.Shell.security_constraint = NATIVE_JAVA
except maybe
.........Nativeexecution.timeout = .....?????
Has anybody had a problem like this? Found a document describing available configuration properties for PF activites?
Can anyone help?

Similar Messages

  • How do we create user defined Task in OM & Which report we run for the Task

    Hi
    How do we create user defined Task in OM & Which report we run for the Task.
    Regards
    Rajesh

    You can create tasks using PFCT or path: Human resources> Organizational management> Expert mode> Task catalog in Easy access.
    Check this link may be useful for you: http://help.sap.com/saphelp_40b/helpdata/pt/fb/135d89457311d189440000e829fbbd/content.htm

  • Problems using user defined activitys in Process Flows

    Hi everybody,
    i have problems using an user defined activity in my owb process flow.
    I did the following according to https://blogs.oracle.com/warehousebuilder/entry/how_to_use_user_defined_activity_in_owb_process_flow.
    1. create a script in /tmp called test.sh
    2. chmod +x on the script so it can be executed
    3. Changed the Runtime.properties file under ORACLE_HOME/owb/bin/admin
    property.RuntimePlatform.0.NativeExecution.FTP.security_constraint = NATIVE_JAVA
    property.RuntimePlatform.0.NativeExecution.Shell.security_constraint = NATIVE_JAVA
    property.RuntimePlatform.0.NativeExecution.SQLPlus.security_constraint = NATIVE_JAVA
    property.RuntimePlatform.0.NativeExecution.OMBPlus.security_constraint = NATIVE_JAVA
    4. Creating an Process Flow with just the user defined activity
    5. Deploying the Process flow was successfull
    But everytime i execute the pf i get the following error in my Job Details.
    TEST_PF:USER_DEFINED                                        
    Parameters                                                  
    Log file is available. Click Information button to view.                                             
    It says Log file is available. But i can't find this file. Also i don't know what the problem is.
    Can anybody help me out of this?
    Thanks a lot

    Hi,
    solved the problem by myself.
    I had problems with my script. So i insert set -x into the script an executed the pf again. Know i can see whats happening in a log. You can find this log in the job detail window by pressing the blue ! Button when the whole PF (the first entry) is marked.
    Greetings

  • Using of user defined activities in process flow: issue

    Hi out there,
    there is a problem in my environment which I don't understand and which I want to share with you. Hopefully there is somebody who can help me.
    I have a user defined activity in my process flow with the following parameters (where <empty> means no value):
    COMMAND: C:\WINDOWS\system32\cmd.exe
    PARAMETER_LIST: <empty>
    RESULT_CODE: <empty>
    SCRIPT: C:\oracle\bise1\scripts\source_file.bat
    SUCCESS_THRESHOLD: 0
    The bat-file is containing the following:
    cd c:\oracle\bise1\owb\owb\bin\win32\
    ombplus.bat c:\scripts\source_files.tcl
    exit
    When I execute the bat-file in the cmd-shell manually it works perfect (the tcl-script copies and renames sourcefiles to naming conventions). But when I want to execute this from the process flow nothing happens. The process is running without reading the correct source files and therefore ends in errors.
    Is there anything wrong in the usage of the user defined activity? I prepared the runtime properly.
    Any help is appreciated. :-)
    Kind Regards,
    Jens

    Hi Detlef,
    thanks for the input. I tried it but then I get the following error message (in german) in the logfile of the process flow:
    "Der Befehl "chcp" ist entweder falsch geschrieben oder konnte nicht gefunden werden."
    My scripts don't contain letters in this combination. The scripts are working fine when I start them manually from the command shell. Is there maybe something else I need to consider? Is it possible to start omb tcl-scripts via this feature?
    Kind Regards,
    Jens

  • Jstart process in PI is running with more than 90% utilisation

    Hi ,
    jstart process in PI - java is running with more than 90% utilisation CPU utilisation.
    But when i check  jsmon the jstart PID is something else.can there be more than one jstart processes running.
    And how to correct this high CPU utilisation of the that particular jstart process.
    Regards,
    balaji.R

    Hi Balaji,
    To analyze this kind of issue you should follow note 742395.
    It is quite simple to detect what is causing the high cpu:
    1. Find the thread that is consuming the CPU (in the note you can see how to do it for all the OS)
    2. Take a thread dump in the JVM.
    Now you just need to find in the thread dump you took from the JVM the thread and see what he was doing in the thread dump.
    In this way you can search this thread for notes to see if it is a bug or something like that and fix it.
    I hope it helps.
    Thanks,
    Anderson

  • SSAS Tabular slow (full) processing when server is up for more than a day

    Setup: SQL 2014 CU3. Machine with 2 physical CPUs and 384GB of RAM. Windows 2012R2.
    96GB allocated to SQL Server, rest allocated to Vertipaq/Tabular.
    Problem: after a restart of Analysis Services (Tabular), processing time for full processing is fine. Processing of the main table runs with 145000 rows/sec for one cube, and 60000 rows/sec for the other.
    After a day of uptime, full processing is slower by a factor of 2-3. For the second cube, performance stays at a low ~ 18000 rows/sec for subsequent full processing.
    Performance counter says "memory Limit Vertipaq KB" ~ 280GB, "while memory usage KB" ~ 63GB. There should be plenty of free memory.
    SQL Queries for the tabular data are fine and extremely simple and high performance.
    I can reproduce the effect at will.
    Is this a known bug?

    Please try to clear the cache and check if this issue is persists or not.
    http://msdn.microsoft.com/en-IN/library/hh230974.aspx
    Besides, here are some links about tabular memory setting, please refer to the links below.
    http://www.sqlbi.com/articles/memory-settings-in-tabular-instances-of-analysis-services/
    http://www.sqlbi.com/articles/memory-settings-in-tabular-instances-of-analysis-services/

  • User defined activity problem in process flow

    Hi ,
    any one can help me out
    I have added a user defined activity in process flow , and given command values as \\windows\system32\cmd.exe
    and parameter list : ${input.value}
    and in script : kpi.bat
    where i written
    cd \kpi_sap
    for /f "tokens=1-5 delims=/ " %%d in ("%date%") do copy "c:\kpi_sap\kpi_sap.csv" %%e-%%f-%%g.dat
    but its not working ...
    can any one give me direction to get success in this activity
    best regards,
    mahi

    Hi Mahi,
    I see that your post is a few days old and you might have resolved this issue, but if you haven't you might want to change the command value to c:\windows\system32\cmd.exe instead. Its been a while since I worked with commands, but I remember that I had a lot of problems when I defined paths with '\\'. What I found out was that OWB jobs was run under the windows system account and the system account don't have access to networkshares (even if its really not on the network).
    I can't say whether the script in the kpi.bat is wrong, but as long as you can run it manually using cmd.exe you should be ok.
    If this doesn't help it might be helpful with some more specific error messages.
    regards Ragnar

  • SU01 user as reseller for more than one customer?

    Hi,
        We have a requirement where internet user act as a reseller and can place order for more than one customer in ISA R/3 edition. In the XCM configuration i have selected the user as R3_SU01UserStandalone and then followed the activity given in the SAP Document:
    http://help.sap.com/saphelp_crm40/helpdata/en/03/f6ce51eb8e4dbe82b9ca75e5c74fe6/frameset.htm
    Can anyone provide a solution what other steps i need to follow for this issue.
    Thanks
    Ankit

    Dear Shankar
    You have not specified whether the scenario is MTO or MTS.  If it is MTO, stock will be allocated against sale order as and when MFBF is done.  If it is MTS, then go to OMJJ, select Movement Type and give 292 and execute.  Now select "Field selection (Enjoy)" tab on your left and there maintain the option as Required Entry for the field "KDAUF" and save.
    Now go to MB1A, give movement type 292 with special stock W, plant and storage location and execute so that the system will ask for sold to party code.  Give the sold to party code and enter material code, stock to be reserved and save.
    If you see in MMBE now, those stocks will be displayed as special stock.
    thanks
    G. Lakshmipathi

  • OATS Load test is not able to scale for more than 10 users

    Hi,
    I am using OATS load test runner for performance testing Fusion based application on webcenter portal.I am not able to run OATS load tester sucessfully for more than 10 VU's.After that it gives a component not found issue or loop error.Please let me know if anybody faced similar issue and was able to resolve it.Is there some setting to be done?
    Thanks,
    Ritesh
    Edited by: user766882 on Aug 20, 2012 9:07 AM

    Hi Jean,
    Our application contains customised retail webcenter portal on which retail application is hosted.This portal application is not able to scale up more than 10 users.I had created portal application without the customised framework and then for a similar usecase it is able to scale upto more than 50 users but once it hits 100 VU mark it starts giving errors.If it were an issue with client tokens or login,I would have been able to have more than 1 user at a time.It seems to be an issue with custom framework developed on top of webcenter portal.I have faced a similar issue while testing for this app with jmeter also.I was able to test for the webcenter portal app without any customisation for more than 100 concurrent users. But I was not able to test for more than 1 user for customised retail webcenter portal
    Thanks,
    Ritesh
    Edited by: user766882 on Aug 21, 2012 8:25 AM
    Edited by: user766882 on Aug 21, 2012 8:33 AM

  • User Defined Activity Process Flow Help

    Hello,
    I'm trying to create a process flow that will rename a file. I'm using the User Defined Activity, but I've ran into a couple problems. First some background info, Oracle 10G is the DB, and it's ran on a Unix system, the Oracle user account does have read/write access to the directories used.
    For the Activity Parameters I've set
    Command > I've tried everything here
    Parameter > Blank
    Script >
    filefullname=ip_xref.dat
    filename=${filefullname%.*}
    fileext=${filefullname##*.}
    DATE=`date +%Y%m%d`
    newfilename="${filename}_${DATE}.${fileext}"
    mv $filefullname $newfilename
    mv $newfilename backup/
    in the command section, I've tried every possible thing I can think of from : /usr/bin/ksh, /bin/ksh, ksh, /bin/bash, made a script outside owb with the same thing, and pointed it at that and still all I get is "/bin/bash: not found" or "/usr/bin/ksh: not found"
    Ideas/suggestions, I'm open to anything.
    As a side note I tried to do it with UTL_FILE, but I was informed by our DBA that it was disabled for security, so that's out.

    What type of execution is configured for user defined activity (this type is defined in file Runtime.properties on server side, available types for UDA - SCHEDULER or NATIVE_JAVA)?
    For SCHEDULER type ask your DBA about Uinux user used for executing external jobs (usually nobody user used with very limited rights - maybe this user doesn't have rights for executing any program/scripts).
    Regards,
    Oleg

  • How to configure "User defined" activity in a process flow

    I want to start a shell script from a workflow process in an Unix environment. I use owb 10.2.0.1
    Name of shell_script:           verify_infile.sh
    Location of shell_script:     /ASW/dw
    3 parameters to the script:     X X /local/db/import/rain/finans.dat
    First parameter is the letter X
    Second parameter is the letter X
    Third parameter is the path and file name I want to verify
    I assume it's the User defined activity I should use and the parameters of the user defined activity are as follows
    4 IN PARAMETERS
    COMMAND
    PARAMETER LIST
    SUCCESS THRESHOLD
    SCRIPT
    1 OUT PARAMETERS
    RESULT_CODE
    So my question is what shall I have as in parameters in the User defined activity?
    Kind regards
    Jan

    Here is the solution to the case
    First make sure parameter in (owb_home)\owb\bin\admin\Runtime.properties is not disabled.
    If it is, change the parameter to the value NATIVE_JAVA as described in the file:
    property.RuntimePlatform.0.NativeExecution.Shell.security_constraint = NATIVE_JAVA
    Second
    COMMAND: /bin/sh
    PARAMETER LIST: ?/ASW/dw/verify_infile.sh?X?X?/local/db/import/rain/finans.dat?
    RESULT_CODE: 0
    SCRIPT:
    SUCESS_THRESHOLD: 0
    Regards
    Jan

  • User Defined Activity: Run OS Command with OS parameters

    OS: OELR5 U3 x64
    DB: 11.1.0.7
    OWB: 11R1
    I would like to be able to run an os command from a user defined activity within a process flow. I am trying to make use of VMWare's vmrun to control a virtual machine. From the OS command line I enter:
    /usr/bin/vmrun -T server -h https://server:port/sdk -u user -p userpassword -gu guest -gp guestpassword runProgramInGuest "[standard] VM/Virtual Machine.vmx" -activeWindow -interactive "c:\path_to_program\program.exe" /switch
    How many I duplicate this OS command from within a user defined activity in a process flow?
    I create a user defined activity:
    COMMAND: /usr/bin/vmrun
    PARAMETER_LIST:
    RESULT_CODE:
    SCRIPT: -T server -h https://server:port/sdk -u user -p userpassword -gu guest -gp guestpassword runProgramInGuest "[standard] VM/Virtual Machine.vmx" -activeWindow -interactive "c:\path_to_program\program.exe" /switch
    SUCCESS_THRESHOLD: 0
    The process runs without error in the log, but the os command is not being run.
    I tried again with:
    COMMAND: /usr/bin/vmrun
    PARAMETER_LIST: ?-T?server?-h?https://server:port/sdk?-u?user?-p userpassword?-gu?guest?-gp guestpassword?runProgramInGuest "[standard] VM/Virtual Machine.vmx"?-activeWindow?-interactive?"c:\path_to_program\program.exe"?/switch?
    RESULT_CODE:
    SCRIPT:
    SUCCESS_THRESHOLD: 0
    with the same result.
    And I also tried calling sh:
    COMMAND: bin/sh
    PARAMETER_LIST:
    RESULT_CODE:
    SCRIPT: /usr/bin/vmrun -T server -h https://server:port/sdk -u user -p userpassword -gu guest -gp guestpassword runProgramInGuest "[standard] VM/Virtual Machine.vmx" -activeWindow -interactive "c:\path_to_program\program.exe" /switch
    SUCCESS_THRESHOLD: 0
    also with the same result.
    The process runs in each case, and ends with: "Log file is available", but when I look in the log, I don't see errors or any information that might help me adjust the user defined activity.

    This method works:
    COMMAND: bin/bash
    PARAMETER_LIST:
    RESULT_CODE:
    SCRIPT: /usr/bin/vmrun -T server -h https://server:port/sdk -u user -p userpassword -gu guest -gp guestpassword runProgramInGuest "standard VM/Virtual Machine.vmx" -activeWindow -interactive "c:\path_to_program\program.exe" /switch
    SUCCESS_THRESHOLD: 0
    The issue seems to be caused on an upgrade to OWB 11R2. Our installation does not always update the VALUE entry when a user types in a value, meaning that our entry changes were not reflected into the deployed process package.

  • User Defined activity does not log messages

    I have created a User Defined activity which calls a unix shell script.
    This script writes messages to standrard output ("echo") that I want
    the process flow to catch in its log, so I can see the messages in
    Control Center Manager.
    This was actually the behaviour of my User Defined activity until recently.
    I must have changed, unintentionally, some parameter/configuration that
    I cannot remember. Maybe some "suppress script-messages" parameter? :-)
    Anyone in this forum who knows which paramater I might have changed
    and/or how I can get back the old behaviour of my activity?
    // Pontus

    I had the same experience recently: I was trying to log a message to a Unix file, but the process flow would always fail, even though the script executed well from the Unix prompt.
    The problem in my case was that redirection is not supported from within an OWB version 9.0.4 process flow. Once I eliminated the "echo My message > logfile" everything was fine. You can even keep "echo My message" with no redirection and it's still ok.
    The above holds regardless of where you put your script -- external Unix file, or as part of an "external process" icon in the flow.
    If things are the same in your case, you'll need to figure out an alternative way of logging messages when executing the script. I decided to use external files as flags, by renaming them from the script.
    Santiago

  • How to set FROM ADDRESS for EMAIL activity in Process Flow

    Hi all,
    Can any one tell how to set(which address) FROM ADDRESS for EMAIL activity in Process Flow?
    Thanks,
    Suvvi

    Did you set what OWB guide says:
    To execute a process flow with an email activity, you may need to access different host machines and ports. New security measures implemented in Oracle Database 11g Release 1 restrict access to hosts and ports. You must explicitly grant access to hosts and ports that the email activity accesses using the DBMS_NETWORK_ACL_ADMIN package.
    For example, the user OWBSYS needs to send an email through the mail server mail.example.com using port 25. The DBA must perform the following steps:
    1. Create an Access Control List (ACL) for the user OWBSYS using the following command:
    EXECUTE DBMS_NETWORK_ACL_ADMIN.CREATE_ACL
    (’acl_for_owb_cc.xml’,’ACL for Control Center’,’OWBSYS’,’CONNECT’);
    The ACL has no access control effect unless it is assigned to network target.
    2. Assign the Access Control List (ACL) to a network host, and optionally specify a TCP port range. Use the following command:
    EXECUTE DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL (’acl_for_owb_cc.xml’,’mail.example.com’,25)
    3. Commit the changes made using the COMMIT command.

  • How to use substitution variables in sqlplus activity of process flow

    I have a process flow that does nothing more than create a couple of packages that I cannot successfully deploy from OWB. A workaround, not something that I want to do, but currently there is not much time to adjust the packages so they can be deployed from OWB.
    I can successfully create the packages from files that are present in a directory on the server. But the location (directory) is not the same in all cases (OTAP). So I thought to use an input parameter to the process flow (named TELLINGEN) and use that in the sqlplus activity.
    I have created the parameter START_PATH with a default value.
    I have added an sqlplus activity and placed the following into the PARAMETER_LIST variable of the activity:
    ?${Target.ConnectString}?@${TELLINGEN.START_PATH}/npl_dbug.pkg?
    When I run the process flow I see the following in the output:
    SQL*Plus: Release 10.2.0.3.0 - Production on Tue Mar 18 18:10:14 2008
    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SP2-0310: unable to open file "${TELLINGEN.START_PATH}/npl_dbug.pkg"
    SQL> SQL> Disconnected from Oracle Database 10g Enterprise Edition Release
    10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    It obviously connects to sqlplus but then cannot find the file. Presumably because the variable has not been substituted.
    How can I persuade the activity to substitute the variable?
    Kind regards,
    Eric.

    Have been reading around a bit and found the (a) solution:
    I placed the following in PARAMETERLIST:
    ?${Target.ConnectString}?@${Working.RootPath}/base64.sql?
    And it turns out ${Working.RootPath} is pointing to the location you can provide under the configure for the sqlplus activity in the process flow. Just as you have to provide the target destination as indicated here: Re: SQLPLUS Activity in Process Flow
    From the documentation it was not immediately clear to me where Working.RootPath was pointing to.

Maybe you are looking for

  • RMS reports do not open in a new window

    Hello, I am trying to access RMS reports (Control -> View reports). I am using IE 6.0 . No pop ups are blocked. But the new IE window which shows the report is not being displayed. This however is working fine for 2 of my colleagues who have IE 7.0 .

  • ITunes log in error

    When I am trying to sign in to my itunes store the following message is showing "We could not complete your iTunes store request. An unknown error occurred (-50)". Can any one tell me the solution to this problem? Thanks, Buddha

  • Bb curve not syncing with my dell desktop

    i''ve installed the 4.3 verizon desktop mgr. software 2 wks ago and it worked great for a few days.now it wont work at ALL NOW! everytime i plug in the usb cable into my cpu "dell dimension e521" it pops up a error."usb device not regonized".i plug t

  • Smart Forms&scripts

    hi all. I need your help. i need the procedure(from besic) for creation of a New Smartform. And how we will creat  New print program for that New smartform . And how will call that Smartform from print program. And how we will joint them.

  • Very strange : Export from Organizer extremely slow

    Today I came something strange while "exporting Files as New File" from the Organizer. I decided to report it, because the observation may point to a potential improvement. In the Organizer (PSE V7), I went through File--> "Export as New File..." to