Check if ODI scenario is already running


All, I was wondering if anyone has a Jython script or another method to test whether a particular scenario is already running on an agent.


My requirement is to do the following:

1. Annex a scenario with an ODIWaitForData set to query every 30 minutes with a global timeout to 18 hours (period after which the event and scenario of complete execution).  The next morning, a new scenario run is initiated.

2. plan a scenario with an ODIWaitForData event, which will be scheduled to run every 30 minutes to test for new records. I would plan this to run in the requirement of 18-hour window.

In both cases, I wouldn't have a second run from script to trigger if there is already one running on agent.  This may cause duplicates in my results.

Any ideas?

Chris

Hi, in your package just defined a UNIQUE_JOB variable that is updated like this:

SELECT COUNT (*) OF Snp_Session SNP_SESSION WHERE SNP_SESSION. Sess_Name = "<%=odiRef.getSession("SESS_NAME")%>". "AND SNP_SESSION. Sess_No< <%=odiref.getsession( "sess_no" )%> and="" snp_session.sess_status='R'>

Then make a loop with a sleep of ODI to assess this variable.

Tags: Business Intelligence

Similar Questions

  • How to run the ODI scenario via a command prompt

    Hi experts

    Please let me know if we can launch ODI scenario using the prompt command or any means other than the operator.

    Concerning
    Frank

    Go to /oracledi/bin in the command prompt and call the command startscen with the parameters below.

    Published by: Elite Sexyno on February 28, 2011 16:19

  • How can I configure Firefox to check if a session is already open before you start a new?

    I have an elderly parent who always dbl_clks desktop icon when he wants to join his social media site, even if he never sold the last of his window he ran. The result is that there soon several windows ff running the same (like 20-30) while Windows allows more. I would like to put something so that when they click the icon on the desktop, it checks to see if ff is already running, and if so, it's just max that window.

    Thank you...

    Another possibility would be to add-no.-line switch remote control in combination with the current profile of the command line in the shortcut to the desktop (-no - remote 'profile name' Pei).

    Then you get a message that the profile is already in use when this icon is clicked, another time while Firefox is already running.
    This could be confusing if.

    This switch is normally used to open multiple windows of Firefox with a separate profile.

  • Firefox is already running but is not

    I started my computer and I tried to open firefox but a windows appears and say Firefox is already running, but does not. To open a new window, you must close the existing windows, and try again.

    The problem is that he is not running. I opened my task manager and there are no programs running, I have check the processes running and nothing to do with Mozilla firefox is here. How can it already be running if it is not open?

    I actually fixed. I was looking for in c:\users/myname/appdata/local/mozilla/firefox/profiles

    I looked in
    c:\Users/MyName/appdata/roaming/Mozilla/Firefox/profiles and found the profile.locked file and deleted. Works fine again.

  • Firefox is already running but is not responding? Simple answers don't seem to work

    I started Firefox earlier today and received a message about a problem with Firefox and he had to be reset. Because the other option seemed worse than the reset, and Firefox Reseting seemed relatively painless, I clicked OK. A short message popped up on the registration of passwords, bookmarks, etc. with success. Then a small window pops up, saying it was cleaning of Firefox. While the process seemed to freeze. I liquidated it, killed at any process of firefox running and attempted to restart Firefox, when I received the message "Firefox is already running, but does not." There is a folder on my desktop labeled 'old Firefox data' which I assume is from Firefox reset (it is also now a copy of the profile on my desk, just in case).

    https://support.Mozilla.org/en-us/KB/Firefox-already-running-not-responding

    I found this and tried to work through it, but it doesn't seem to help.

    (1) Ther' are no Firefox.exe in my task manager, nor is there a process plugin-container.

    (2) I deleted the file "parent.lock" in both the profile (which is just a bunch of jumbled letters and numbers with 'default' in it) and the record of the old Firefox. However, these files were just "parent.lock" not "parent.lock.parentlock".

    (3) did not change the name on it, so unless the reset did before she locked herself, I don't know what to change it to.

    (4) it is not a file share, so...

    (5) this could be a possibility. The folder of Firefox that my profile is 'Read only' is, but I can't not to change cela. Everytime I go in, turn off the 'Read only' option and tell him to propagate the change through subfolders, it seems to work, but when I check the properties 10 seconds later, 'Read Only' is checked again.

    Sounds that the profiles.ini was corrupted when you remove the old default profile and adding the new profile.

    You can have security software that preventing to change the Firefox file.

    You use the Profile Manager to restore an existing profile or create a new profile.

    A "Reset" creates a new default profile with a timestamp attached and is trying to import some settings of the old profile, leaving the old profile intact, including the (invalid) cache folder (topic: cache) can take up to 1 GB.

    Versions of Firefox 15 + will move the old profile folder "old Firefox Data-#" folder on the desktop that gets a figure if you use reset several times, so you can no longer use the Profile Manager to return to the old profile.

    See also:

  • Firefox says it is already running, but is not!

    Error message states: "firefox is already running but is not responding. to open a new window, you must first close the existing firefox process, or restart your system. ;

    I checked the Task Manager and nothing to do with firefox is running.

    I rebooted and no effect.

    I uninstalled and reinstalled to no effect. no virus I know

    Maybe your xxxxxx.default folder is removed.

  • Firefox won't start, saying that it is already running, must restart window in the end.

    This error message appears:
    "Firefox is already running but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system. »

    Please update your browser Firefox 8 and check

  • VI to use already running using ActiveX

    Is there a way to make it fail if it does not find a VI already running?  Any ideas on why it opens a new VI instead of reuse that in memory.  Is there a setting somewhere which might explain why this happens on the test computer and not my development machine.

    I'm trying to control a VI in c ++ using the LabVIEW VI 9 ActiveX Server, I build the application using MS VC ++ express 2010.  This VI (lets call him he is VI - a call node to get and set data on another VI - b.)  For the test I have a copy of the VI - b, which is empty, it loads in memory but does not work, it connects to the material I don't have in my development Setup.

    #import "PATH\LaVIEW.tlb".

    public static LabVIEW::_ApplicationPtr pLVApp = (LabVIEW::_ApplicationPtr) NULL;

    public static LabVIEW::VirtualInstrumentPtr pVI (LabVIEW::VirtualInstrumentPtr) = NULL;

    Sub init_VI()

    {

    Multithreaded application

    CoInitializeEx (NULL, COINIT_MULTITHREADED);

    pLVApp.CreateInstance ("LabVIEW.Application");

    Error in checking not illustrated

    return;

    }

    Sub connect_to_fp()

    {

    HRESULT hr = S_OK;

    password char [60] = ' ';

    VARIANT_BOOL reserveForCall = false;

    long options = 0x20;

    Multithreaded application

    CoInitializeEx (NULL, COINIT_MULTITHREADED);

    pVI.CreateInstance ("LabVIEW.VirtualInstrument");

    pVI = pLVApp-> GetVIReference (vi_path, LPCTSTR (password), reserveForCall, options);

    Error in checking not illustrated

    HR = pVI-> OpenFrontPanel (VARIANT_TRUE, LabVIEW::eVisible)

    return;

    }

    I couldn't try to comment the call to CreateInstance on the test computer.  However to remove it had no effect on my development machine.

    Details of my configuration:

    On my development machine, I can run VI - a before you begin application c ++ and it will connect and use the VI - a, which is already running in memory or can I leave application c ++ bring up VI - a.  When I was running a test recently, when I would get the reference to the VI - a it would open a new FP for VI - a (I guess it started a new instance of VI - has) instead use the one which is currently loaded and current execution, the VI - a also is not running as it normally does.  The VI - a gets its values of VI - b once to the init, but it will never update them again.  Also, there is a switch on the VI - a, which controls a status indicator that is not updated when the switch when it is activated.  There is another indicator on a separate tab that indicates how long a loop has been run that changes, that is why I believe that it is at least partially running.

    My biggest problem is I have not been able to recreate it on my development machine.  Any time I open VI - a and run my application c ++ reuses this one rather than trying to open a new.  My connection code is about the Strait of c + c++ / ActiveX example of OR.

    Thank you.

    I have not found an answer to the slightest mistake out instead of creating a new instance, but I found a way to address the issue of the project.  If you create an instance, then open the project, and then open the VI of the proceeding of projects, it will work.  New init_VI:

    Sub init_VI()

    {

    Multithreaded application

    CoInitializeEx (NULL, COINIT_MULTITHREADED);

    pLVMainApp.CreateInstance ("LabVIEW.Application");

    pLVPrj = pLVMainApp-> OpenProject (PATH_TO_PROJECT);

    pLVApp = pLVPrj-> GetApplication();

    Error in checking not illustrated

    return;

    }

  • Error: "a copy of the game Manager is already running & may not respond. Please end-game manager & reboot computer. "when tried to open the game Manager, big fish games or applications

    Original title: http://www.bigfishgames.com/usher/index.php?siteID=1&langid=1__application not found

    When I try to open game from big fish games or the game Manager application, I get this error.  only, this started about 1 month ago.  before that, I had no problem with the application at all.  I also got the message: "a copy of the game Manager is already running & may not respond.  Please end-game manager & reboot. "even if there is nothing running.

    Hi nanawanda,

    According to the error message, try the following steps and check the result.
    Step 1: End game Manager and restart the computer.
    Step 2: Start the game Manager and check if the problem persists.

    See What is the Manager of games?
    http://bigfishgames.custhelp.com/app/answers/detail/A_ID/157/related/1/c/2805/page/2/r_id/109674

    If the problem persists, post your query to the Big Fish Games Forums:
    http://forums.bigfishgames.com/forums/list.page

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • 1 program still needs to be closed: (waiting for) task host window's task to stop execution and stopping tasks that are already running

    While the closure of the pc I got the message: "1 program still needs to be closed: (pending of) task host window's task to stop execution and stop tasks that are already running".but there is no program running and I have to force it to close.how to solve?

    Hello

    Thank you for contacting Microsoft Community.
    Windows, then closing, checks all open programs. If there is, it sends a request for the program to close and wait until the program closes safely, to avoid any loss of data. But, Windows is waiting for some specified
    If you are sure that none of the programs are obviously open, you can try the following steps:
    Press Windows key + r, Type regedit and pres enter. If UAC prompts, click Yes. Go to HKEY_LOCAL_MACHINE-> expand System-> expand CurrentControlSet-> click on command (exapnd no do this). When you click (or select) control, you can see WaitToKillServiceTimeout. Double-click it to change the value. Set the value to 500 or less than that. Click Ok, and then close the registry editor. Now, restart the PC. If the problem persists, stop and try again and check.
    Be careful with registry access as incorrect values or remove the unknown keys can prevent Windows to start and it will fix it.
    Response if the issue is not resolved.
  • Trying to check if the JVM is already installed in my Oracle db, 11.2.0.3 for R12.2.3

    People,

    I apologize for this simple question.

    I am migrating our R12.2.3, Oracle db 11.2.0.3 Linux, x 86-64 Linux IBM z platform.

    After the notes 1613716.1 inside,

    in step 9, "install Java Virtual Machine", it is said to run, aujv1120.sql, but there is a WARNING

    "You DON'T have TO run this script, if you have already installed the"

    REM | Machine Java virtual (JVM) in your database. »

    I asked my database on IBM Linux z and got the following result


    SQL > select * from all_registry_banners;

    BANNER
    --------------------------------------------------------------------------------
    Oracle Database catalog views Release 11.2.0.3.0 - 64 bit Production
    Packages of database Oracle and Types of output 11.2.0.3.0 - development
    Updated Oracle Workspace Manager 11.2.0.3.0 - development
    JAVA virtual machine communicated jserver 11.2.0.3.0 - development
    Oracle XDK version 11.2.0.3.0 - development
    Packages of Java database Oracle Release 11.2.0.3.0 - development
    Oracle Expression Filter version 11.2.0.3.0 - development
    Oracle Text version 11.2.0.3.0 - development
    Rules of Oracle Manager version 11.2.0.3.0 - development
    Oracle multimedia version 11.2.0.3.0 - development
    Release of 11.2.0.3.0 OLAP analytic workspace - development

    BANNER
    --------------------------------------------------------------------------------
    Oracle OLAP API version 11.2.0.3.0 - development
    Release catalog 11.2.0.3.0 OLAP - development
    Output space 11.2.0.3.0 - development
    Oracle Enterprise Manager version 11.2.0.3.0 - development
    Oracle Application Express version 3.2.1.00.12 - development
    Release of OWB 11.2.0.3.0 - development

    17 selected lines.

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

    Looks like at, JVM is already installed in my Oracle DB, so I can't run aujv1120.sql, I was just checking?

    Thank you

    Run the query in (how to check or verify if Oracle's JAVA virtual machine is installed in the database (Doc ID 397770.1)) to check.

    Thank you

    Hussein

  • ESXi 5.5 check if the custom script is running

    Hello

    I'm working on a solution, as remote custom for ESXi environments.  The only area that I have a problem, is that I need to check if my (running locally on the ESXi host) shutdown script runs in reality or (to avoid running processes in doubles).

    I know that in the ordinary Linux systems I can do things like (ps to the | grep "test.sh" | grep - v 'grep') or (c - stat %X /proc/ pgdump).  This doesn't seem to work on ESXi.

    Recommendations:

    • This must be run locally on the remote site
      • no access to the vCenter Orchestrator
    • No windows
      • The main system that will control the whole process is Debian
    • Do not install any 3rd party on ESXi hosts
    • Do not recommend N.U.T.S or APCUPSD
    • Must be able to check if the script works not the commands in the script
      • The real script runs several commands at different times

    Test configuration:

    1. Create a loop file in /tmp/test.sh

    #! / bin/sh

    I have = 1

    while [[ $i -le 1000000]]

    do

    echo 'Still running.  Step $i'

    ((i = i + 1))

    fact


    1. Make the file executable
      1. chmod + x /tmp/test.sh
    2. Run the test script
    3. Which can run to verify that the script still works?

    Any help is appreciated.

    Thank you

    B

    Ok.  Spend many hours looking for a way to see who "sh" process to run my script, I gave up and continued in the way of what has suggested Alistar.

    Solution: (linux - dirty way to ensure that only one instance of a shell script is running at a time - Stack Overflow)

    Basically, we create a file locking with the PID on the inside.  If the concurrent process give it a shot, they are arrested.  You can also look in the locking file to find the PID, if you want to force the exit, the newspaper, etc...

    For example

    #!/bin/sh
    LOCKFILE=/tmp/lock.txt
    
    if [ -e ${LOCKFILE} ] && kill -0 `cat ${LOCKFILE}`; then
         echo "already running"
         exit
    fi
    
    # Remove the lockfile when process is exited
    trap "rm -f ${LOCKFILE}; exit" INT TERM EXIT
         echo $$ > ${LOCKFILE}
    
    #do stuff
    i=1
    while [[ $i -le 1000000 ]]
         do
              echo "Still running.  Step $i"
              let i=i+1
    done
    
    rm -f ${LOCKFILE}
    
  • Another installer already running

    When I originally downloaded PS 13 elements and tried to run the installation program, it would always crash - saying me that another installer was already running.  I had to download the files manually.  Now the software attempts to apply an update to the version 13.1 and I'm having the same problem - the installer tells me that another installer is already running.

    I rebooted my machine (under Windows 7 Enterprise x 64 SP1) where another process was hanged in a previous software update, but it makes no difference.  Anyone got any suggestions?

    Thank you!

    Check your processes running in the Task Manager.

  • Citing using ESS ODI scenario

    Hi all

    As part of the migration of data, I am required to invoke ODI scenario using a java program which in turn is called by a work of ESS. So under the present, how it would be possible for me to invoke ODI scenario via the java code. Is there any web service provided by ODI to invoke scenarios. I am new to ODI.


    Thanks and greetings
    Fabrice

    Hello

    I was able to expose a webservice that could invoke a script. That's how I went to.

    1. creates a J2EE agent by following the steps in this link
    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/FMW/ODI/odi_11g/setup_jee_agent/setup_jee_agent.htm
    2. create a physical agent and agent in ODI IDE logic

    Goto: http://agentHost:port/oraclediagent/OdiInvoke? WSDL

    Then I used JDEV httpanalyser and was able to give the name of the scenario and the version number as input parameter. And "SEND the REQUEST"... (There must be better ways to do what I'm new on this..)
    The script should run successfully. You can also view the results of execution of script in the navigation of the operator in ODI IDE.

    Concerning
    Fabrice

  • Try to install the CS6, but when I click on install says install Adobe is already running.

    Hello

    I'm trying to install Adobe CS6 Master Collection, but when I click on install it says that Adobe installation is already running when in fact it is not.  I double checked my window to leave and my activity monitor that is not executed. What should I do?

    Here is a screenshot to show you the screen error message.Screen Shot 2012-06-21 at 2.02.43 PM.png

    I'm not really an expert Mac, we might need some experts Mac to chime in here.

    It's probably a background process and not an application. If anything, I think that you will find in the activity monitor.

    If this does not help, you can also try the following:

    1. reboot and try to install again (you've probably done already)

    2. start in safe mode and then try to install.

Maybe you are looking for

  • Differences between Microsoft RegSetValue and NI RegWriteString

    I'm writing the registry by using the RegWriteString function as follows iLocalFail is RegWriteString (REGKEY_HKCU, "Software\\Custom PDF Printer\\OutputFile", "OutputFile", caFilenameWithPathInfo);.  I get a default and OutputFile under the key Prin

  • ZTE S-6000-F reset / forgot password

    Hello My son did not use his stand for a month ad forgot his password for the model. There is an option for you connect using email and password, but we tried all the variations of our addresses, and none of them work. I think that we have to do a fa

  • Droid razr maxx: how to uninstall flash?

    How can I uninstall adobe flash of my razr maxx? I don't want that would it be because he eats memory, use of data increases,slows down web pages, security holes. Many web sites work better without flash. Thanks in advance!

  • problem with authui.dll after installing a windows 8 skin pack

    Hello I'll just run you through my problem, I installed a windows 8 skin pack which I initially thought was a product of windows (but it wasn't) after installation it forced me to restart my computer, it worked well but it didn't look right and my wi

  • How do you turn antivirus program before playing games

    I tried everything to get the games to work.  How can I try to disable the antivirus program before you play my games? I get an Access Violation.  Thank you! Lana