Automatic start of specific job with EP Restart

hi,
does anybody know about how to schedule/run userdefined  jobs/applications/programs on every EP restart.
regards
Sanjay

Hi Sanjay,
you can define a service in the SAP EP and define it to be automatically started. There you can define your job in the afterInit()-method.
The service will be automatically started on every restart of the SAP EP and the afeterInit()-method will be executed after.
Detailed description can be found here:
/message/996413#996413 [original link is broken]
Best regards,
Stefan Brauneis

Similar Messages

  • Automatically starting Oracle Enterprise Manager with chkconfig

    Folks,
    While Oracle Linux 6 is out (6.2 actually), Oracle has yet to get everything 'working out of the box' with 6.2. Right now (June 2012) you've got to download patches from Oracle, the new way to start services in Linux 6, upstart, doesn't work with all Oracle features yet, etc. Update: You can still use chkconfig with OL6.
    Because of the above, I've been using Oracle Linux 5.8. Linux 5 uses something called chkconfig to register services. You first need to put a script in the right directory: /etc/rc.d/init.d. Linux looks in this directory for scripts and runs those scripts with either a start or stop after them depending on if the system is coming up or going down. Technically this happens every time you change your runlevel (google Unix runlevels for more info), not just when the system goes up or down.
    Here's a script that you can put in /etc/rc.d/init.d. I named mine oracleEM:
    [root@localhost ~]# cd /etc/rc.d/init.d
    [root@localhost init.d]# vi oracleEM
    Enter i to enter insert mode and then enter the below (or just copy and paste it)
    *#!/bin/sh*
    *#chkconfig: 2345 80 05*
    *#description: Oracle Enterprise Manager*
    ORA_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
    ORA_OWNER=oracle
    ORA_SID=orcl
    *# We're checking to see if ps returns 1 or 2 results for pmon_orcl*
    *# If there are two, Oracle is running, one we are just seeing our grep*
    ORACLE_STATUS=$(ps -eaf | grep pmon_$ORA_SID | wc -l)
    *if [ ! -f $ORA_HOME/bin/emctl ]*
    then
    echo "Enterprise Manager startup: cannot start"
    exit
    fi
    case "$1" in
    *"start")*
    *if [ $ORACLE_STATUS -lt 2 ]*
    then
    echo "Waiting for Oracle instance $ORA_SID to start before starting Enterprise Manager"
    fi
    *while [ $ORACLE_STATUS -lt 2  ];do*
    echo "Waiting...."
    sleep 5
    ORACLE_STATUS=$(ps -eaf | grep pmon_$ORA_SID | wc -l)
    done
    su - $ORA_OWNER -c "$ORA_HOME/bin/emctl start dbconsole"
    *"stop")*
    su - $ORA_OWNER -c "$ORA_HOME/bin/emctl stop dbconsole"
    esac
    Press the Esc key to leave insert mode, then type *:wq* to write the file and quit.
    We'll need to make the script executable, so we need to run the following command:
    [root@localhost init.d]# *chmod +x oracleEM*
    Finally we need to register the oracleEM script with Linux using the chkconfig command:
    [root@localhost init.d]# *chkconfig --add oracleEM*
    Now Enterprise Manager will start up automatically when you start your system, but only after Oracle has started.
    Rich
    Edited by: RichS on Jun 9, 2012 1:00 AM

    The script you are using will not work for RHEL or Oracle Linux since it is incorrect and missing important coding.
    You can probably fix the script by removing the dash (-) from the su command and adding the lockfile that is required for RHEL to process the stop routine at system shutdown. The dash will reset the shell environment and the startup won't work. You should also start it in the background in order not to prolong the system startup more then necessary.
    lockfile=/var/lock/subsys/oracleEM
    start)
       su $ORA_OWNER -c "$ORA_HOME/bin/emctl start dbconsole &" &>/dev/null
       touch $lockfile
    stop)
       su $ORA_OWNER -c "$ORA_HOME/bin/emctl stop dbconsole"
       rm -rf $lockfile
    ...You do not need to start your Oracle instance before starting dbconsole. So there is no need for the "sleep" routine. You can start the Oracle Database control console even when the instance is down:
    For instance:
    <pre>
    [oracle@vm005 ~]$ ps -ef | grep pmon
    oracle 17749 10343 0 22:48 pts/3 00:00:00 grep pmon
    $ emctl start dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
    Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
    https://vm005.example.com:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 11g Database Control ....... started.
    </pre>

  • HT2488 Can I schedule an email to be sent automatically at a specific time with Automator?

    I need to be able to send an automatic email every day at 8am and 5pm. Will Automator be able to do this for me if I download it?

    Set up your Automator like this. I use this setup for repeating meetings and am doing so in OS 10.10.2 (Yosemite). Be aware when you set this up and save it will automatically compose and send the email immediately.
    Open Automator, choose Calendar Alarm, Search "mail", drag "new mail message" to the right gray open area, drag "send outgoing messages" below this. Once you compose your message and add your recipients save your work. The calendar event will be added to the calendar at the time you saved your work. (You clicked save at 12:01, the event will be saved to the Calendar at 12:01. This will also automatically send out the email at that time, so just be aware of that. Once in your calendar, you may augment the times and repeats as you see fit, just like a regular event.

  • How can you get the schedule of a single reoccurring job with Restart ability in Redwood to pause when it has failed...?

    We need the Request Restart ability when scheduling a single reoccurring job in Redwood. Most of our jobs are scheduled in CHAINs which offers the Final Status Handler on Step level, and the schedule is "paused" when a job in the CHAIN has failed ( the next instance does not populate until the OP MSG has been Replied to) , and once the OPERATOR message is replied to, the CHAIN can resume running again ( desired ) . But we need this same ability when scheduling a single job not in a CHAIN. In our testing, we set up a job with Request Restart chosen on the Error , Killed and Unknown selections on the Restart Behavior Tab. But we found when a job is scheduled say once a day at 8AM, and when it fails, an OPERATOR msg appears allowing a Restart choice ( desired), but the next day's schedule also populates ( undesired) and we do NOT want the schedule to continue on yet because we need a chance to fix the error before the next insance runs for business reasons. So how can you get the schedule of a single reoccurring job with Restart ability in Redwood to pause when it has failed...?

    Hello Fran,
    You can wrap the job chain in a master job chain in the first step and set the final status handler there.
    You can also set the Restart Behavior to 'Stop Submit Frame', in that case you will have to resubmit the job once you are finished troubleshooting.
    Regards Gerben

  • Webdynpro application automatic start after j2ee startup

    Hi ,
    Is there a way to automatically start any specific webdynpro applications after j2ee startup
    Oren

    I guess you can write batch file for that.
    Example
    suppose you have a bat file which starts J2EE engine, startJ2EE.
    You can write a new bat file with following commands.
    startJ2EE.bat
    explorer http://<server>:<port>/webdynpro/<URL as application>
    Let me know if you need more help
    Ashutosh

  • Reports-Job-Scheduler: create job with startoption later: wrong date-format

    Hi,
    I test reports 11.1.1.2.0 (weblogic11 g) and try to start a report job with Reports-Job-Scheduler.
    Startoption: later and date = 09:48 Jan 12, 2010
    When I submit the job I get following Error:
    REP-50006: Das Argument SCHEDULE ist in der Befehlszeile ungültig: 09:48 Jän 12, 2010
    in english:
    Rep-50006: argument Schedule is wrong in command line: 09:48 Jän 12, 2010
    Why is Jän instead of Jan.
    When I start the report in February then it works.
    I defined also environment variables in basic configuration for the report server:
    NLS_DATE_FORMAT DD.MM.YYYY
    NLS_DATE_LANGUAGE GERMAN
    NLS_LANG GERMAN_GERMANY.WE8ISO8859P1
    I would be very pleased to get support.
    Many thanks
    Alois

    I created a SR and oracle support found a bug in EM.

  • ITunes automatically starts playing when I get in my car

    I drive a Ford with Sync. I have my iPhone 3GS set to automatically connect to the bluetooth in the car when the car is started. In the past few weeks, I noticed my iTunes was automatically starting when it connected with the Bluetooth. It doesn't play through the car, so I don't know its happening unless I look at the phone and see iTunes playing music.
    Is there a way to stop it from doing that? Its draining my battery.

    I too have this problem, though not with bluetooth. For me the auto-play starts as soon as I connect my iPhone 4S to the radio with a cable I connect to the AV 1/8" port in the center console of my 2007 Honda Accord. Not only does it start auto-playing as soon as I connect the cable, it also immediately starts playing the first music file in my phone as soon as whatever podcast I am listening to has ended
    Like others, I find this really annoying, but also a little dangerous. Because some engineer thought that auto-playing the first music file on a device was what most people would want to have happen, I now have to either (1) think ahead to select and pause my podcast or song prior to connecting the cable, or (2) scramble around to stop the auto-playing file while I am driving. This is hampered by the fact that the auto=play does not instantiate Music when it auto-plays, so I have to locate and start up Music and go to Now Playing before I can stop the file from playing.
    I do not believe, however, that this is Apple's fault. On no other device anywhere does this auto-play occur except in my Accord. On the other hand, I see people in this thread with the same problem driving cars other than the Accord. This could just be something I need to work around. A bummer, but definitely a First World problem.

  • SAP system doesn't automatically start after restart (but manual start ok)

    Hi,
    We've got a new production line of SAP EP 7.0 systems, which have CI on HP-UX and DIs on windows. The version is NW2004s SPS09.
    What we see is that after a restart of the windows servers (usually because of windows patching), the SAP system doesn't automatically start up. It doesn't start up if I restart the SAP<SID>_<instance> service either. 
    However, I've got no problem starting the system with the MMC.
    Any idea what I am missing here? is it as simple as a profile parameter ?
    As far as I can see the profile used seem ok.
    After a restart of the windows server the following files have log entries in the c:\usr\sap\<SID>\J<instance>\work folder
    sapstartsrv.log
    trc file: "sapstartsrv.log", trc level: 0, release: "700"
    Fri Nov 17 15:51:26 2006
    <<- ERROR: SapSSLInit(read_profile=1)==SSSLERR_LIB_NOT_FOUND
    sapstart.log
    Starting WebService thread
    SapSSLInit failed => https support disabled
    Webservice named pipe thread started, listening on port
    .\pipe\sapcontrol_97
    Webservice thread started, listening on port 59713
    sapstart.trc
    Starting WebService thread
    SapSSLInit failed => https support disabled
    Webservice named pipe thread started, listening on port
    .\pipe\sapcontrol_97
    Webservice thread started, listening on port 59713
    The windows event log have the application events
    (first)SAP Service SAP<SID>_<instance> successfully started.
    (at the same time)
    Failed to update service environment from user (STATOIL-NET\<sid>adm) environment. [ntservmgr.cpp 201]
    (note that this doesn't happen for all systems which have this problem, for other there is no entry like this)
    I see no failed login attemps in the security event log, but see the that a login is performed for SAPService<SID>.
    Since it also fails to automatically startup when I restart the service, I am able to use filemon to see what happens at a file level. Here I see that it can access the shared file system without any problems, and can read the profile and everything.
    MOM is running on the server and gets some Access denied errors since it doesn't have access to the shared file system, but I don't think that matters.
    Cheers
    Dagfinn

    hi  we are using sap bw 3.5 . database is oracle 9i
    i applied a kernel patch and when i tried to start the services . there was no problem with the oracle services  and saposcol but the service sap<sid>_nr did not start .
    when i went to check the error in work folder ..
    it say " SapSSLinit failed => https support disabled  .
    then i tried to start sap from cmd pmt . din`t work .
    is there a way to statrt this ...
    thanks alot.
    arjun

  • Print job starts, stops on last page of job, then finally restarts.

    Hello, I have an HP Office Jet Pro 8500 (A909), connected via router (ethernet cable). Windows 8, HP Pavillion machine, i5 processor, 64 bit, 6gigs ram
    The print job starts, stops on last page of job, then finally restarts, then starts whole print job over with same results; pausing for about a minute, restarting and finishing job but the driver must detect that the job - still in the queue - is not done and starts again.
    I've swapped ethernet cables with the same results. I can print over the wireless network with other computers and do not have this issue.
    I thought it was a driver issue so I uninstalled/reinstalled HP software, with all available updates, same results.
    The only work around at my disposal now, other than printing from another machine, is to wait for the last page to print and manually clear the queue so the job doesn't print again. Suggestions?
    Thanks

    Hey @DavidWW ,
    Thank you for joining us on the HP Forums today, hope you enjoy your time with us! Also thank you for taking the time to thoroughly explain the issue, much appreciated. 
    I understand you are having an issue with the last page printing late, the computer not recognizing it, re-printing and so on. You need to print, wait for stall and then last page and then clear queue to stop the printer. That is truly annoying, however; I might have a fix for you in 1 simple post... maybe not, but maybe at least.
    Try the tool I have posted below and run the print fix option.
    Click here to download and run the Print and Scan Doctor >>> www.hp.com/go/tools
    If that doesn't fix your issue make sure you let me know and we can continue.
    I worked for HP.

  • EssBase with Excel, automatic Start-Up

    I'm using EssBase with Microsoft Excel. Then of install EssBase and restart the computer, each time start the Excel start the Essbase aplication too. This process aviod some Excel's functions. How I can avoid the automatic start of the EssBase in Excel ? thks !!! Estela

    Here's a trick I use borrowed from Hyperion Enterprise v4 where you put the xll file on the desktop. I use Excel '97 but it should be the same for other versions. Remove Essbase from the Add-ins list by:Rename essexcln.xll in the bin directory to essexcln.xloOpen ExcelSelect Tools/Add-ins, then find essexcln.xll on the list and click on it.when asked if you want to delete it from the list? select yes.Exit Excel.Rename essexcln.xlo back to essexcln.xllYou now have removed the auto-start, so now we need to create a button on the toolbar for when we want to load Essbase.In a new Excel file, create a vba macro and write this code:Sub Ess_Start() MyPath = CurDir() ChDir "c:\essbase\bin" Application.RegisterXLL Filename:="Essexcln.XLL" ChDir MyPathEnd Sub(replace the path with the path to your bin directory).Save the file where it can be always found (on a local drive).Create a new button on the toolbar using custom button and assign this macro to the button. Exit Excel.Restart Excel. Essbase won't start, but when you want Essbase, then click the button and the splash screen will come up and Essbase will load.

  • Hello.  I am receiving "error codes" when trying to dowload songs.  It charges me but the songs never download and I have restarted itunes and it does not automatically start downloading as instructed online.  Help?

    Hello.  I am receiving "error codes" when trying to dowload songs.  It charges me but the songs never download and I have restarted itunes and it does not automatically start downloading as instructed online.  Help?

    I don't know exactly what they said b/c they are nolonger on my screen.  It said something to the effect of "incomplete dowload, there was an eror during the dowload of *Song*".
    The songs purchased were showing in my purchased list with an "exclamation point" by them, which I believe indicates the download was incomplete.  I restarted iTunes and the songs are no longer on my "Purchased list".
    I was still charged after restarting iTunes

  • Tried to reinstall OSX Mountain Lion 10.8.4 and every time i start with the installation i get a requested time out message, had to shut down my MacBook Pro retina. Now when i start up it automatically start internet recovery

    tried to reinstall OSX Mountain Lion 10.8.4 and every time i start with the installation i get a requested time out message, had to shut down my MacBook Pro retina. Now when i start up it automatically start internet recovery for two ouers. After the internet recovery the same problem with reinstalling OSX message

    Gave up on the GUI.  This script derived from http://blog.netnerds.net/2012/07/os-x-how-to-setup-nat-on-lion-and-mountain-lion / seems to work for me:
    gwdev=en0 # This is my WiFi connection (has Internet connection)
    targetdev=en1 # This is the USB to Ethernet adapter (to give Internet connection)
    /sbin/ifconfig $targetdev down
    /sbin/ifconfig bridge0 create
    /sbin/ifconfig bridge0 up
    /sbin/ifconfig bridge0 addm $gwdev
    /sbin/ifconfig bridge0 $HOST_ADDR
    /sbin/route add default -interface bridge0 -ifscope bridge0 -cloning
    /usr/sbin/sysctl -w net.inet.ip.forwarding=1
    /sbin/ipfw add 100 divert natd ip from any to any via $gwdev
    /usr/sbin/natd -interface $gwdev -use_sockets -same_ports -unregistered_only -dynamic -clamp_mss -enable_natportmap -natportmap_interface $targetdev

  • How do I format a document in Pages 5.2 so that each sentence automatically starts with capital letter?

    How do I format a document in Pages 5.2 so that each sentence automatically starts with capital letter?

    If you installed the Devon Technologies (Freeware) WordService Service package, there is an item that will enable you to fix selected content to show initial capitals in sentences. You may need to enable this feature in the System Preferences > Keyboard > Shortcuts > Services selections. This only works in Pages v5.2 (and maybe later releases).

  • OWB job is not automatically starting

    I exported the mapping from server and imported into another server. All the mappings are working fine. But the scheduled job is not automatically starting.
    Here is the status.
    SQL> select state,enabled from dba_scheduler_jobs
    where owner='IAEBT_DW' and job_name='PF_JOB';
    2
    STATE ENABLED
    DISABLED FALSE
    SQL>
    SQL> EXEC DBMS_SCHEDULER.ENABLE('IAEBT_DW.PF_JOB');
    BEGIN DBMS_SCHEDULER.ENABLE('IAEBT_DW.PF_JOB'); END;
    ERROR at line 1:
    ORA-27457: argument 1 of job "IAEBT_DW.PF_JOB" has no value
    ORA-06512: at "SYS.DBMS_ISCHED", line 3417
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 2461
    ORA-06512: at line 1
    SQL>
    My database is oracle11g.
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE 11.1.0.7.0 Production
    TNS for Linux: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
    Any help is appreciated.

    Hi Shrinika,
    did you try to "enable" scheduled mapping directly from OWB Design Center (or Control Center Manager)?
    For enabling job from OWB client - rightclick on Control Center name and choose Job Monitor, in opened window select Schedule tab, select your job and "start" it.
    Regards,
    Oleg

  • Background job with immediate start

    Hi,
    In my program, I have to create a background job with immediate start. I used function module 'BP_JOB_CREATE', but it does not start immediately.
    Can anybody provide sample code for immediate job start.
    Regards,
    Nitin

    Hi,
    Use these function modules.
    JOB_OPEN
    JOB_SUBMIT
    JOB_CLOSE
    in JOB_SUBMIT function module u can pass to start the job immediately in export parameters PRIPARAMS structure  field name PRIMM which has to be set to 'X' to start immediately.
    regards,
    Santosh Thorat

Maybe you are looking for

  • My iphone 5 is not connecting to wifi since the update to 8.1.1.

    already tried restarting, resseting network setting, and restoring the phone. when i'm having problem with the connection and i restart it, it will greyout the wifi. only re-appear if i resset network but wont solve the connections problems.the phone

  • "iTunesSetup.exe is not a valid 32bit application" error received.

    "iTunesSetup.exe is not a valid 32bit application" error received.  I'm on dial up (no flames or stupid comments in reference to this please) with Toast using IE9.  I've uninstalled, deleted, and restarted my computer after each attempt.  I've tried

  • Error in Creating Inbound delivery

    I'm creating an inbound delivery for General items PO, but when i go to t-code VL31N and select the desired PO and hit enter ..... it show me only three items out of 65 items. when i check the logs here it showing the following error. No item categor

  • My ios 6 album is still hidden on my facebook account.

    I already access the private settings to allow my photos to my facebook account, But still i cant see my ios6 photo album just like before. What will I do? I tried to restart the location and privacy settings but still the ios6 album didnt work. What

  • NAC incorrectly identifies AV

    We are using the AnyConnect client (v3.1.04063) and NAC agent (v4.9.3.5). Some of the clients are not successfully detecting that one of the NAC requirements is present (Microsoft Systsem Center Endpoint Protection - is installed and updated to withi