Start and shutdown SAP done thru scripting

Hi gurus,
For example, I want to shutdown my whole system including SAP system during Fridays and I want to up the whole system including SAP system on Mondays.
Is it possible to shutdown and start SAP "automatically" including the system as a whole (meaning including the OS) thru some scripting without anyone doing the shutdown and start up manually? My OS is Red Hat Enterprise Linux 4.0 and DB is MaxDB 7.6.
I  guess it is possible on the OS thru scripting it by adding it to the init file but I'm not sure on the SAP system.
Please enlighten me. Is there a way? Is it possible?
Thanks,
Paul

HI Paul
             Write a QTP (Quick Test Partner) script. Actually i had played with it some time back. The QTP, Red hat compatible can resolve your issue. Try it.
<b> Help full: Reward points </b>
Thanks and Kind Regards
Mohan

Similar Messages

  • Starting and stoping the appliation thru script

    Hi everyone,
    Is it posible to startup and shutdown the deployed application thru
    script fiels (not from econsole).
    Thanks for your help
    Raju.
    [email protected]

    Raju,
    Sure. Assuming your application is named "MyApp", and the compatibility
    level is "0", this will work:
    findactenv
    findsubagent MyApp_cl0
    startup
    Likewise, to shut it down:
    findactenv
    findsubagent MyApp_cl0
    shutdown
    Don
    At 11:14 AM 7/12/97 -0400, KATTA Raju wrote:
    Hi everyone,
    Is it posible to startup and shutdown the deployed application thru
    script fiels (not from econsole).
    Thanks for your help
    Raju.
    [email protected]
    ====================================
    Don Nelson
    Senior Consultant
    Forte Software, Inc.
    Denver, CO
    Corporate voice mail: 510-986-3810
    aka: [email protected]
    ====================================
    "Tigers are natural-born tree climbers.........Of course, we usually have
    grappling hooks, ropes and utility belts." - Hobbes

  • Starting and stopping SAP in Unix

    Hi,
    Pls tell me the command to start and stop sap in Unix.
    I dont want to start and stop the Database
    Pls help

    Log on in UNIX as a user with SAP administrator authorization (<sid>adm).
    To start the central instance, call the shell script
    startsap_<host>_<instance no> in the home directory
    of the <sid>adm user. If there is only one instance for each application server, the
    alias startsap points to the script startsap_<host>_<instance no>.
    The script startsap first starts the saposcol process which collects statistical
    data for the operating system that it provides to the SAP system.
    The next step is a check to see if the database is running. If not, the script
    startdb is called to start the database.
    The final step starts all of the processes for the instance (message server,
    dispatcher, work processes, and so on).
    After the central instance is started, you can optionally start other instances.
    The startsap script can be called with the following options:
    DB: starts the database system
    R3: starts the instances and associated processes for the instance
    ALL: starts the database system and the instance (default setting, can be omitted)
    To start the SAP system, the startsap script calls the sapstart process with
    the start profile specified in the script in the variable START_FILES.
    The stopsap script can be called with the following options:
    DB: stops the database system with the help of the stopdb script
    R3: stops the instances of the SAP system
    ALL: stops the database system and the instance (default setting, can be
    omitted)
    The database can be stopped separately with database tools.

  • Starting and Stopping SAP Systems and Instances on Windows

    Is there a way to automatically stop/start instances on windows at boot time?
    I don't want to have to logon after a reboot and go into the mmc and start the app manually.
    Thanks,
    Dan

    Dan ,
    As Juan said it could cause problems while starting SAP at startup.
    Still if you really want to implement this...
    This is what I have found ... I never tried this but hope this should work.
    1. you must make sure that SAP[SID]_00 service is set to start automatically.
    2. you must edit your SAP START profile and add this line:
    Autostart=1
    3. make sure that the line you added IS NOT the last one in your file. if it is, your added parameter could be ignored.
    to test this out, shutdown SAP and your database, then shutdown the SAP[SID]_00 service. now start it. open SAPMMC to see if you see any starting activity. it should work fine.
    Let us know if it works.

  • Start and shutdown Oracle10g (WinXP) via Batch?

    Hi,
    I installed Oracle10g at my Notebook (WinXP) and I don't need it every day. So I'd like to shutdown all oracle Services and start all services like a Batch-Script or Icon at my Desktop.
    Is there any way to start an shutdown all Oracle jobs?
    Thanks
    Winni

    To add,
    And of course you will NEVER use "net stop blabla" on a prod DB.
    Never.
    You can also use:
    emctl stop (to stop the enterprise manager)
    agentctl stop (to stop the dbsnmp - think the cmd did not change in 10g, but can't check atm)
    oradim -shutdown -sid DBNAME -shuttype srvc,inst -shutmode i (to stop the instance and service. execute "oradim" to have all options)
    lsnrctl stop (stops the listener)Other services still running? you can now net stop them.
    Regards,
    Yoann.

  • How to start and stop sapmmc server when windows is started and shutdown

    Hi,
    May i know how i can make sure the sapmmc server for ECC 6.0 to start when the windows 2003 server is started. I know i need to add this as a service in the windows service manager but i dont know how to do that.
    Please advise me on how to add a service to start the sapmmc server when windows is started and how to stop the sapmmc server automatically when windows is shutdown.

    Hi Raja
    checkout this document m sure it will help you in configuration
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0512c790-0201-0010-72b7-886677ad7955
    also check
    /message/6511605#6511605 [original link is broken]
    All the best ,,
    Cheers
    dEE

  • How to automate the Oracle database start and shutdown process

    How we can automate and oracle database start and stop procees with Linux start/shutdown process.
    I want to automatically start the oracle database at the time linux server and shutdown the database on shutdown linux server.

    Hi,
    I can share my scripts:
    1) /home/oracle/start_oracle.sh
    #Script should be ran as Oracle user
    cd /tmp
    export ORACLE_SID=orcl
    export ORACLE_HOME=/oracle/ora9i
    lsnrctl start
    sqlplus -S /nolog <<ENDSQL
    connect / as sysdba
    startup
    exit
    ENDSQL
    emctl start dbconsole
    isqlplusctl start
    NOTE: emctl and isqlplus are optional
    2) /home/oracle/stop_oracle.sh
    #Script should be ran as Oracle user
    cd /tmp
    export ORACLE_SID=orcl
    export ORACLE_HOME=/oracle/ora9i
    isqlplusctl stop
    emctl stop dbconsole
    sqlplus -S /nolog <<ENDSQL
    connect / as sysdba
    shutdown immediate
    exit
    ENDSQL
    lsnrctl stop
    NOTE: emctl and isqlplus are optional
    Then what you need:
    1) K91oracle_stop (put it in the desired run level)
    #!/bin/bash
    # description: Stop Oracle before reboots
    su - oracle -c "/home/oracle/stop_oracle.sh" >> /home/oracle/stoporacle.log
    2) S91oracle_start (put it in the desired run level)
    #!/bin/bash
    # description: Start Oracle after reboots
    su - oracle -c "/home/oracle/start_oracle.sh" >> /home/oracle/startoracle.log
    Bye.

  • Auto start and shutdown 9iR2 on Mac OS X?

    Does anybody know how to set up Mac OS X to auto start and auto shutdown 9iR2 on Mac OS X?

    You may want to create an item in /Library/StartupItems.
    See the following links for information:
    http://developer.apple.com/techpubs/macosx/Essentials/SystemOverview/BootingLogin/Customization_Techniques.html
    http://developer.apple.com/techpubs/macosx/Darwin/howto/system_starter_howto/system_starter_howto.html
    http://developer.apple.com/techpubs/macosx/Essentials/SystemOverview/BootingLogin/The_Boot_Sequence.html
    I have not tried this as yet.

  • Starting and stopping SAP J2EE Engine

    Hi guys,
             I have downloaded and installed trial version of SAP Web Application Server (SAP Web AS) Java 6.40 for Microsoft Windows XP.
       I wanted to launch SAP J2EE Engine and Software Deployment Manager (SDM) to run my web dynpro application. The Netweaver Developer studio getting started guide has a link for starting and stopping the SAP J2EE Engine but its not working for me. I get an error with the link.
    Is it possible for someone to let me know how to launch J2EE engine and SDM. Also what server settings I need to make in the menu path Window -> Preferences -> SAP J2EE Engine.
    Any help will be appreciated.
    Thanks,
    Mandar

    Hi Ivaylo and Thomas,
        Thanks for your help, It works fine. For some reason after starting my J2EE server, when I start my Netweaver developer studio, it gives the following error
       JVM Terminated Exit code=1
       c:\j2sdk1.4.2_05\bin\javaw.exe
       -Xmx512m
       -Xms128m
       -XX:PermSize=128m
       DallUserDir='C:\Documents and Setting\All users\Application Data'
       -cp C:\Program Files\SAP\JDT\eclipse\SAPStartup.jar com.sap.ide.eclipse.startup.Main
       -os win32
       -ws win32
       -arch x86
       -feature com.sap.java.ide
       -showsplash C:\Program Files\SAP\JDT\eclipse\SAPIde.exe -showsplash 600
      Any idea why I get this error and how to fix it. My Netweaver Developer studio did startup few times and I did write some code in it. But now when I try to start NDS, I get the above error.
    Any help will be appreciated.
    regards,
    Mandar

  • Solution that worked for me - Slow to start and shutdown

    System: Macbook Pro Late 2011 8GB RAM Seagate Hybrid Drive
    Problem: After Upgrade, slow to boot, slow to shut down and, on occasion, would hang at shutdown requiring Hard Shutdown.
    Solution:  Cleared PRAM and reset SMC
    To "Reload" OS portion back into the 8GB NAND memory of the HDD, restart the system 10 times.

    Base Station Firmware: 7.2
    Airport Utility: 5.2.1
    Wireless Radio: 802.11n only (5.0 GHz)
    Channel: Automatic
    Wireless Security: WPA2 Personal
    Under 'Disks' File Sharing is enabled with a disk password (as opposed to accounts or base station passwords). Guest Access is not allowed. The rest are the defaults.
    Now I've been having interesting problems with USB external drives mounting on my iMac. One never did (but was always successful with FireWire) and a second one was inconsistent. The drive that I have attached to the AEBS at the moment is one that I finally made fully functional with my desktop so I don't know if that is related. I'm going to have to run a number of additional tests.
    Note: my wireless is pure .n - not a mixed environment. I also had a speed issues with the iMac (wired ethernet) until I changed it from manual (100BaseT, full duplex for use with my old Belkin) to Automatic and re-enabled IPv6 which is enabled on the AEBS.

  • What is the password for start and Shutdown Oracle8i?

    Dear all,
    I Can not know the password for shutdown and start(lost the password)
    My Sid & Global database is : ORCL
    After install complete
    Just do below step:
    Step 1 Start up/Mount my installed database with Oracle 8 SQL Plus.
    Connect as system/manager.
    Alter user sys identified by sys;
    Step 2 Connect as scott/tiger.
    Select * from emp;
    After I do this when I want Shutdown Oracle8i
    system ask my enter password!!
    can anyone help me?
    Nick wong

    try the following
    svrmgrl
    connect internal
    startupor
    svrmgrl
    connect internal/oracle
    startupIf you have a standard installation here are the passwords:
    Userid Password
    Internal Oracle
    Sys change_on_install
    System Manager
    BTW the documentation states how to change all of the passwords. There is a big security hole if you do not.
    Also there is a DBA discussion group where you can post database questions.

  • How to start and shutdown Oracle Applications 11i?

    Currently, I've installed an Oracle Applications version 11i under Sun Solaris environment. However, I encountered problems when I tried to backup the whole system for fallback purpose. I'm not really sure about the procedures in shutting down the Oracle Applications components. So, is there anyone could tell me such procedures, hopefully including the command used for shutting down the whole application system? Thanks.
    Besides, I would like to know how can I start Oracle Applications 11i as a daemon? If cannot, how can I start the server within the UNIX shell? Thank you very much.

    You will have specified a common directory in your installation, which is usually referred to as COMMON_TOP.
    Under <COMMON_TOP>/admin/scripts there are a host of shell scripts for stopping, starting apps components. Also, under the database Oracle Home (816 or 817) you will find an appsutil directory with similar scripts.
    Typically these two directories will be in your PATH.
    You can create a stop script, typically as:
    adfrmctl.sh stop
    adrepctl.sh stop
    adfmsctl.sh stop
    adfmcctl.sh stop
    adapcctl.sh stop
    adcmctl.sh apps/apps_password stop (wait till FND processes cease, a sleep 300 might suffice)
    adalnctl.sh APPS_<SID> stop
    addlnctl.sh <SID> stop
    addbctl.sh stop
    A start script would call the same scripts in the reverse order, substituting stop for start.

  • Starting and stoping SAP J2EE engine without using SAPMMC

    Hi All,
    How can we start SAP J2EE engine without using SAPMMC.
    My SAP J2EE version is 6.40.
    Kindly, help.
    Regards,
    Devender V

    hi Devender,
    if your SID = J01 system no# 00, host = hostabc
    open a command prompt,..cd to this exe folder... (/usr/sap/J01/SYS/exe) just cross check if startsap existing or not.
    then run
    startsap.exe name=J01 nr=00 SAPDIAHOST=hostabc
    if the PATH env variable already has a value C:\usr\sap\J01\SYS\exe then you may directly run the command from any folder.. no need to specifically go to the exe folder.
    (if you need help how to set env variable in windows, http://www.cs.usask.ca/~wew036/latex/env.html)
    Regards,
    Debasis.
    Edited by: Debasis Sahoo on Apr 29, 2009 8:56 PM

  • MacBook Pro is slow to start and shutdown

    hi
    i have macbook pro 15 inch retina
    from laat months its become slow in start up and shoutdown?
    why?
    how can  solve it
    tnks

    hm... that's weird.
    Someone at MacRumors suggested to clean the system cache and it seemed to have fixed this issue for him:
    sudo chown root:admin / (enter password when asked)
    sudo kextcache -system-prelinked-kernel
    sudo kextcache -system-caches

  • Automating Database up & down when server start and shutdown in Linux

    Hi to all,
    Question:How to set in linux, whenever server is on the database up and server off the database down?
    Problem: whenever i am issue the command "chkconfig --add dbora"
    or "chkconfig --level 345 dbora on"
    The message is as follows
    service dbora does not support chkconfig.
    I use oracle 9i on Redhat linux as 3.
    please send reply as soon as possible

    http://tldp.org/HOWTO/Oracle-9i-RH8-and-RH9-HOWTO-5.html ??
    Maybe you can use this. Its probably also hidden somewhere inside manuals for unbreakable/redhat oracle linux on metalink. Dunno why they insist on NOT including this auto start/stop in installation - how hard can it be, if you know linux inside-out.... If they did, It should make them more comfortable competing with other rdbms vendors that dont object to making many such things working "out of the box" :) ..... (no pun intended)

