Creating an Appset Alert via sql or service

I am looking for a way for our IT department to send me an message / alert when an appset goes off line and comes back on line after scheduled over night processing finishes. Does anyone have any ideas on how to accomplish this?  Whether it be through SQL Alert or Service Alert.

Hi,
This status of the Application set is stored in a SQL table indicating whether it is online or offline. You could create a trigger on the change of the value or have a service check this value and depending on that send out a mail.
Hope this helps.
Santosh

Similar Messages

  • Email alert if SQL Server Services stop abruptly

    Hi,
    I am a SQL Server DBA and I am currently working on setting up email alerts in case if SQL Server services stop abruptly.I have currently written a VB script which runs every 1 hr and checks if a SQL Server Service is running or not. This VB Script runs
    with the help of Windows Task Scheduler.In case if a SQL Server service has stopped, this VB script immediately sends an email via. SMTP Server.
    Please let me know if this is a good solution or is there any other better solution or is there any feature available in SQL/windows using which the same can be achieved. 
    Environment:
    SQL 2008 R2
    OS: Windows Server 2008
    Thanks a lot in advance :)
    Regards,
    Tauhid S Shaikh 

    Hi Tauhid,
    I do have same requirement, please could you share the code.
    Regards
    Siraj Ahmed  

  • Not able to create row in HANA via .create or ajax call (oData Services)

    Hello Experts,
    SYSTEM: AWS (Amazone Cloud with HANA SPS06), tunneling via VPN. My HANA-Studio is rev.70 with the "Kepler" addons. I´m the owner of this Schema and granted the necessary privliegues to the __SYS_REPO User.
    The following issues when I try to add a row with SAPUI5 - GUI:
    The following code are in the index.controller.js implemented and triggered by a button:
    Further to the developer guide (SAPUI5....) there is a create Statement to add rows into the Table in HANA. I tried the following:
    //Einfacher Datensatz welcher in die HANA geschrieben werden sollte:
    var oModel = new sap.ui.model.odata.ODataModel 
    ("..(censored)../BL_TI/2005/zaginfothek/Opportunities.xsodata", false);
    var oEntry = {};
    oEntry.id = 7777;
    oEntry.LfdNr=1;
    oEntry.Customer=2;
    oEntry.Thema=3;
    oEntry.Leadueber=4;
    oEntry.Owner=5;
    oEntry.MarketDeveloper=6;
    oEntry.ThemenfokusnachBL=7;
    oEntry.Industry=8;
    oEntry.PDs=9;
    oEntry.Revenue=0;
    oEntry.Probability=1;
    oEntry.ProbableRevenue=2;
    oEntry.Start=3;
    oEntry.Finish=4;
    oEntry.Duration=5;
    oEntry.Phase=6;
    oEntry.Status=7;
    oEntry.ATPDecision=8;
    oEntry.Date=9;
    oEntry.SupplyChain=0;
    oEntry.Technology=1;
    oEntry.Region=2;
    oEntry.Kontaktquelle=3;
    oEntry.CASStatus=4;
    oEntry.Angebotsnummer=5;
    oEntry.Archiv=6;
    oEntry.Angebotabgelegt=7;
    oEntry.LeadmeldunganSAP=8;
    oEntry.ArtderAnfrage=9;
    oEntry.tmstmp= "/Date(1390557603727)/";
    //Instantzierung mit Anhang Opportunities
    oModel.create('/Opportunities', oEntry, nullfunction(){
    alert("Create successful");
               },function(e){
    for (var property in e.d){
    alert(property + "=" + e.d[property] + oEntry + "failed"); 
    I get the following Errormessage:
    ERROR: 2014-03-17 12:51:52 The following problem occurred: HTTP request failed501,Not Implemented,<?xml version="1.0" encoding="utf-8" standalone="yes"?><error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><code/><message xml:lang="en-US">Feature not supported.</message></error> -
    After this I tried it with an ajax call:
    var aUrl = '..(censored)../BL_TI/2005/zaginfothek/Opportunities.xsodata/Opportunities';
    //all in one ajax – Statement included and tried to create the row via POST:
    jQuery.ajax({
    method:'POST',
    url: aUrl,
    data: {"id": "7778",
    "LfdNr" : "1" ,
    "Customer" : "2",
    "Thema" : "3" ,
    "Leadueber" : "4",
    "Owner" : "5",
    "MarketDeveloper" : "6",
    "ThemenfokusnachBL" : "7",
    "Industry" : "8",
    "PDs" : "9",
    "Revenue" : "0",
    "Probability" : "1",
    "ProbableRevenue" : "2",
    "Start" : "3",
    "Finish" : "4",
    "Duration" : "5",
    "Phase" : "6",
    "Status" : "7",
    "ATPDecision" : "8",
    "Date": "9",
    "SupplyChain" : "0",
    "Technology" : "1",
    "Region" : "2",
    "Kontaktquelle" : "3",
    "CASStatus" : "4",
    "Angebotsnummer" : "5",
    "Archiv" : "6",
    "Angebotabgelegt" : "7",
    "LeadmeldunganSAP" : "8",
    "ArtderAnfrage" : "9",
    "tmstmp": "/Date(1390557603727)/"
    contentType: 'application/json',
    dataType: 'json',
    success: function(e){
    alert(e.response + "success");
    error: function onErrorCall(jqXHR, textStatus, errorThrown){
    alert(jqXHR.status);
    alert(aUrl);
    sap.ui.commons.MessageBox.show(jqXHR.status,   
    "ERROR",  
    "Error in calling Service" );   
    // return;  
    The last statement with ajax send me a success message back, but there is still no row added in the HANA.
    Has anyone an idea what´s going wrong?
    I woulb be happy for any hints, thanks
    André

    Hi Ben,
    well I tried out your code and it works with an small correction of your insert:
    save: function(){
            var oData = new sap.ui.model.odata.ODataModel('...censored.../BL_TI/2005/TEST_USER/Opportunities.xsodata', true); 
            // New user panel 
    //        var pnlUser = new sap.ui.commons.Panel({text: "User-Data"}); 
    //        var tfUserId = new sap.ui.commons.TextField({placeholder: "User-Id"}); 
    //        var tfUserName = new sap.ui.commons.TextField({placeholder: "User-Name"}); 
    //        var btnSave = new sap.ui.commons.Button({text: "Save"}); 
    //        pnlUser.addContent(tfUserId).addContent(tfUserName).addContent(btnSave); 
    //        btnSave.attachPress(function() { 
            var entry = {}; 
            entry.ID = "3"; //tfUserId.getValue(); 
            entry.USERNAME = "4"; //tfUserName.getValue(); 
            oData.create('/USER', entry, null, 
                    function() { 
                alert("Create successful"); 
            function() { 
                alert("Create failed"); 
    Try to write your id instead of  3 -> "3" That was the only what I´ve changed.
    Greetz,
    André

  • Creating PL/SQL web services from PL/SQL records

    Hello
    Jdeveloper does not allow to create web services from pl/sql packages that use PL/SQL records.to do this,we have to use the jpublisher ?without using the jpublisher,if we create a webservice then the following error is displayed in the web service xml output file.
    <faultstring>Internal Server Error (Caught exception while handling request: java.rmi.RemoteException: java.sql.SQLException: ORA-06550: line 1, column 49: PLS-00181: unsupported preprocessor directive '$WS_SP_EVEN' )</faultstring>
    </env:Fault>
    Could any one suggest me, how to solve the above issue..?
    Regards
    Malathi

    Thank you, with db adapter it was working and also
    pl/sql web-services working successfully with object types.If we want to send the web-services to the client, do we need to send the entire folder that is created in the web-services folder of the external oc4j..?
    Creating the client process:
    we are using the wsdl file that is generated in the web-services and adding to the partner link to Invoke the operations of web-services. Is there any other way to invoke the webservices?Could any one please suggest me?
    Thanking you
    Malathi

  • Creating PL/SQL web services from object types

    Hello
    Jdeveloper, pl/sql web-services working successfully with object types.If we want to send the web-services to the client, do we need to send the entire folder that is created in the web-services folder of the external oc4j..?
    Creating the client process:
    we are using the wsdl file that is generated in the web-services and adding to the partner link to Invoke the operations of web-services. Is there any other way to invoke the webservices?Could any one please suggest me?
    Thanking you
    Malathi

    Hello
    Accessing the pl/sql webservices from the application server:
    I have created pl/sql webservice using the nested tables. This will insert the object data into database tables.after deplying the webservice into external oc4j, when I test the webservice locally with url: http://localmachine:8888/PL_SQL_WS-Nest_Obj_Webservice-context-root/ObjWebserviceSoapHttpPort
    The above web-services working and I am able to insert into the database tables.
    Same when I want to access through the application server, I have changed the wsdl file soap address as
    <soap:address location="http://10.91.20.7:8888/PL_SQL_WS-Nest_Obj_Webservice-context-root/ObjWebserviceSoapHttpPort"/>
    When I access this url, I am able to give the input data
    http://10.91.20.7:8888/PL_SQL_WS-Nest_Obj_Webservice-context-root/ObjWebserviceSoapHttpPort
    but the out from the web-service is:
    <env:Envelope
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <env:Fault
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <faultcode>env:Server</faultcode>
    <faultstring>Error creating target: DBConnImpMftest.ObjWebserviceUser</faultstring>
    <faultactor/>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    Err from the OC4j log:<PAYLOAD>
    <MSG_TEXT>An error occurred for port: {http://dbconnimpmftest/Nested_Webserv.wsdl}Nested_WebservSoapHttpPort: javax.xml.rpc.JAXRPCException: Error creating target: dbconnimpmftest.Nested_WebservUser.</MSG_TEXT>
    </PAYLOAD>
    Could any one help me to solve the above issue?
    Kind regards
    Malathi

  • How to determine via SQL who created the sales order

    Hello I am trying to determine via SQL who created the Sales Order.  I'm looking at the ADOC table but having a hard time determining which record points to the sales order creation.

    Hi Jimmy,
    Try this:
    select
         T0.[DocNum], T2.[DocDate], T2.[CardCode], T2.[CardName],
         T1.U_NAME as [User Name], T2.UpdateDate as [Cancelled Date]
    from
         ORDR T0
         inner join OUSR T1 on T0.UserSign = T1.UserID
         inner join ADOC T2 on T0.DocNum = T2.DocNum
    where
         T2.LogInstanc = (select min(LogInstanc) from ADOC T3 where T3.ObjType = 17 and T3.DocNum = T0.DocNum and T3.CANCELED = 'Y')
         and T2.CANCELED = 'Y'
         and T2.ObjType = 17
    group by
         T0.DocNum, T2.DocDate, T2.CardCode, T2.CardName, T1.U_NAME, T2.UpdateDate
    Kind Regards,
    Owen

  • Alert: SQL Server Service Broker or Database Mirroring Transport stopped

    Hi Team,
    I got this error message even no one DB configured as mirroring ???
    Alert: SQL Server Service Broker or Database Mirroring Transport stopped Priority: 0 Severity: 2 Resolution state: New
    Alert description: The Database Mirroring protocol transport has stopped listening for connections.

    Can you check the rule. By default the configurations are disabled state that is the reason you are getting the alert.
    If it's not configured properly then you might need to override it
    --Prashanth

  • Attempting to create a AQ$_JMS_MAP_MESSAGE via PL/SQL

    I'm attempting to create a AQ$_JMS_MAP_MESSAGE via PL/SQL but can't get it to work.
    I'm able to create a AQ$_JMS_MESSAGE and add it to an AQ (of the correct type) however the AQ$_JMS_MAP_MESSAGE can not be constructed in the same way as it does not have a CONSTRUCT method.
    Is it possible to create this type of JMS message with PL/SQL? The documentation seems to imply that it can be done.
    I have tried the following but get an error; the AQ table is of type SYS.AQ$_JMS_MAP_MESSAGE.
    =====================================================
    procedure addMessageToAQ AS
    --message   SYS.AQ$_JMS_MAP_MESSAGE;
    message SYS.AQ$_JMS_MESSAGE;
    eopt dbms_aq.enqueue_options_t;
    mprop dbms_aq.message_properties_t;
    enq_msgid raw(16);
    BEGIN
    message := SYS.AQ$_JMS_MESSAGE.CONSTRUCT(DBMS_AQ.JMS_MAP_MESSAGE);
    IF ( message.message_type = DBMS_AQ.JMS_MAP_MESSAGE) THEN
    DBMS_OUTPUT.PUT_LINE('The message is a map message');
    END IF;
    message.message_type := DBMS_AQ.JMS_MAP_MESSAGE;
    message.header.set_string_property('header1','hvalue1');
    message.header.set_string_property('header2','hvalue2');
    message.header.set_string_property('header3','hvalue3');
    message.set_string_property('content1', 'cvalue1');
    message.set_string_property('content2', 'cvalue2');
    message.set_string_property('content3', 'cvalue3');
    DBMS_AQ.enqueue(queue_name => 'PROCESS_PASSP_APL_Q',
    enqueue_options => eopt,
    message_properties => mprop,
    payload => message,
    msgid => enq_msgid);
    END;
    =====================================================
    ORA-25215: user_data type and queue type do not match
    ORA-06512: at "SYS.DBMS_AQ", line 204
    ORA-06512: at "BDEV1.PS2032_MVMNTHNDSHKEXTRCT", line 48
    ORA-06512: at "BDEV1.JDEV_TMP_PROC_1", line 3
    The message is a map message
    Process exited.

    As far as I know every object type in database has an implicit construct . It's just that nobody created some nice constructor. Take this example as a "hard way" to create message:
    -- jms_text_message related variables
    tmp_text_message SYS.AQ$_JMS_TEXT_MESSAGE;
    tmp_header SYS.AQ$_JMS_HEADER;
    tmp_array SYS.AQ$_JMS_USERPROPARRAY;
    -- AQ related variables
    enq_msgid RAW(16);
    eopt dbms_aq.enqueue_options_t;
    mprop dbms_aq.message_properties_t;
    -- get current date time, so it doesn't change during run of procedure
    current_datetime := TO_CHAR(SYSDATE,'DDMMYYYYHHMISS');
    -- initialize array
    tmp_array := SYS.AQ$_JMS_USERPROPARRAY(SYS.AQ$_JMS_USERPROPERTY('EVENT_TYPE', 100, 'PL_SQL', NULL, 27));
    -- create header
    tmp_header := SYS.AQ$_JMS_HEADER(SYS.AQ$_AGENT(NULL, NULL, 0), NULL, NULL, NULL, NULL, 0, tmp_array);
    -- create JMS_TEXT_MESSAGE
    tmp_text_message := SYS.AQ$_JMS_TEXT_MESSAGE(tmp_header,4,'AAAA',NULL);
    dbms_aq.enqueue(
    queue_name => 'job_queue',
    enqueue_options => eopt,
    message_properties => mprop,
    payload => tmp_text_message,
    msgid => enq_msgid);
    ...

  • Getting error while creating Customer Invoice Request via Web Service

    Hello,
    I am trying to create customer invoice request via web service.
    But I am getting the error message "No scheme configuration found for scheme '&CIRHP&' " continuously.
    It is working fine in reference tenant. But using the same payload its giving error in another tenant.
    Can you please tell me what is the root cause for this error?
    I have included the payload used in the prototype tenant(Payload.txt) and screen shot of the error.
    Thanks and Regards,
    Sriram

    Hi,
    Check the WSDL file is wellformed or not..You can test it using tools like XML Spy.
    Might be the attribute tag is missing something..If WSDL file is correct then, create proxy by selecting the WSDL file from local machine..
    Regards,
    Sunitha

  • Creating APEX pages via SQL scripts..

    Hi Guys,
    I want to create APEX pages via SQL Script. The main reason to have this option that I have couple of applications which has XML files for screen definition where I can read all screen properties (field types, sizes, caption, etc...)
    Is there any documentation or help stuff where I can find the APEX page definition tables? I found something like WWV tables but I couldnt figure it out properly...
    Any help ?
    Thanks,
    Osman...

    We have built our entire apex app in a similar way. We create the shell apex pages using apex (eg, Item Detail, Insert Item, etc.). Then we create a PL/SQL region on the page. The PL/SQL region simply calls a stored procedure to render the controls on the page. For example, our regions looks similar to this:
    begin
    apex_pkg.sp_render_page('ITEM_DETAIL',Param1,Param2,Param3);
    end;
    The sp_render_page procedure in the database generates the appropriate HTML for the page. This procedure reads meta data in the database (eg, field label, field size, field type, field position, etc.) and renders the same HTML that apex would render if the apex page was manually created. For example, in the procedure we use lines similar to these:
    HTP.p(apex_item.text(...))
    HTP.p(apex_item.select_list_from_query(...))
    Because the procedure is reading meta data, the apex page is dynamic and can be different for different users or clients.
    Darrin

  • Enable SQL Notification Services for BAM alerts , Biztalk 2010

    Hi,
    Enable SQL Notification Services for BAM alerts is greyed out.
    I need to enable bam alerts in BizTalk 2010.
    Regards,
    Sharmishtha

    Hi,
    If I understand correct, your problem is that the BAM Alerts configuration is greyed out in the BizTalk Configuration tool. If this is the problem it's due probably because you don't have the SQL Server 2005 Notification Services installed. Notification
    Services is required for BAM Alerts feature.
    You can take a look at the following link, even it's for multi-computer installation:
    http://social.technet.microsoft.com/wiki/contents/articles/1888.install-and-configure-bam-business-activity-monitoring-in-a-multi-computer-environment.aspx
    Best regards.

  • Tables created via SQL...

    There is a way to show information stored in a table creadted via SQL in the SBO Print Forms ?

    Hello!
    yes, this will work as such, but might not give you the
    correct values as there is no link between the table and the layout! Usually, it pulls simply the first value in the table.
    Or, you might be lucky that it works now, but not after an upgrade.
    Be careful when adding field with "ALT", if you encounter problems at any stage, you will not receive any support!
    When adding fields via "ALT", check if you can create manual links between the table and the layout via "next segment" and "link to".
    Kind regards

  • Early watch alert task not created on satellite system via SDCCN

    The task about EWA is not created on satellite system via SDCCN.
    The RFC back was created on Solution Manager and the user assigned to it has the following profiles:
    S_CUS_CMP (SAP_S_CUS_CMP) Read data
    S_CMSREG (SAP_S_CSMREG) -> Central system repository data
    S_BDLSM_READ (SAP_S_BDLSM_READ) -> SDCCN data
    SAP_SV_FDB_NOTIF_BC_ADMIN -> Service Desk messages
    SAP_SUPPDESK_CREATE -> Service Desk messages
    I have checked the RFC authorizations and Connection nothing is wrong.
    Do you folks have any clue about that issue?
    tks,
    Re

    Hello,
    Not really much information to go on. The Maintenance package tasks is intended to schedule the Refresh defintion and services SDCCN tasks. So is this tasks scheduled? Is this taks gettign any errors/warnings in the logs?
    The EWA task is created when the refresh service task runs and gets a list of the serivce sessions that need to be
    populated.
    You can run a refresh services task to see if there are any sessions to pull. If ther are no sessions, it could be a problem in SMSY defintions for the system. if the system is not delared 100% correctly in SMSY  you will not get an EWA session populated.
    In DSWP in the SOlution is the EWA for the SID red flagged? If so this means the data still needs to be colelcted from the satellite/managed sysetm. Does the installation number of the SID match the one in SMSY? If not you willnot get any sessions.
    Is the refresh session actually using the *BACK RFC to the intended Solution Manager ssystem and is it defined as the master in SDCCN RFC destinations?
    If you go to SE37 and run TH_SERVER and specify the SM_SIDCLNTnnn_BACK RFC, does it pull the server list?
    If so your back RFC is functioning properly and a logon is successful.
    Are the service defintions being replaced successfully when the Maintenance Package runs? Are they replaced when an upgrade was done? It could be the service defintions need to be replaced.
    But really more information is needed. I have covered off just some of the issues possible.
    Regards,
    Paul

  • Create a virtual classroom via Adobe Connect 9 Web Services

    Is it possible to create a virtual classroom via Adobe Connect 9 Web Services? I could not find a way in "Using Adobe Connect 9 Web Services" documentation.

    The answer of Jorma Jenning is almost correct. I investigated it myself and finally made a working solution.
    The trick is that virtual classroom does not have a special type, instead it is a "meeting inside trainings folder with the icon of virtual-classroom". Kinda strange logic and to add another level of hell the "trainings folder" is the one with the type "my-courses", so, finally, we get the the following workflow:
    1. Call h-ttps://example.com/api/xml?action=sco-shortcuts and filter sco-s until you find one with the type="my-courses" and remember its sco-id — this will be your folder-id.
    2. call  h-ttps://example.com/api/xml?action=sco-update&type=meeting&icon=virtual-classroom&name=October All Hands Meeting
              &folder-id=2006258750&date-begin=2006-10-01T09:00
              &date-end=2006-10-01T17:00&url-path=october
    The thing with icon is important.
    Note that if you call report-my-training service immediately after sco-update you won't see this virtual-classroom. This is because the default permissions do not allow that. Add yourself to the user list via permissions-update and it will appear in your training list. This is different from creating virtual classroom from web interface as there you are added as a host by default.

  • Scalability Issues for Creating Pl/sql Web Services

    While Creating Pl/Sql Web Services , jdeveloper automatically creates wrappers files for the same, When using complex types for pl/sql Procedures, the wrappers contain huge no of attributes , Will there be a scalability issue for such kind of complex PL/SQL API Web services, will there be a round trips to database in order to map the attributes of java wrapper files with the Pl/SQL API files
    Also there is something called as Public View Object VO, how different it is from the normal View Object,is there a specific way to create Public View Object and XSD file for that, or its just a normal VO exposed publicly?

    Hello
    Accessing the pl/sql webservices from the application server:
    I have created pl/sql webservice using the nested tables. This will insert the object data into database tables.after deplying the webservice into external oc4j, when I test the webservice locally with url: http://localmachine:8888/PL_SQL_WS-Nest_Obj_Webservice-context-root/ObjWebserviceSoapHttpPort
    The above web-services working and I am able to insert into the database tables.
    Same when I want to access through the application server, I have changed the wsdl file soap address as
    <soap:address location="http://10.91.20.7:8888/PL_SQL_WS-Nest_Obj_Webservice-context-root/ObjWebserviceSoapHttpPort"/>
    When I access this url, I am able to give the input data
    http://10.91.20.7:8888/PL_SQL_WS-Nest_Obj_Webservice-context-root/ObjWebserviceSoapHttpPort
    but the out from the web-service is:
    <env:Envelope
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <env:Fault
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <faultcode>env:Server</faultcode>
    <faultstring>Error creating target: DBConnImpMftest.ObjWebserviceUser</faultstring>
    <faultactor/>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    Err from the OC4j log:<PAYLOAD>
    <MSG_TEXT>An error occurred for port: {http://dbconnimpmftest/Nested_Webserv.wsdl}Nested_WebservSoapHttpPort: javax.xml.rpc.JAXRPCException: Error creating target: dbconnimpmftest.Nested_WebservUser.</MSG_TEXT>
    </PAYLOAD>
    Could any one help me to solve the above issue?
    Kind regards
    Malathi

Maybe you are looking for

  • Cannot open page on iPad 2 when I try to download Apple apps

    When I try to get an app I get a message that the page cannot be opened, Safari does not recognize the address but I am in apple.com?

  • I don't want my kindle app saved in icloud, what can I do

    I want to use my Kindle app however, I don't want my library saved in icloud, I just want the items on my device.  How can I accomplish this?

  • BEx Analyzer Not showing report result in canceling "Change variable Icon"

    Hi Experts, Do we have any settings in BEx Analyzer for retrive the Result set even after I click 'Change variable Icon' in Toolbar and cancel the variable pop-up window?? Eg: My query Result is displayed in Analyzer selecting some vaues in Selection

  • Dbxtool and clearcase-plugin

    Hi there, our company is considering tu upgrade our development chain to Solaris Studio 12.2 (possibly 12.3). In this context, we want to use dbxtool, e.g. to debug executables. As our company uses clearcase as revision control system, we've tried to

  • Videos Appear Black and Jagged

    I need help in playing AVI videos on Quicktime. Ever since I upgraded to Quicktime Pro, my AVI videos have not been playing. At first I got a white screen and audio only. And then I installed various components but it only made it so that the screen