Scripts to notify stop and start of services

dear all,
             i m looking for a script to send me a mail whenever oracle apps service is shutdown and start.your help will be appreciated thanks in advance.
os:rhel6
ebs :12.1.3
db:11.2.0.3

The full order list can be found at :- http://download.oracle.com/docs/cd/E12825_01/epm.111/epm_install/ch05s02.html
Cheers
John
http://john-goodwin.blogspot.com/

Similar Messages

  • How may I automatically stop and start Mail services at a set time please

    Hi folks. I was wondering if anyone could tell me how to automatically stop and start Mail services (or any other services) at a set time please in Leopard Server? Is there a script someone has created which might help?
    Cheers, David ( a realy newbie when it comes to administering OS X server)

    launchd works through a series of XML documents that define tasks to run, either at launch, on a time schedule, in response to network events, etc.
    So you'll need to create two .plists - one to start the mail server and one to stop it. They should be saved in /Library/LaunchDaemons. I'd suggest something like:
    /Library/LaunchDaemons/local.postfix.stop.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple
    .com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
      <key>Label</key>
      <string>local.postfix.stop</string>
      <key>ProgramArguments</key>
      <array>
        <string>/usr/sbin/serveradmin</string>
        <string>stop</string>
        <string>mail</string>
      </array>
      <key>StartCalendarInterval</key>
      <dict>
        <key>Hour</key>
        <integer>1</integer>
        <key>Minute</key>
        <integer>00</integer>
      </dict>
    </dict>
    </plist>
    and /Library/LaunchDaemons/local.postfix.start.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple
    .com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
      <key>Label</key>
      <string>local.postfix.start</string>
      <key>ProgramArguments</key>
      <array>
        <string>/usr/sbin/serveradmin</string>
        <string>start</string>
        <string>mail</string>
      </array>
      <key>StartCalendarInterval</key>
      <dict>
        <key>Hour</key>
        <integer>4</integer>
        <key>Minute</key>
        <integer>00</integer>
      </dict>
    </dict>
    </plist>
    You'll need to either use launchctl load /Library/LaunchDaemons/local.postfix.stop (or start) to load the tasks, or reboot your server.
    I'm curious, though, as to why you want to do this. Mail is typically one of the services that people want to run 24/7 so they don't miss out on any emails (even though SMTP can tolerate this). Why do you want to shut yours down?

  • How to Stop and Start Scheduler Service

    Does anyone know how to stop and start the Scheduler service for Hyperion Financial Reporting in release 9.3.1?

    please see the metalink note
    How to Start/Stop MWA Services Using Control Scripts adstrtal.sh/adstpall.sh? [ID 731320.1]
    This is how i startup and shutdown WMA
    for stopping :
    1) login to Applications tier
    2) To see if the MWA (telnet) server is running use:
    ps -ef|grep DPID
    3) cd $MWA_TOP/bin
    3) ./mwactl.sh -login sysadmin/xxxxx stop_force 10200;
    4) check the wma process from OS level
    ps -ef|grep mwa
    for starting
    1) login to Applications tier
    2) cd $MWA_TOP/bin
    3) ./mwactl.sh -login sysadmin/xxxxx start _force 10200;
    4) check the wma process from OS level
    ps -ef|grep mwa

  • Task created to stop and start Health service not working.

    We have multiple servers being grayed out so we created a task to stop and start the health service on SCOM 2007 R2. We have created two tasks one to stop and another task to start. The STOP task works but the START tasks keeps running but there is no result
    as well as when i check in Services.msc it is still stopped. Below are the screen shots .
    Task created to STOP the health service which is running.
    Screen shot of service start task creation which is NOT working
    The same was created for another service windows audio. Which worked for both stop and stop (Created separate tasks).
    We also tried the recycle health service and chche which is also failing.
    Can any one please help. The issue is on both SCOM 2007R2 and 2012 R2 both. Is there any other way to touch the health service.
    We are facing the issue only with Healthservice.

    Hi All,
    Thank you for all your answers.
    @ dktoa -
    You are right we have to concentrate on the servers to determine why do they go grey (all in one site). But before we do that i felt i find a temporary solution. Then go deep investigation to solve the issue.
    @Yan LI: As per the likn provided above you. I overrided the servers but still the health services were not starting or restarting. When i created a custom group and added the servers to that  group in that site and then  enabled the override on Restart
    Health Service for a specific group and pointed towards that group then it worked.
    Thanks All.

  • Next/Back Action script help to stop and start

    When I "removeEventListener" for img10, my last image going forward, Next no longer goes forward for 1-9 after going back. I've tried some conditional statements but I'm new to this and nothing is working. I also thought I could do what I did to stop the forward movement to the back movement, stopping at img1, but that didn't work. I'll leave the code that didn't work here with // before.
    I'm also wondering if there's an easy way to have the transition of the photos dissolve from one to the next without setting up as parent-child. I've set it up with a UILoader.
    Site is live (with these issues and others!) at : http://emilysperphoto.com/
    next_btn.addEventListener(MouseEvent.CLICK, nextImage);
    //variable is a container that holds some value...
    var imageNumber:uint = 1;
    function checkNumber():void
        //If the image number is = 10, then do something...
        if (imageNumber==10)
    next_btn.removeEventListener(MouseEvent.CLICK, nextImage);
    //else if (imageNumber<10)
    //next_btn.addEventListener(MouseEvent.CLICK, nextImage);
    function nextImage(evtObj:MouseEvent): void{
        //Add a number to the current value+1
        imageNumber++;
        largeImageLoader.source = "images/recent/rcnt0"+imageNumber+".jpg";
        checkNumber();
    back_btn.addEventListener(MouseEvent.CLICK, backImage);
        //If the image number is = 1, then do something...
        //if (imageNumber==1)
        //back_btn.removeEventListener(MouseEvent.CLICK, backImage);
    function backImage(evtObj:MouseEvent): void{
        //Subract 1 from the current value
        imageNumber--;
        largeImageLoader.source = "images/recent/rcnt0"+imageNumber+".jpg";
        //checkNumber();

    Try this code (I did not check it functionality but the idea is there):
    next_btn.addEventListener(MouseEvent.CLICK, nextImage);
    //variable is a container that holds some value...
    var imageNumber:uint = 1;
    // parametarize number of images
    var numImages:int = 10;
    function addListeners():void {
         next_btn.addEventListener(MouseEvent.CLICK, nextImage);
         back_btn.addEventListener(MouseEvent.CLICK, nextImage);
    function checkNumber():void
         // if imageNumber equals number of images
         // disable next click
         if (imageNumber == numImages) {
              next_btn.removeEventListener(MouseEvent.CLICK, nextImage);
         else if (imageNumber == 1) {
              // if number of images equals 1
              // disable previous button
              back_btn.removeEventListener(MouseEvent.CLICK, nextImage);         
         else {
              addListeners();
    function nextImage(evtObj:MouseEvent):void
         imageNumber = evtObj.currentTarget == next_btn ? imageNumber + 1 : imageNumber - 1;
         // first check number
         checkNumber();
         // now load corresponding image
         largeImageLoader.source = "images/recent/rcnt0" + imageNumber + ".jpg";

  • Upgraded to 11.1.4.62.  Now iTunes is saying "An iPod has been detected, but could not be identified properly.  Disconnect then reconnect ..."  I removed iTunes and reinstalled.  I stopped and started the service.  I reset the iPod.  When I put it in disk

    I upgraded to 11.1.14.62 this morning.  Not iTunes is saying "An iPod had been detected but could not be identified properly".  I unlugged/replugged in.  I reset the iPod, I removed iTunes and reinstalled.  I'ver tried three different cables.
    When I put the iPod in disk mode it shows up briefly as a disk then goes away.
    Any ideas?

    Hi there  - I've spoken with Apple and here is their response (worked for me). You need to uninstall not only iTunes, but also (in this order):
    1) iTunes
    2) Apple Software Update
    3) Apple Mobile Device Support
    4) Bonjour
    5) Apple Application Support
    Then you restart your computer.
    Then you install the latest version of iTunes (which will reinstall all those things you uninstalled).
    Then you restart your computer again.
    Mine is working perfectly again now.
    I hope it works for you,
    Carmen.

  • Order of stop and start of reporting services

    Hi All,
    I am using 11.1.1.3 version in my laptop,i want know the correct order of stop and start the services,please help me on this.
    Thanks
    Hypuser

    The full order list can be found at :- http://download.oracle.com/docs/cd/E12825_01/epm.111/epm_install/ch05s02.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Stop and Start Services

    Hi All,
    We are stopping and starting the services for daily backup. Is it advisable to stop and start services.
    Because client wants to stop the services before taking the backup anf start the services after backup.
    In this scenario, what services do we need to stop for backup process.
    Regards,
    Kumar

    Hi Saichand,
    Thanks for the response.
    Do u have any idea on the below:
    Our scenario is the below:
    We have a daily back of BI folders and Loading data from ERP to 10g database.
    We logged in with remote desktop user A from ABC system to BI system and We created a batch file to start and stop all the BI the services and scheduled this batch file using windows schedule tasks. These batch files will stop the BI services and after 30 minutes another batch file will load data into the database, after 2 hours start services batch file will start the BI services.
    When we open the BI Dashboards in the morning, all the dashboards and reports are working fine. But when I login to BI system, OC4J windows is not visible and dashboards are not coming and when we check the logs, LOGs says OC4J is running.
    Please suggest us the solution.
    Regards,
    Kumar
    Regards,
    Kumar
    Edited by: user597882 on Aug 26, 2010 3:35 AM

  • Stop and Start Essbase 11.1.2.2 services

    Hi All
    How to stop and start essbase 1.1.2.2 services? Do I just stop and start OPMN service? Or got to start menu and Oracle EPM System and Essbase to stop and start? Will both work?
    Thanks

    Yes you can just stop and start the OPMN service, the start menu option will do pretty much the same thing, for more information have a read of http://docs.oracle.com/cd/E17236_01/epm.1112/epm_install_1112200/ch12s02s08.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Tools and Script for stopping and starting SAP instances in the landscape

    Hi All,
    All our SAP system are on Windows 2003 and very few on Windows 2000.
    Is there any possiblity for having a script which will stop and start SAP on all the instances in the Landscape from a central system?
    Lets say we have some 200 SAP instances and we need to down all the instances for Windows patching.
    In this case, we need to manually take remote desktop to stop and start all the instances one by one.
    Also, do we have any 3rd party automated tools for this purpose?
    Regards,
    Siva.

    Hi Siva,
    You can configure ACC for your system landscape.
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/83/43cd574af1489aadd4d71b2f47b77d/content.htm
    Thanks
    Atul

  • Script to stop and start Business Object and its components

    Hi Guru
    I have installed Business Objects and few of its componenents.
    Please assist where I can find a proper script to do a clean stop and start of its services.
    My server is Windows 2008 SP2.
    Target services to have a scripts are;
    1. MySQL server 5.1.
    2. Apache Tomcat 5.5.20.
    3. BW Publisher Service 12.
    4. Server Intelegence Agent.
    Appreciate some assistance here. Thanks!
    -Ace-

    All of those components are available as Windows services. You can use the relevant
    net stop
    commands to stop them.
    Regards,
    Stratos

  • Script to Stop and Start Oracle Meter Data Management

    Hi,
    This is my first post in Oracle forums so if i open this in the wrong thread please forgive me.
    I tried to create a windows batch script to stop and start Oracle Meter Data Management but i can´t.
    @echo off
    D:\spl\MDMDEV\bin\splenviron.cmd -e MDMDEV
    D:\spl\MDMDEV\bin\spl.cmd stop
    D:\spl\MDMDEV\bin\splenviron.cmd -e MDMDEV
    D:\spl\MDMDEV\bin\spl.cmd stop
    The batch exits in the first command and i can´t understand why.
    Another thing is if i use spl.cmd stop command it doesn´t do nothing, is this normal?
    Thanks in advanced for all replies.
    Best Regards.
    Nuno

    I had to put a call command in mine. I think it is because you are trying to run a .cmd file within your bat file. You're actually changing shells. Thats why you need the call.
    call d:\spl\mdmdev\bin\splenviron.cmd -e mdmdev
    call d:\spl\mdmdev\bin\spl.cmd start
    I actually set mine up to use variables so all I had to change from script to script was the environment...
    <snip>
    SET SPLENV=MDMDEV
    SET INSTALLDRIVE=D:
    SET INSTALLDIR=SPL
    SET BINDIR=%INSTALLDRIVE%\%INSTALLDIR%\%SPLENV%\bin
    %INSTALLDRIVE%
    cd %BINDIR%
    REM Set envornment
    call %BINDIR%\splenviron.cmd -e %SPLENV%
    REM Wait a few seconds for environment to setup
    ping localhost -n 5 > nul
    REM Start SPL Web
    call %BINDIR%\spl.cmd start
    </snip>
    I was unable to find a way to get this to run as a service. Have you?
    I'm currently running these scripts in the startup/shutdown script section of the local machine policy (gpedit.msc).

  • InDesign CS6 doesn`t start. It stops at "Starting Up Service Registry" and crashes

    When trying to start InDesignI see the Program starting screnn. But it stops at "Starting up Service Registry". Then i get the Windows-message "Adobe InDesign CS6 doesn't work anymore"
    I work with WIN 8.1
    Thanks for helping....

    It could be a lot of different things at this point. Here's what we know: https://www.google.com/search?q=indesign+starting+up+service+registry&ie=utf-8&oe=utf-8#q= indesign+starting+up+service+r…

  • How to stop and start WMA in 11i system

    how to stop and start MWA in 11i system, its Linux server.

    please see the metalink note
    How to Start/Stop MWA Services Using Control Scripts adstrtal.sh/adstpall.sh? [ID 731320.1]
    This is how i startup and shutdown WMA
    for stopping :
    1) login to Applications tier
    2) To see if the MWA (telnet) server is running use:
    ps -ef|grep DPID
    3) cd $MWA_TOP/bin
    3) ./mwactl.sh -login sysadmin/xxxxx stop_force 10200;
    4) check the wma process from OS level
    ps -ef|grep mwa
    for starting
    1) login to Applications tier
    2) cd $MWA_TOP/bin
    3) ./mwactl.sh -login sysadmin/xxxxx start _force 10200;
    4) check the wma process from OS level
    ps -ef|grep mwa

  • Srvctl on 11.2.0.3 does not stop and start listeners

    I recently installed the Grid software under the "grid" user on RH5. Clusterware and ASM run under GRID_HOME, the single instance database runs under ORACLE_HOME. I have created 2 listeners on non-default ports (manually using entried in listener.ora) and then added to srvctl (srvctl add listerner -l LISTENER_XPT -o /app/oracle/product/dhome_1 -p "TCP:1523" -- in ORACLE_HOME.
    When stopping the listener using:
    oracle@#####>srvctl stop listener -l LISTENER_XPT -- note starting with oracle user in ORACLE_HOME. Below is from "/app/grid/product/11.2.0/grid/log/server_name/agent/ohasd/oraagent_grid/oraagent_grid.log
    2012-06-12 12:48:00.549: [ora.LISTENER_XPT.lsnr][1125030208] {0:0:1233} [check] (:CLSN00010:) TNS-00511: No listener
    2012-06-12 12:48:00.549: [ora.LISTENER_XPT.lsnr][1125030208] {0:0:1233} [check] (:CLSN00010:) Linux Error: 111: Connection refused
    2012-06-12 12:48:00.549: [ora.LISTENER_XPT.lsnr][1125030208] {0:0:1233} [check] (:CLSN00010:)Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1523)))
    2012-06-12 12:48:00.549: [ora.LISTENER_XPT.lsnr][1125030208] {0:0:1233} [check]
    **********FROM TAILING THE listener LOG ****************************
    TNS-01190: The user is not authorized to execute the requested listener command
    12-JUN-2012 12:44:12 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=v01orarac01w)(USER=grid))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER_XPT)(VERSION=186647296)) * status * 0
    TNS-01195: Listener rejected registration of endpoint "(ADDRESS=(PROTOCOL=TCP)(HOST=10.5.87.5)(PORT=1523)(IP=FIRST))"
    12-JUN-2012 12:50:02 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=v01orarac01w)(USER=grid))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER_XPT)(VERSION=186647296)) * status * 0
    TNS-01190: The user is not authorized to execute the requested listener command
    12-JUN-2012 15:12:58 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=v01orarac01w)(USER=grid))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER_ADMIN)(VERSION=186647296)) * status * 0
    12-JUN-2012 15:12:58 * version * 0
    12-JUN-2012 15:12:58 * service_register * LsnrAgt * 1195
    TNS-01195: Listener rejected registration of endpoint "(ADDRESS=(PROTOCOL=TCP)(HOST=********)(PORT=1524)(IP=FIRST))"
    12-JUN-2012 15:12:59 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=********)(USER=grid))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER_XPT)(VERSION=186647296)) * status * 0
    12-JUN-2012 15:13:05 * (CONNECT_DATA=(SID=PRDRAC01)(CID=(PROGRAM=perl)(HOST=********)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=*******)(PORT=41398)) * establish * PRDRAC01 * 0
    Why wouldnt the Oracle user not be able to start/stop a resource from ORACLE_HOME ? Any assistance would be helpful

    I just removed the listener out of the ORACLE_HOME and added it using srvctl to the GRID_HOME. Now I am able to stop and start.
    Still the question, why cant oracle user start an oracle_home managed resource. But the oracle user could start and stop using lsnrctl stop/start
    Below if the results from ps (note I just started listener from GRID_HOME):
    grid@PRODBLD:+ASM>ps -ef |grep lsnr
    grid 9114 1 0 09:40 ? 00:00:00 /app/grid/product/11.2.0/grid/bin/tnslsnr LISTENER_ADMIN -inherit
    grid 10348 1 0 Jun12 ? 00:00:00 /app/grid/product/11.2.0/grid/bin/tnslsnr LISTENER -inherit
    grid 20234 21990 0 09:49 pts/2 00:00:00 grep lsnr
    oracle 29926 1 0 Jun12 ? 00:00:00 /app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr LISTENER_XPT -inherit

Maybe you are looking for