Maybe you are looking for

  • APEX: Store Values of fields which are created dynamically(Using APEX_ITEM)

    Hello All, I am creating one application in which i create one report with dynamic fields(using APEX_ITEM Package) and non-dynamic fields(Taking from table). Now i want to store the value of the dynamic fields into table. So please help me on that. I

  • IE11 trying to resolve proxy for DUMMY 00 host on first new tab

    Internet Explorer Version 11.0.9600.17420 IE 11.0.14 (KB3003057) Windows 7 SP1 32bit While testing IE 11 in offices with slow connections our test users reported strange application hangs when opening the first new tab. The initial load of the home p

  • DVD Resolution

    After completing a slide show and burning a DVD, on reply of the new DVD,  the photos are of poor quality and out of focus.  What do I need to do to have sharp photos burned to the DVD?  The photos were sharp, high resolution jPeg images when importe

  • Question about locating library

    I currently have over 15,000 on my iPod. My G4 was hit by a power surge and my motherboard got fried. I believe that my HD is still good, however, can't get to it. I thought all of my MP3's were on external HD's, however, can't seem to find them. I a

  • Wind Filter?!?!

    Ok so basicly, im reading a tutorial to do some stuff and it says to use wind so yeh i go to Filter, Stylize and walla there is no wind? Half of my filters are missing I think, is there a place I can download them? Thanks Ps: I have Photoshop Cs2 and