Does Golden Gate provide any Webservices to start and stop services?

Hi all,
We are trying to use GG in our application. But we need a way to start and stop services from java code.
Is there any Webservice interface or API to start and stop Golden gate services like GG manager, extract and replicat processes??
Thanks in advance for your help.
Yamini.

You can control this at a database level using EVENTACTIONS parameter.
Create a table at source & target called "EVENT" with field EVENT_TYPE ( example names only - please call it what you like ) .
at Replicat config actions based on the data passed into the EVENT_TYPE column
MAP GG_ADM.EVENT TARGET GG_ADM.EVENT, &
FILTER ( (@STREQ(@IF(@COLTEST(EVENT_TYPE,PRESENT),EVENT_TYPE,"No EVENT"),"STOP") = 1)), &
EVENTACTIONS (IGNORE , LOG,STOP);
You'll need a seperate replicat to handle the start
MAP GG_ADM.EVENT TARGET GG_ADM.EVENT, &
FILTER ( (@STREQ(@IF(@COLTEST(EVENT_TYPE,PRESENT),EVENT_TYPE,"No EVENT"),"START_APP_02") = 1)), &
EVENTACTIONS ((SHELL (${GG_HOME}/diroby/start.ksh R1APP_02 )));
Hope that helps

Similar Messages

  • Batch file to start and stop services

    I've setup a CF Probe on my Development Server to ensure my
    CF Production server is up and running (services = Apache and CF
    Application Server). It checks the PROD login page and if it times
    out in 30 sec the probe fails. I understand I can execute a file
    (batch file with net start and net stop) but the problem is I need
    to have the probe somehow point to the .bat file on the PROD server
    and not on the local machine. How can I remotely access this batch
    file and execute it? I don't know how to point to the file on the
    other server... can anyone help?

    Hi Ken,
    You had pointed me in the right direction regarding the
    psstools in order to create a batch file that can remotely start
    and stop services.
    i used the psexec command and am able to successfully restart
    the services needed remotely... however when i pick the file in the
    coldfusion administrator (in the probes section) how to i point to
    the batch file to run? it seems like the probe is not running the
    script like i want... the file is located on the c:\ so i entered
    c:\test2.bat...
    Thanks,
    Matt
    Matt,
    You should review the online help in the cfadmin for probes
    and the links it points you to in the developer's guide. Basically
    you need to define a new probe in the cfadmin by clicking the
    "Define New Probe" button. One of the probe's attributes will be
    what action. Define the action as a program and point it at a batch
    file running psexec. You will probably need to run CFMX as a
    specific user and not as localsystem, which is the default.

  • Starting and stopping services of SAP and database

    pls tell what are the Starting and stopping services of SAP and database

    Hi Ranga,
    The services dealing with SAP and database(Ex: Oracle in this case) are:
    SAP<SID>_<Instance No.>  (For ex: SAPECC_01)
    SAPOsCol
    Oracle<SID><No>Listener
    OracleCSSservice
    OracleService<SID>
    Reward points if it is helpful##
    Thanks & Regards,
    Santhosh P
    Please change the status to answered if you got the solution...
    Message was edited by:
            Santhosh Kumar P

  • Starting and Stopping Services Based on Network

    Hi everyone,
    This is something I've been playing with and I'd like to share it with you and get your thoughts.
    The services I want to run at any given point depend on what network I'm attached to. For example, if I'm at home, I'll want avahi-daemon and cupsd started but I won't need iptables, since I'm behind my router's firewall. On the other hand if I'm at an internet cafe I need iptables but not the other two.
    What I've done is set up a script in /etc/NetworkManager/dispatch.d which starts services based on the UUID of each connection (extracted from that connection's file in /etc/NetworkManager/system-connections.
    I'm currently using the following script:
    #!/bin/bash
    IF=$1
    STATUS=$2
    function start_service {
    for i in "$@"
    do
    if [ `/usr/bin/systemctl show "$i".service | grep -c "ActiveState=inactive"`=1 ]
    then
    /usr/bin/systemctl start "$i".service
    fi
    done
    function stop_service {
    for i in "$@"
    do
    if [ `/usr/bin/systemctl show "$i".service | grep -c "ActiveState=active"`=1 ]
    then
    /usr/bin/systemctl stop "$i".service
    fi
    done
    if [ "$IF" = "wlan0" ] && [ "$STATUS" = "up" ]; then
    UUID=`nmcli --nocheck -t --fields UUID con status`
    case $UUID in
    f5320fcd-43e2-4cc1-ba1a-9606f66b5332)
    start_service avahi-daemon cupsd
    logger "M5DKQ (home network) up"
    5bfff3c5-c349-436b-953b-90de15c854d7)
    start_service iptables
    logger "EVO (4G hotspot) up"
    40d74743-f809-41ce-821c-71f9f40b8513)
    logger "GuestAccess (office guest network) up"
    start_service iptables
    logger "Starting cafe-specific services"
    esac
    fi
    if [ "$IF" = "wlan0" ] && [ "$STATUS" = "down" ]; then
    stop_service avahi-daemon cupsd iptables
    logger "Stopped location-specific services"
    logger "wlan0 down"
    fi
    Is there a better way to do this, like maybe a systemd custom target? Is there a cleaner way to script this?
    Thanks in advance,

    Hi Ranga,
    The services dealing with SAP and database(Ex: Oracle in this case) are:
    SAP<SID>_<Instance No.>  (For ex: SAPECC_01)
    SAPOsCol
    Oracle<SID><No>Listener
    OracleCSSservice
    OracleService<SID>
    Reward points if it is helpful##
    Thanks & Regards,
    Santhosh P
    Please change the status to answered if you got the solution...
    Message was edited by:
            Santhosh Kumar P

  • EHPI not able to start and stop services shadowsystem

    All,
    I am working on an installation of EHP4 but am running in the following issue:
    When I get to the phase SHDINST_OS the EHPI is not able to stop and start the service for the shadowsystem. The ehpi log gives:
    Phase SHDINST_OS:
    SAPehpi> Starting subprocess sapstartsrv.exe with id 7348 at 20100512081320
    Environment: JAVA_HOME=C:\Program Files\Java\jdk1.5.0_19
    Environment: PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    Environment: Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;F:\usr\sap\HRS\SYS\exe\uc\NTAMD64;F:\usr\sap\HRS\SYS\exe\nuc\NTAMD64
    Environment: auth_shadow_upgrade=0
    Environment: dbs_mss_schema=hrs
    Service not started.
    Process with ID 8132 terminated with status -1
    The EHPI gives:
    An error occurred during the installation of the
    SAP service SAPHRS_03:
    Possibly the password for user .\SAPServiceHRS entered in phase
    INITPUT was wrong. You can reset it by calling 'SAPehpi set stdpar'.
    Try to execute SAPSTARTSRV.EXE manually using the following syntax:
    G:\EHPI\abap\exe\sapstartsrv.exe -r
    -p G:\EHPI\abap\HRS\SYS\profile\START_DVEBMGS03_NLDBHRS01 -s HRS -n 03
    -U .\SAPServiceHRS -P <PASSWORD> -e NLDBHRS01\hrsadm
    and check if the service SAPHRS_03 can be stopped and restarted.
    When I follow up on the sapstartsrv first I can start/create it but that when I restart the EHPI it fails again on the same issue.
    Anybody any ideas?
    the passwords given in the EHPI are the ones of the SAPService user in the windows environment
    Chris

    Hi
    Have you tried below option as suggested in logs ?
    > Possibly the password for user .\SAPServiceHRS entered in phase
    > INITPUT was wrong. You can reset it by calling 'SAPehpi set stdpar'.
    > Try to execute SAPSTARTSRV.EXE manually using the following syntax:
    > G:\EHPI\abap\exe\sapstartsrv.exe -r
    > -p G:\EHPI\abap\HRS\SYS\profile\START_DVEBMGS03_NLDBHRS01 -s HRS -n 03
    > -U .\SAPServiceHRS -P <PASSWORD> -e NLDBHRS01\hrsadm
    > and check if the service SAPHRS_03 can be stopped and restarted.
    >
    Thanks
    Sunny

  • Maxl Script to Start and Stop Service

    Hi All,
    to stop essbase service i had used below  script in maxl  but it did not work
    alter system shudown;
    is there any script that  i want to stop Essbase services through MAXL  ?
    is there any script i want to start essbase services through MAXL?
    Thanks

    Its as simple as this :
      alter system kill request all;
      alter system logout session all;
      alter system unload application all ;
      alter application 'App' disable connects;
    Use all these when you are trying to Isolate the system from users .
    But to answer your question Unload command is nothing but Stop , load is start !

  • How to create services start and stop automation script for diff servers

    Hi All,
    i want to create a bat file for automation purpose to start and stop services
    i have some services in 1st server aand some in 2nd server and some in 3rd servers.
    has you all know i have to follow sequences to start and stop services can any help me in creating .bat by linking 3 servers fo starting and stoping services.
    Thanks in advance
    Regards
    SM

    Hi,
    this is the list of start oder for services in 11.1.2.1 from the Installation and Configuration Guide
    1. Databases for repositories.
    2. Any corporate user directories that you plan to configure for use with Shared Services.
    3. Foundation Services Managed Server application server, which includes Shared Services,
    and EPM Workspace.
    4. Reporting and Analysis Framework — Agent Service (if required for your environment)
    5. Reporting and Analysis Framework Application Server (if required for your environment)
    6. Web server
    The remaining services and processes can be started in any order:
    1. Performance Management Architect Services
    2. Performance Management Architect application server
    3. Performance Management Architect Data Synchronizer application server
    4. Essbase Server
    5. Administration Services application server
    284 Starting and Stopping EPM System Products
    6. Integration Services Server
    7. Essbase Studio Server
    8. Provider Services application server
    9. Financial Reporting Services
    10. Financial Reporting application server
    11. Web Analysis application server
    12. Calculation Manager application server
    13. Planning application server and the Hyperion RMI Registry
    14. Financial Management service
    15. Financial Management Web application server
    16. Strategic Finance service
    17. Performance Scorecard application server
    18. Performance Scorecard Alerter application server
    19. Profitability and Cost Management application server
    to start services on different servers you can use the sc command in your batch file
    for eg
    sc \\10.121.201.21 start HypS9FrameworkAgent

  • Start and Stop a Windows Service From Java

    Is there any way to start and stop a Windows service from Java? The only post I found on it (http://forum.java.sun.com/thread.jspa?threadID=647509) had a link to one of the many aps that allow Java programs to be services, which is not what I am interested in doing.
    I am attempting to get data from performance counters from the Windows Performance Monitor into a Java ap without using JNI. I can get the data from C++ or a .net language pretty easily and was going to create a service that would listen for socket requests and feed back the data. However, I'd like to start and stop that service when my java code starts and stops. Is this possible? Would it make more sense to just use a .exe and Runtime.exec()?

    If it's only to start or stop a service then you could use the net command without any need for JNI.import java.io.*;
    public class MsWinSvc {
        static final String CMD_START = "cmd /c net start \"";
        static final String CMD_STOP = "cmd /c net stop \"";
        public static int startService(String serviceName) throws Exception {
            return execCmd(CMD_START + serviceName + "\"");
        public static int stopService(String serviceName) throws Exception {
            return execCmd(CMD_STOP + serviceName + "\"");
        static int execCmd(String cmdLine) throws Exception {
            Process process = Runtime.getRuntime().exec(cmdLine);
            StreamPumper outPumper = new StreamPumper(process.getInputStream(), System.out);
            StreamPumper errPumper = new StreamPumper(process.getErrorStream(), System.err);
            outPumper.start();
            errPumper.start();
            process.waitFor();
            outPumper.join();
            errPumper.join();
            return process.exitValue();
        static class StreamPumper extends Thread {       
            private InputStream is;
            private PrintStream os;
            public StreamPumper(InputStream is, PrintStream os) {
                this.is = is;
                this.os = os;
            public void run() {
                try {
                    BufferedReader br = new BufferedReader(new InputStreamReader(is));
                    String line;
                    while ((line = br.readLine()) != null)
                        os.println(line);
                catch (Exception e) {
                    e.printStackTrace();
    }Regards

  • VMM 2012: How to Configure Automatic Start and Stop Actions for a Virtual Machine?

    Does somebody know how to confgure Automatic Start and Stop Actions for a Virtual Machine in VMM 2012?
    I miss that option.

    Automatic Start or Automatic Restart actions are available for virtual machines running on a Hyper-V cluster from within Virtual Machine Manager.
    From within Virtual Machine Manager, bring up the Virtual Machine's properties:
    Click "Hardware Configuration"
    Click "Availability"
    Click "High", "Medium", or "Low" to enable automatic start/restart or
    Click "Do not restart automatically" to disable automatic start/restart
    Screenshot from VMM 2012 for a VM running in a Server 2012 R2 Hyper-V cluster:
    VMs running on a cluster have to be marked "Highly Available" and logically, Microsoft assumes that you'll want these VMs to be running all the time when this setting is selected.  If the cluster fails or needs to be restarted, you can set the priority
    by which a VM restarts, or you can set the VM to not restart at all when cluster services are restored by using the settings above.

  • Starting and Stopping an Instance

    We are looking at setting up our CF10 server such that each application will be in its own instance, and allowing the developers access to their own instance.  Is there any way to start and stop the instances from within the instance?  We are hoping that there is some way to do this without logging into the cfusion administrator to manage the restarts of each instance.  We are installed on Windows.
    Thanks!
    Jenn

    The administrator could run the following code:
    <cfscript>
    instanceName="bkbk";
    createObject("component", "CFIDE.adminapi.administrator").login("admin_password") ;
    serverInstanceObject=createObject("component", "CFIDE.adminapi.serverinstance");
    // start the instance of given name
    serverInstanceObject.startInstance(instanceName);
    // stop the instance of given name
    // serverInstanceObject.startInstance(instanceName);
    </cfscript>
    <!--- properties and methods of Serverinstance.cfc --->
    <!--- <cfdump var="#serverInstanceObject#">--->

  • My MacBook Pro, does not start after pushing start button. The side bar starts and stops at half way.

    My MacBook Pro, does not start after pushing start button. The side bar starts and stops at half way.

    Hy myneck,
    Happy Holidays!  The resource below may provide some steps to try if your MacBook Pro won't start.
    Troubleshooting: My computer won't turn on - Apple Support
    http://support.apple.com/en-us/TS1367
    This article discusses what to do if your Mac won't turn on. To differentiate this from a display issue, be sure that when you press the power button:
    You don't hear a startup chime.
    You don't hear any fan or drive noise.
    There is no video on your built-in or external display
    If your computer has power but doesn't display any video, it may have one or more of these similar symptoms when you press the power button:
    You may hear a startup chime.
    You may hear fan or drive noise.
    You may see a light from the Sleep LED (if your Mac has one).
    Pressing the Caps Lock key on the keyboard causes it to light. 
    If any of these display-related conditions occur, see Troubleshooting: My computer has no video instead. Otherwise, continue with this article.
    If your computer won't turn on, try each of these steps:
    Verify you have a good connection from your Mac to the wall outlet by confirming the power cord and adapter if present are securely connected and plugged in. To check if the wall outlet is working, plug in a lamp or other electrical device.
    If the wall outlet is working and you continue to have no power try another power cord or adapter if available. If it works you may need a replacement cord or adapter. 
    Note: See Apple Portables: Troubleshooting MagSafe adapters for further troubleshooting with MagSafe adapters.
    Disconnect all accessories that are plugged in to the computer, such as a printer, hub, or other mobile device.
    If your Mac supports user-installable memory, solid state drive, or hard drive, and you recently installed any of these, make sure they are installed correctly and are compatible with your computer. If possible, reinstall the original memory or drive into the computer to find out if the behavior persists afterwards.
    MacBook Pro: How to remove or install memory
    MacBook: How to remove or install memory
    Mac Pro: How to remove or install memory
    Mac mini: How to remove or install memory
    iMac (27-inch, Late 2012): Installing or replacing memory
    iMac: How to remove or install memory
    Reset the SMC.
    If you are still unable to start up your computer after trying each of these steps, visit an Apple Store or Apple Authorized Service Provider (AASP) for further diagnosis. If you plan to visit an Apple Retail Store, make a reservation at the Genius Bar using http://www.apple.com/retail/geniusbar/ (available in some countries only).Note: Diagnostic fees may apply for issues not covered under warranty or the AppleCare Protection Plan (APP).
    I hope this information helps ....
    - Judy

  • Decided to update iphone 4 to ios 5.1 and mid update it froze and the screen is black.  Phone does not respond to any combinations of home and power buttons, when plugged into computer it does not see it is plugged in, any ideas?

    Decided to update iphone 4 to ios 5.1 and mid update it froze and the screen is black.  Phone does not respond to any combinations of home and power buttons, when plugged into computer it does not see it is plugged in so I cannot restore or anything.  Looks like the screen is on it's just unresponsive and black obviously.  Has anyone had this problem?  I was updating via wifi right in front of my router and my computer.

    Spoke to a "senior advisor" in the Apple TV department.  Her suggestions:  change channel in router to minimize/eliminate wifi interference from other users; move router away from any metal - i.e., DVD player, phone modem, etc.; keep router away from wireless 2.4 gH phones, which are "notorious" for crashing wifi routers.  So she confirms that the problem is one of connection to router suddenly dropping out.
    My own feeling is that none of these fixes will do the trick, because it seems pretty clear that there is a hardware component here - the timing of the drops seems like an overheating issue.  It takes 35-40 minutes for the box to warm up enough for the first drop; then each consecutive drop happens quicker than the one before, as it heats up more.  Each time it drops, its tiny brain gets a little more scrambled; last night it finally wouldn't start up again at all.
    My suggestion is that everyone who is experiencing this problem, please call Apple tech support and ask to speak to a senior advisor in the Apple TV department.  Make them aware of this problem!

  • Starting and Stopping Instances from Netweaver Administrator does not work.

    When we go to our http://<host>:<port>/nwa and navigate to Systems. We see our instances, although we see status and UNKNOWN.
    Also, when we click down to see our server nodes, and try and restart them or stop them...we enter our user/pass for Unix and but it doesn't do anything.
    Does anyone know what is involved to get this functionality to work? We're not looking install CCMS or anything like that, we just want th ability to start and stop our cluster from the central instance web administration screens.
    Thanks,
    -Tim

    Just works for us, without needing any config.
    If your running unix the alternative method is to use a tool called JCMON, much better than NWA.
    log in as <sid>adm onto your host.
    jcmon pf=/usr/sap/PEP/SYS/profile/PEP_JC00_xxxxx
    for our production portal for example;
    Which allows you to do admin on your java instance only.
    use the menu options 10 - 21.
    Message was edited by:
            James Ibbotson
    Message was edited by:
            James Ibbotson

  • Using the spacebar for starting and stopping a clip does not work

    Hi!
    The spacebar for starting and stopping the playing of a clip in the viewer of a sequence in the timeline has a live of its own. Without changing any setings, it sometimes works, but mostly not. Is there a seeting, I have not figured out yet? While in a session with Final Cut Express, it does not change its behavior. It starts with a working or not working spacebar. The same applies to the arrows to go back and for a frame, or back and for a clip. If the spacebar does not work, the arrows do not work either.

    thanks everybody. But my spacebar and arrow keys still do not work.
    As uggested, I deleted the preferences in the library (which is also what is suggested by fcpbook.com/Misc1.html)
    I am used working with Final Cut for some time now. And just got myself a new iMac and the program. So everything is quite new. I did not change any settings so far.
    The first 2 days everything was fine.
    Then, one day, the spacebar and the arrow key stopped working. Not in the middle of a session, but when I started the FCE new. Inbetween, it worked for some time. Now, the spacebar is gone again.
    It's just the function of playing the clip that does not work. In whatever window (timeline, viewer). The function of the spacebar to make a space (for example in te name of clip or in a text file) works fine.
    I would not mind the spacebar that much, but I miss the arrow keys to go from frame to frame, or from clip. It's strange.

  • I am getting a service start and stop alert while doing the windows server updates.

    HI
    I am getting a service start and stop alert while doing the windows server updates. Services are wmiApSrv , WPDBusEnum. Can you please help me to under stand why i am getting the service start and stop alert.
    Thanks & Regards
    Abhilash K Joy

    Hi,
    The WMI Performance Adapter (wmiApSrv) service provides performance library information from Windows Management Instrumentation (WMI) providers to clients on the network. This service only runs when Performance Data Helper is activated.
    This service is installed by default and its startup type is Manual. When started in the default configuration it will log on using the Local System account.
    You can try troubleshooting the issue using Clean Boot to check if the issue is related to third-party software.
    How to perform a clean boot in Windows
    http://support.microsoft.com/kb/929135/en-us
    Best Regards,
    Mandy
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

Maybe you are looking for

  • HTML_DB.SEND - how to set a priority

    I use the HTML_DB.SEND in a trigger to automatically generate email when the system runs into certain conditions. Is there any way to set the priority of these emails to "HIGH"? It appears that the priority option is not available in HTLM_DB. Please

  • Means of transport change update to SNC5.1

    If we change the Means of trasport in r/3 sales order, then this update should be send to SNC5.1 Is this mapping is done thru ORDERCH ? We have done ORDERSP mappings for order confirmation. Now issue is that when we do the change in r/3 sales order i

  • Depreciation posted for the wrong asset class

    Hi Experts An asset was posted for the wrong asset class. Invoices for this asset were already posted and depreciation was posted for several months. Now we realize the mistake and want to correct it. How can we reverse the origanl documents includin

  • Can I swap out my Combo drive for a Super drive?

    Hey guys, I have 1GHz G4 iMac Dual USB & was wondering if I could replace the Combo Drive with a "Super" Drive. Any ideas?

  • Modfiying SQL in a viewObject in a differenat frame

    I wish to collect information from one frame and display the results of a query in another frame. My initial idea was to generate an event when the submit bottom was pressed, modify the SQL in the viewObject in the eventHandler class and then have th