Script to monitor database and send email alerts

Dear Gurus,
We have databases running on WIN2000 server. Can anyone provide me with a script (VBScript) or a batch file script which can check the database status and send an email alert depending upon the status of the database. Thanks in advance for the help!!

Hi,
I don't think this is the right forum for this.
The Oracle Scheduler can certainly schedule such a script to run regularly but the issue of creating such a script is more to do with general database maintenance. It seems as though a web search should reveal some similar scripts that can be used as a base.
Thanks,
Ravi.

Similar Messages

  • Generate XML report from the database and send EMail - BPEL 10g

    Hello,
    I was looking for the solution to generate XML report with the values from databaseadapter (select result from any table ) this result can be hundred's of records.
    so I have to generate the xml report from the result I received from DBADapter and send an email with that XML. I am stuck with how to generate XML ? Can any one please help me.
    Thank you very much

    Hello,
    I was looking for the solution to generate XML report with the values from databaseadapter (select result from any table ) this result can be hundred's of records.
    so I have to generate the xml report from the result I received from DBADapter and send an email with that XML. I am stuck with how to generate XML ? Can any one please help me.
    Thank you very much

  • Need a perl script which monitors a network folder and sends email when new files/folders arrived...

    I need a perl script (or something else better) which monitors a network folder and sends email when new files/folders arrived. I tried it in Automator but failed.
    Thanks!

    Yes. I tried it. But whenever I restart m Mac, the watch folder doesn't work until I reconnect to network or run the Automator... I need a simple system that automatically connects to the network and monitor the folder, even I restart the Mac.
    Thanks!

  • Create and send email issue with UCCX/IP-IVR 8.0 script

    Hi all,
    I am facing issue with create and send email option with script. In my call flow there is an option to offer call to key in their phone number and script need to pass that phone number to supervisor as an email. I have created the script but every time when I key in the phone number is pass through the unsuccessful node. Please find the script as attachment.
    Thanks and Regards,
    Ashfaque

    Hi How Yee,
    Which version of UCCX/IPIVR you are using and what is the type of license? Because this feature is only supported with Premium License. Please check the UCCX data sheet from the below link.
    http://www.cisco.com/en/US/partner/prod/collateral/voicesw/custcosw/ps5693/ps1846/data_sheet_c78-629807.html
    You will get the information under "Integrated IVR Features with Server Software" of table:4.
    Thanks and Regards,
    Ashfaque.

  • Getting backup battery to send email alerts....?

    Hello! I've got an APC RS1500 UPS hooked up to my Mac Mini server running 10.6.
    Obviously, I've already used System Preferences to configure how we want the battery to manage the power to the machine in the event of an outage. But since APC's PowerChute software (which, from what I understand, used to have the ability to send email alerts in such a case) only works up until about 10.4 until they started implementing the native support we have "lost" the ability for the server to send out an email alert whenever should there be a power issue.
    So far, I've found no native way to do this within OSX and the APC software that used to do this for you is no longer supported on 10.5 or 10.6.....how can we do this?
    I'm looking for something, anything, really to just get the server to send me an email should the power go down. Terminal command, Automator workflow, AppleScript, third party software....whatever.
    Just....something?
    Surely there are other people out there running Mac servers on a battery backup with some kind of notification system in place?
    Thanks in advance.

    Pingdom does what you are asking for.  It detects the web server outage.  It sends email, SMS or a tweets.  And it's a free service.
    If you're working on an internal server of some sort (or otherwise outside of what pingdom can reach), then this is going to involve a quick script, or some add-on software.
    If you're working on the script, do you have a local mail server running on this box?  (That'll make sending mail easier.)
    And do you want to know about every outage, or do you want notifications when the shutdown happens?  (If it's the latter that you're after, then you can send mail from the shutdown script.)
    Some of the more capable and less-interruptible power supplies have notification capabilities.  (eg: APC less-interruptible power supplies with the APC Web/SNMP card.)
    The apcupsd tool might be of interest, too.  Whether that update works on Mountain Lion, I don't know.

  • Someone has hacked into my account and sending emails (iCloud) pretending to be me.  I've changed my icloud password.  Do i need to do anything elase?

    Someone has hacked into my account and sending emails (iCloud) pretending to be me.  I've changed my icloud password.  Do i need to do anything else?

    You should consider enabling two-factor verification on your Apple ID, to further protect it. Without doing that, it's entirely possible that a hacker who gains access to your account in the future could take control of your Apple ID away from you entirely.
    You also should consider whether any confidential information might be stored in iCloud. If you have made the mistake of putting a list of passwords in the Notes app, for example, that list should be considered compromised, and all passwords should be changed (and removed from the Notes app).
    If you used the same password as your old iCloud password for other accounts, you need to change the password on all those accounts.
    You should also alert your contacts that your e-mail was compromised, so that they are cautious about trusting any attachments supposedly coming from you. Keep in mind that the spammer can continue to "spoof" your e-mail address on the From line of new e-mail messages, even without access to your e-mail account.

  • My ical calender does not send email alerts anymore, now what?

    The alerts are configured correctly, if I look at the alert it says that an email will be send (for ex. 09.00 the day before). However when the moment comes, the email does not. Can anyone help me with this one. This is the case since the upgrade to Mavericks.

    Hi Patrick, I have the same problem as does everybdy else I guess - it just wont work!
    I have set My Card in address book, tested it 100 times and whatever you do it ill not send an email alert? Everything I see on forums blah blahs about setting my card in address book and hey presto but none of it helps.
    Someone MUST know if it will ever work or if it is another issues that apple will never resolve, instead they will just ruin a perfectly nice looking operating system by updating it and making my phone icons and notes / bookshelf etc look like it was bought from Toys R Us instead of an Apple store!
    Did you find a solution to iCal not sending email alerts? DAVID.

  • Doubt about difference between "Send to sap" and "Send EWA Alerts to SAP"

    Hello All
    I hope that you can help me is juts a doubt about 2 check boxes
    I'm on setup of a EWA but when i´m on the configuration (dates, transfers ewa to sap, archiving of EWA etc) i see 2 check boxes
    that i don't know what is the difference
    The path is the following
    Tcode = DSWP --> Select the solution --> (the left column) Operations Setup --> Solution Monitoring --> EarlyWatch Alert  --> Setup EarlyWatch Alert
    Could you tell me what is the difference between "Send to SAP" and "Send EWA alerts to SAP" boxes?
    Thanks and have a nice day

    Hello Cherios,
    The "Send to SAP" check box is used when you want to sent a Production or Test (Quality) systems EWA data to SAP for analysis.
    Currently the "Send EWA Alerts to SAP" is not used at this time, and actually cannot be selected, and saved.
    There should now be no doubt about the two check box fields .
    Hope this information is helpful.
    Regards,
    Paul

  • Is there a way to disable 'Save as' and 'Send Email' function in Acrobat XI?

    Hi,
    Is there a way to disable 'Save as' and 'Send Email' function in Acrobat XI?
    Thnx in advance.

    I would hope there would be no way to disable Save AS that would reduce the applicationss capability. What are you trying to prevent happening?

  • After updating to the current versions of Adobe, I can no longer scan and send emails.

    After updating to the current versions of adobe, I can no longer scan and send emails nor can I open an attachment upon receiving an email.

    Capt Camo wrote:
    After updating to the current versions of adobe...
    What exactly is "adobe"?  Adobe is the name of a company that has hundreds of software products, each with a distinct name.
    You are posting in the Flash Player forum; do you really receive emails with Flash attachments?
    Flash Player also cannot scan or send emails.
    Finally you give no information regarding your operating system, email client, etc.

  • I am having problems with my outlook 2011. While i am able to check and SEND email on all my other devices ( Ipad, iphone, Macbook), I am unable to do so with my iMac. This problem started suddenly and the error message i get is error 5.7.8. Please Help

    I  am having problems with my outlook 2011. While i am able to check and SEND email on all my other devices ( Ipad, iphone, Macbook), I am unablesend any email with my iMac ( i can recieve email) . This problem started suddenly and the error message i get is error 5.7.8. I have read the threads on line and went into settings, even created a new profile, nothing helps...Please advice..is this something to do with my keychain Access?

    As Outlook is not an Apple product, you will find more helpers familiar with Outlook here:
    Office for Mac forums

  • Reg: HRforms converted to PDF and send email to individual employee

    Hi Experts,
    The requirement is convert the HR form output to pdf and send email to respective employee in standard transaction. I copied RPCEDTX0 to  ZRPCEDTX0 and include RPCEDS09 to ZRPCEDS09, the changes need to be done for individual PERNR, I have modified the include as shown below.
       CALL FUNCTION 'HRPY_PROCESS_SET_PERNR_STATUS' after this, i have written my code
    * start of changes ARAFIQUE
      DATA: formname TYPE tdsfname VALUE 'HR_ESS_PAYSLIP_TO_PDF',
            fm_name TYPE rs38l_fnam,
            pinfo LIKE pc407 OCCURS 0 WITH HEADER LINE,
            pform type tt_pc408,
            pform_l like pc408 OCCURS 0 WITH HEADER LINE.
      IF xform[] IS NOT INITIAL.
        pform_l = xform.
        APPEND pform_1 TO pform.
        pinfo-molga = '99'.
        pinfo-forml = 'ZACC'.
        APPEND pinfo.
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            formname                 = formname
    *       VARIANT                  = ' '
    *       DIRECT_CALL              = ' '
         IMPORTING
           fm_name                  = fm_name
         EXCEPTIONS
           no_form                  = 1
           no_function_module       = 2
           OTHERS                   = 3
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        CALL FUNCTION fm_name
          EXPORTING
            pinfo                      =
            pform                      = xform[]
    EXCEPTIONS
       FORMATTING_ERROR           = 1
       INTERNAL_ERROR             = 2
       SEND_ERROR                 = 3
       USER_CANCELED              = 4
       OTHERS                     = 5
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDIF.
    * end of changes ARAFIQUE
    I found out in internet that the smartform 'HR_ESS_PAYSLIP_TO_PDF' will convert to PDF and then i can send email to PERNRS.

    Hi Experts,
    I have written the below code, the payslip is getting converted to PDF and it is getting saved in presentation server. I need to pick this file and mail, I created a customized function module for sending mail. I'm not able to send email to external addresses.
    Please find my code below. I will post the function module later.
    * start of changes ARAFIQUE
      DATA: "formname TYPE tdsfname VALUE 'HR_ESS_PAYSLIP_TO_PDF',
            "fm_name TYPE rs38l_fnam,
            p_info LIKE pc407 OCCURS 0 WITH HEADER LINE,
            "pform type tt_pc408,
            p_form LIKE pc408 OCCURS 0 WITH HEADER LINE,
            pdf_content TYPE xstring,
            pdf_fsize TYPE i,
            lv_output_length TYPE i,
            lt_binary_data TYPE STANDARD TABLE OF sdokcntbin,
            it_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
            it_message LIKE solisti1 OCCURS 0 WITH HEADER LINE.
      IF xform[] IS NOT INITIAL.
        p_form[] = xform[].
        p_info-molga = '99'.
        p_info-forml = 'ZACC'.
        p_info-pcols = 1.
        p_info-psize = 1.
        APPEND p_info.
        CALL FUNCTION 'CONVERT_PAYSLIP_TO_PDF'
          EXPORTING
            p_info      = p_info
          IMPORTING
            pdf_content = pdf_content
            pdf_fsize   = pdf_fsize
          TABLES
            p_form      = p_form[]
          EXCEPTIONS
            empty_form  = 1
            OTHERS      = 2.
        IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
          EXPORTING
            buffer        = pdf_content
          IMPORTING
            output_length = lv_output_length
          TABLES
            binary_tab    = lt_binary_data.
        CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
              filename                        = 'C:\Test\Testing.pdf'
              filetype                        = 'BIN'
            TABLES
              data_tab                        = lt_binary_data
    *     FIELDNAMES                      =
           EXCEPTIONS
             file_write_error                = 1
             no_batch                        = 2
             gui_refuse_filetransfer         = 3
             invalid_type                    = 4
             no_authority                    = 5
             unknown_error                   = 6
             header_not_allowed              = 7
             separator_not_allowed           = 8
             filesize_not_allowed            = 9
             header_too_long                 = 10
             dp_error_create                 = 11
             dp_error_send                   = 12
             dp_error_write                  = 13
             unknown_dp_error                = 14
             access_denied                   = 15
             dp_out_of_memory                = 16
             disk_full                       = 17
             dp_timeout                      = 18
             file_not_found                  = 19
             dataprovider_exception          = 20
             control_flush_error             = 21
             OTHERS                          = 22
        it_receivers-receiver = 'gmailid'.
        it_receivers-rec_type = 'U'.
        it_receivers-com_type = 'INT'.
        APPEND it_receivers .
        it_message-line = 'Test for sending email'.
        APPEND it_message.
        CALL FUNCTION 'ZSEND_MAIL_ATTACHMENT'
          EXPORTING
            v_file_path  = 'C:\Test\Testing.pdf'
            v_subject    = 'Test Mail'
          TABLES
            it_receivers = it_receivers[]
            it_message   = it_message[].
        IF sy-subrc EQ 0.
          COMMIT WORK.
    *   Push mail out from SAP outbox
          SUBMIT rsconn01 WITH mode = 'INT' AND RETURN.
        ENDIF.

  • Notification Template  and send Email in oim 11g

    Hi All
    I need to send an email(html) format to users.I have created the a notificationtemplate through webconsole.
    I am intrested to know are there any api's available in 11 g to access this particular notification template in my java code and send email to a user using this template.
    iam referring to the class <oracle.iam.notification.vo.NotificationTemplate> and <Thor.API.OperationsInterface tcEmailOperationsIntf> classes but iam unable to access the notifcation template and send email.
    Edited by: Bipin Patil on Jul 1, 2011 12:34 AM

    Hi Rajiv Dewan
    Your link was helpful iam able to connect the the notification template.
    Now iam able to get the Template name,Subject,ID,Locale etc.
    I have one small question how to get the message from the template using this api,
    I referred the NotificationEvent,NotificationTemplate api's still iam not able to get message from my template and set message in my template.
    Is there any other API's i need to explore to get message from notification template.
    Thanks and Regards
    Bipin patill
    Edited by: Bipin Patil on Jul 1, 2011 5:29 AM

  • Converting html file into zip file and send email attaching zip file

    Hi Experts,
    I am trying to send email with attachment(html). Which contains more than 7MB. So, It is throwing an error like Size exceeded.
    So, Now i need to compress the data for less than 7MB.
    I decided to convert HTML File into ZIP File.
    Kindly suggest me to convert the HTML file into ZIP file and sending email with attached ZIP file.
    Correct answer rewarded,
    Thanks & Regards,
    N. HARISH KUMAR

    Hi Experts,
    *// HTML_TAB converting into ZIP File
       DATA  : zip_tool TYPE REF TO cl_abap_zip,
               filename TYPE string ,
               filename_zip TYPE string .
       DATA  : t_data_tab TYPE TABLE OF x255,
               bin_size TYPE i,
               buffer_x TYPE xstring,
               buffer_zip TYPE xstring.
    filename = text-007.                                                                          "'HTML_TAB
    *describe the attachment
       DESCRIBE TABLE html_tab LINES tab_lines.
       bin_size = tab_lines * 255.
       CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
         EXPORTING
           input_length = bin_size
         IMPORTING
           buffer       = buffer_x
         TABLES
           binary_tab   = html_tab.
       IF sy-subrc <> 0.
    *     message id sy-msgid type sy-msgty number sy-msgno
    *     with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       ENDIF.
    *create zip tool
       CREATE OBJECT zip_tool.
    *add binary file
       CALL METHOD zip_tool->add
         EXPORTING
           name    = 'FSSAI_MAIL.HTML'
           content = buffer_x.
    *get binary ZIP file
       CALL METHOD zip_tool->save
         RECEIVING
           zip = buffer_zip.
       CLEAR: t_data_tab[],bin_size.
       CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
         EXPORTING
           buffer        = buffer_zip
         IMPORTING
           output_length = bin_size
         TABLES
           binary_tab    = html_tab.
    Thanks & Regards,
    N. HARISH KUMAR

  • Can I have separate Style Formatting for viewing and sending emails?

    Hey All
    I was just wondering if it was possible to have separate style settings for viewing emails sent to you and sending emails to others.
    Basically I want to set up a kind of style template for all my outgoing emails but I don't necessarily want my incoming mail to be like that if you see where I am coming from.
    Any help would be greatly appreciated.
    Thanks
    Derek

    Thanks for that.
    That would certainly be an option. However after some further investigation I came across this article which shows me exactly what I was looking for:
    http://www.apple.com/pro/tips/mail_templates.html
    But thanks for your help though. It is really appreciated.
    Derek

Maybe you are looking for