SAP HA failover script for RHCS

Hi Guys,
We have built a SAP HA system on RHCS  and the services are not automated due to scripts un-availability. So everytime when the server node goes down we
are manually moving the services and starting the SAP and DB.
So can anyone help me by providing or suggesting on the failover scripts for SAP HA on RHCS.
Best Regards,
Shree

Hello,
the SAPInstance resource agent must be configured for SAP services and SAPDatabase must be configured for the database so that they can be managed by cluster. these resource agents will take care of starting/stopping the SAP/DB related services
the sapstartsrv also will be managed by the cluster automatically. incase if this service is running in both nodes for ASCS/SCS instances stop them so that it will started by the cluster framework in the appropriate node
also check if SAPHOSTAGENT in installed in both the nodes
check the below link for further help
ocf_heartbeat_SAPInstance
if these Resource agents are not configured then you need to only start/stop them manually
regards, Chandru

Similar Messages

  • HACMP Clustering Script for SAP ECC 6.0 (SR1) - Automatic Failover

    Hello,
    I have installed the SAP ECC 6.0 (SR1) under AIX 5.3 / DB2 V8 FP12 with HACMP Clustering environment. Manual Failover is working fine. Central System has been installed in share drive with Virtual IP and Virtual name inNode A. Dialog Instance is loaded locally in Node B. I want to get HACMP Clustering script(automatic failover script) for Automation. Please help me if you have. It is single package clustering. If Node A fails, Node B will take care ( Central System and Dialog instance will run in Node B)
    Thanks
    Gautam Poddar

    this post is duplicated at Upgrade to ERP 2005/ECC 6.0 from  R/3 4.72/Basis 640 on Z/OS 1.4 DB2 8.1

  • HACMP Clustering Script for SAP ECC 6.0 (SR1) - Automatic Failover-Oracle10

    Hello,
    I have installed the SAP ECC 6.0 (SR1) under AIX 5.3 / Oracle 10g with HACMP Clustering environment. Manual Failover is working fine. ASCS and Database instances are loaded in share drive with Virtual IP and Virtual name. Central Instance and Dialog Instance are loaded locally in Node A and Node B. I want to get HACMP Clustering script(automatic failover script) for Automation. Please help me if you have.
    Thanks
    Gautam Poddar

    Here are HA stop & start scripts that you should be able adapt for your particular circumstances. Based on earlier versions of SAP / Oracle but assume should be a reasonable guide
    Script to start SAP is start_sap_prd
    #!/bin/ksh
    Script:         /usr/local/bin/cluster/start_sap_prd
    Comments:       HACMP Application START script for PRD
    Show me obvious information in hacmp.out
    banner "Starting"
    banner "PRD SAP"
    Set the oracle and sap owner.
    ORASID="PRD"
    SAPADM="prdadm"
    ORAUSR="oraprd"
    VIRTUALHOST="vhost"
    DEVHOST="vhostdev"
    Get the volume groups for this resource group
    RG=$( /usr/es/sbin/cluster/utilities/cllsgrp | grep -i $ )
    VG_LIST=$( /usr/es/sbin/cluster/utilities/cllsres -g $ | \
            grep "VOLUME_GROUP=" | \
            awk -F\" '{ print $2 }' )
    Check the transport directory is mounted.
    if mount | grep -w "/usr/sap/trans"
      then
            print "Transport directory is already mounted."
      else
            cd /tmp
            print "Attempting a background mount of the transport directory."
            nohup mount -o intr,bg,soft :/usr/sap/trans1 /usr/sap/trans &
    fi
    #Start SAP and Oracle
    #Start listener
    su - $ -c /rprd/oracle/PRD/920_64/bin/lsnrctl start
    rc=$?
    if [ $? != 0 ]
      then
            echo "ERROR: Listener failed to start\n"
    fi
    #Start Database
    su - $ -c "/rprd/oracle/PRD/bin/start_database_PRD.sh"
    sleep 20
    Standard sapstart script
    su - $ -c startsap $
    Script:       /usr/local/bin/cluster/stop_sap_prd
    Dated:        01/11/06
    Application:  Oracle/SAP
    Comments:     HACMP Application STOP script for SAP / Oracle PRD
    Show me obvious information in hacmp.out
    Set the oracle and sap owner.
    rc=$?
    if [ $? != 0 ]
    then
            echo "ERROR: Failed to start SAP\n"
    fi
    exit 0
    Script to stop SAP is stop_sap_prd
    #!/bin/ksh
    set -x
    banner "stopping"
    banner "PRD SAP"
    ORASID="PRD"
    SAPADM="prdadm"
    ORAUSR="oraprd"
    VIRTUALHOST="vhost"
    #Stop SAP/Oracle
    su - $ -c stopsap $
    rc=$?
    if [ $? != 0 ]
    then
            echo "ERROR: Failed to stop SAP and Oracle\n"
            break
    fi
    Stop SAP collector and Oracle listener.
    su - $ -c /usr/sap/PRD/SYS/exe/run/saposcol -k
    rc=$?
    if [ $? != 0 ]
    then
            echo "ERROR: Failed to stop SAPOSCOL \n"
    fi
    su - $ -c /rprd/oracle/PRD/920_64/bin/lsnrctl stop
    rc=$?
    if [ $? != 0 ]
    then
            echo "ERROR: Listener failed to stop\n"
    fi
    if mount | grep -w "/usr/sap/trans"
      then
            print "Transport directory is mounted."
            /usr/es/sbin/cluster/events/utils/cl_nfskill -k -u /usr/sap/trans
            sleep 1
            /usr/es/sbin/cluster/events/utils/cl_nfskill -k -u /usr/sap/trans
            sleep 1
            umount -f /usr/sap/trans &
      else
            print "Transport directory is not mounted."
    fi
    exit 0

  • SAP Script for Delivery

    Dear ABAPer's ,
    I am working on a SAP Script for Delivery.The requirement is I need a print out for each line item in a delivery in a seperate page.
    For example if the delivery has 3 line items.I should print each line items details in 3 seperate pages.
    I have modified the routine RVADDN01 according to my requirements.
    How to do this...

    Hi Sapient,
       In order to create a page for each line item what you have to do is in the script part where you have written the values.
    for eg: if the line item details(VALUE) are in an internal table "<b>I_DETAILS</b>"
    <b>Script:</b>
    /E DET
    P1 &I_DETAILS-VALUE&
    /: NEW-PAGE
    <b>Driver program:</b>
    Loop at i_details.
    CALL FUNCTION 'WRITE_FORM'
       ELEMENT                        = 'DET'
       TYPE                           = 'BODY'
       WINDOW                         = 'MAIN'.
    Endloop.
    Try this it would work.
    Reward if helpful.
    Regards,
    Tushar

  • How to attach print program and sap script for F150 transaction

    How to attach print program and Z sap script for F150 transaction

    Hi,
    you can find the customization for dunning in transaction SPRO under this path: Financial Accounting->Accounts Receivable and Accaounts Payable->Business Transactions->Dunning.
    Kostas

  • Disaster Recovery server for SAP and HACMP Cluster script for SAP ECC 6.0

    Hi,
    I need  document for Disaster Recovery server for SAP? I have to configure the DR Server If you have, please share this document if possible.
    Have you any cluster script ( HACMP Cluster script for SAP ECC 6.0 ) ?
    Thanks & Regards,

    Hello, I'm doing a "Plant ECC6 to do a test disatre / Recovery.
    During the installation, I would use the same <sidadm> existing as it is in the PRD.
    If I tell you to install it during the same <sidadm> it will overwrite what already exists, or do I just enter the password of existing <sidadm>?

  • SAP VB script for updating texts in purchase orders

    Hello,
    I am trying to create a SAP script for updating texts in purchase orders. It is in the last third - Item Detail,  Texts tab.
    The script is ok apart from the fact that it always deletes whatever text is in there and than add a new one.
    I would like to keep history in the texts tab and always just add one line to existing texts. Is there any way (command) how
    to keep existing texts and only add a new line to the top?
    Thanks a lot!
    Jan

    Yes, you are exactly right. I have already figured it out as well. I did not expect it would be that easy. But thanks a lot anyway for replying on this!
    Now I am struggeling with changing SAPLMEGUI in vb scripts for ME22n. Sometimes, there is SAPLMEGUI:0010 and sometimes SAPLMEGUI:0015. Even when the users have the same screens in the beginning the SAPLMEGUI number differs. They also do one item by hand and than it changes. It keeps changing between SAPLMEGUI:0010 and SAPLMEGUI:0015
    Is there a way how to have the same number of SAPLMEGUI or how to eliminate this issue?
    Thanks a lot
    Jan

  • Sap script for Delivery(item wise)

    Dear ABAPer's ,
        I am working on a SAP Script for Delivery(<b>Item wise</b>).The requirement is I need a print out for each line item in a delivery.I am using tcode VL71 for taking prinout.
    I have modified the routine <b>RVADDN01</b> according to my requirements.But the problem is i am not able to capture
    which line item is selected.Whichever lineitem i select it is giving the details of all the line items.
    Am I using the correct routine or someother routine is available for item wise details.
    Please clarify.

    hi SAP ,
    u have selected right one , Just Debug the script from which text Element u are getting the data into Form, then check ur Logic.
    Regards
    Prabhu

  • Scripts for SAP mappings

    To generate the scripts for SAP mappings:
    - From the Warehouse Module Editor menu, choose Module then Generate.
    - The Generation Mode dialog
    hi i don't find the "generation mode dialog". where i find it?
    robson
    thanks.

    hi,
         the reboot of a system can be of broadly two types.
    1) done by the user
    2) abrupt shutdown say due to power failure.
       if you closely look at the file inittab under /etc/ you will find different files are executed for different run levels. For powerfailure also there is a script called powerfail under /etc/init.d/. with different options.
    under init.d directory you can find all the scripts for different run levlels starting from rc0-rc6, halt named script  , and reboot named script.
    . So to solve your problem you can write a script and execute it under this files. Changing all these files are not at all recommended as any mistake can lead to a system halt state. But still we can make the changes if we know what are we doing and definitely you can try if are having a test system with you.
    the logic will go something like this:-->
    1) for shutdown
        respawn a new shell
        login as <sid>adm
        execute the command i.e stopsap
        exit from that user
    same goes for startup also.
    now only you have to run this script in the appropriate files at appropriate places(most important).
    but the main problem comes when system goes down as sap system takes time to stop so you have to make your OS wait uptill that which may be a tedious task.
    . the above discussion was keeping SUSE linux enterprise server in mind.
    Please do not make any changes in the above mentioned file if you  are running a crucial 
    system on that OS. try only on  a test system.
    revert back in case of any query..
    cheers,
    yatindra
    null

  • Creating a Perl script for SAP sytem profile parameter

    Hi,
    I need to create a perl script for all th eprofile parameter to check as a security directive ,so that whenever the system is started it checks for this profile parameter.
    As per my company sap directive ,these are the profile parameter i need to set.
    Can anyone let me know how to write the scripts.
    login/min_password_lng Minimum password length for user password 320 Min.
    8
    login/password_expiration_t
    ime
    Number of days between forced password change. 0 Max.
    35
    login/fails_to_session_end Number of invalid logon attempts allowed before the
    SAP GUI is disconnected.
    3 Max.
    3
    login/fails_to_user_lock Number of invalid logon attempts before the user id is
    automatically locked by the system.
    12 Max.
    6
    rdisp/gui_auto_logout Time, in seconds, that SAPGUI is automatically disconnected
    because of in-activity.
    0 60-
    7200
    21
    auth/test_mode Jump into report RSUSR400 at every authority check N N22
    auth/system_access_check_
    off
    Switch off automatic authority check for special ABAP
    commands
    0 0
    auth/no_check_in_some_ca
    ses
    Special authorization checks turned off by customer.
    Enabling of Profile Generator
    N/Y23 Y
    login/ext_security Security access controlled by external software. N N24
    auth/rfc_authority_check Permission for remote function calls from within ABAP
    programs
    0 1
    login/failed_user_auto_unlo
    ck
    Enable system function for automatic unlock of users
    at midnight. (0 = locks remain)
    0 0
    login/
    no_automatic_user_sapstar
    (as of 3.1h)
    login/no_automatic_user_sa
    p* (prior to 3.1h)
    Disable ability to logon as SAP* with PASS as password
    when SAP* deleted.
    0 125,26
    auth/tcodes_not_checked TCode checking for SU53 & SU56 analysis disabled (empty
    "SU5
    3
    Regards,
    Chetan.

    Here's a simple perl script that should help you get what it is you're looking for - you can add all the parameters you want to search for, I just took a few of them:
    #!/usr/bin/perl -w
    use strict;
    use sapnwrfc;
    SAPNW::Rfc->load_config;
    my $rfc = SAPNW::Rfc->rfc_connect;
    my @parms = (   "login/min_password_lng",
              "login/password_expiration_time",
              "login/fails_to_session_end",
              "login/fails_to_user_lock" );
    for my $x (0 .. $#parms) {
         my $rcc = $rfc->function_lookup("SXPG_PROFILE_PARAMETER_GET");
         my $slr = $rcc->create_function_call;
         $slr->PARAMETER_NAME($parms[$x]);
         $slr->invoke;
         print "Value for $parms[$x] is: ".$slr->PARAMETER_VALUE."\n";
    $rfc->disconnect();
    And running it, you'll get:
    [dhull@397 scripts]$ ./read-profile.pl
    Value for login/min_password_lng is: 7
    Value for login/password_expiration_time is: 90
    Value for login/fails_to_session_end is: 3
    Value for login/fails_to_user_lock is: 6
    [dhull@397 scripts]$
    If you need to get your perl environment read to make RFC calls to your SAP system, check my series of blogs on how to do so here:
    https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/u/251752730
    Cheers,
    David.

  • SAP Screen Personas problem in a script for FS00(G/L Account Display) screen

    We are facing a problem when we are developing a simple script for FS00(G/L Account Display) in SAP Screen Personas. Let me give you a brief of the problem:
    We have taken two text fields in the dashboard from which the values will be copied and will be pasted in corresponding text fields of G/L Account and Company Code in FS00 TCode.
    When we are giving both the values, then script is working fine and it will navigate to the customized Personas screen where all the details are shown.
    But when we are leaving any one/both fields blank and execute the script option, then the pop to enter G/L Account/Company Code is coming:
    If we are setting the basic FS00 TCode view as default then after the pop-up we are able to enter the respective G/L account number or company code and everything is running fine.
    If we are setting our customized personas screen as default screen, then the pop-up keeps on appearing and therefore we are not able to give the inputs (G/L account or company code).
    And even if somehow manage to get rid of the error and enter the correct GL account and Company Code then also the details are not displayed. The F4 search help to pick the G/L account number and company code is not working, somehow the Personas screen seems to be locked here.
    Please let us know if someone has already encountered this type of situation before and what should be the solution of this.

    Hi,
    You could ensure that both of the text fields are not empty on your 'dashboard' before executing the FS00 tcode. This would negate the popup from ever appearing.
    To do this you can use the "IF <text field control ID> Is Empty" statement in your script and then output a custom error message to another text box if the condition is true. then use an "IF <text field control ID> Is NOT Empty" statement to copy the value/s execute the FS00 tcode if the condition is true.
    Now if you're going to check multiple fields for entries before executing the FS00 you'll have to get a little more creative and do something like I did in one my scripts (thanks again to Steve Rumsby for the tips) and create a 'check field' where you can enter values for items checked successfully and then use a little bit of javascript to count up the checks and check the result before executing the next part of the script.
    Another idea is to check for the existence of the popup and navigate past it in your script, to do this you can use the "IF <control ID> control exists" statement.
    Either one should work.

  • Basic SQL query scripts for SAP B1

    hi guys,
    do you have any documents, guides or reference links regarding basic SQL query scripts for SAP B1?
    thanks and have a nice day!
    blake p.

    Hi
    You can also check SBONotes.com.
    For sql understanding , you can search in websearch - tsql and it will pop up with informations you need.
    You can also refer to forum once you understand the basic techniques
    Hope this helps
    Bishal

  • How to execute a MTS (Master Test Script) in SAP ECATT Test Configuration for multiple variants.

    I have a MTS (Master Test Script) which references 4 Test Scripts. As of now, I am able to run this MTS directly by opening it as a Test Script and running it for default test data.
    Now, I want to run this MTS in SAP ECATT Test Configuration for multiple variants/test data. I am not able to see any parameter if I enter MTS in the Test Configuration.
    Below thread is similar to my requirement but I am not able to understand the solution properly.
    eCATT - how to run multiple test scripts with input variables in different test scripts?
    Any help in this case would be highly appreciated.
    Thanks & Regards,
    Vaibhav Gupta

    I have a MTS (Master Test Script) which references 4 Test Scripts. As of now, I am able to run this MTS directly by opening it as a Test Script and running it for default test data.
    Now, I want to run this MTS in SAP ECATT Test Configuration for multiple variants/test data. I am not able to see any parameter if I enter MTS in the Test Configuration.
    Below thread is similar to my requirement but I am not able to understand the solution properly.
    eCATT - how to run multiple test scripts with input variables in different test scripts?
    Any help in this case would be highly appreciated.
    Thanks & Regards,
    Vaibhav Gupta

  • How to create a sap script for sales order header items?

    Hi friends i am totally new to scripts i have got a task where i have to create a sap script for sales order header items details, the clue that i have got is to create using MEDRUCK but i have got no idea please can any body help me with this task with any sample sap script?
    Points will be rwwared with out fail Thks in advance.

    Hi,
    The Standard Form NAme is RVORDER01
    Regards
    Sandipan

  • User Email Id on the SAP script for the balance confirmation

    User needs mail id on the SAP script for the balance confirmation
    I have checked the AR-->Correspondence but not able to figure out.
    Thanks

    Hi,
    Actually the issue is:
    User(Witty Lam) wants his official Email id while generating the SAP Script on header.
    We are able to get the Fax and Telephone number but Email id is not coming.
    Can you help me out in finding the place where we maintain the USER's phone, fax number and email id.
    I have identified the Structure and field i.e FSABE-INTAD
    My project is production support project..
    Thanks,
    Jittesh

Maybe you are looking for

  • Having a problem with ilife 08 and leopard screen saver

    Hi, Not sure if this is an osx leopard issue or a ilife 08 issue but before I did the upgrade I was able to use my entire iphoto library as random photos in the screensaver. Not it only let's me choose specific events or last import. it does not let

  • Strange PNG and TIFF Images in my Photo Library

    Several hundred icons have mysteriously appeared in my picture library. They are PNG files, and look like gaming icons, in multi colors. Some of the title descriptions are things like "Small Pop Up Arrow White" or "FTProgressRevealPressSelected." I c

  • Flat file upload has zero as dash -

    Hi, I have a .csv that I upload in a datasource. It has a "-" character for zero values. Is there a conversion routine to convert  a - to a 0? Or another way to handle this easily? thanks, Max

  • Create references to user_constraints or other applicable table...

    Hi , Is it possible to create a reference(foreign key) to the constraint_name column of user_constraints object or to other table of sys/system which keeps the constraint names created per user...???? I use Db 10g. Thanks, Simon

  • CAN'T USE DEVELOP SETTINGS IN BRIDGE

    HELLO, i am using cs3 extended and my camera is a canon 40d. i downloaded camera raw 4.2 and installed it. i am able to see my raw images in bridge but am not able to use the develop settings tab under the edit tab. it is greyed out. so any help woul