The forum will experience an outage sometime between February 10 at 7:00pm EST and February 12 at 11:59 EST for installation of security updates. The actual time and duration of the outage are unknown but attempts will be made to minimize the downtime. We apologize for any inconvenience.

BH Hi, is it possible for the SQL Anywhere 16 to automatically send email alerts when one of the mirroring servers or arbiter fails? If yes, where can i find the instructions for that? Thanks so much. Aron

asked 25 Dec '13, 16:38

arony's gravatar image

arony
219141419
accept rate: 0%


There is no automatic method (i.e. method builtin to the SQL Anywhere product) that will send an email when a mirroring failover occurs, but you can easily do this yourself using the tools provided.

Here is one method that you could use to send an email when a failover occurs:

  • create a MirroringFailover event using the CREATE EVENT statement
  • in the event handler SQL code use xp_sendmail to send the email

See the documentation that I have linked for more information. The basic idea is that the MirroringFailover event will be triggered on the new mirroring partner when a failover has occurred. In the event you can do whatever you want: in your case you would simply use xp_sendmail to send the email to the recipient(s). The xp_sendmail documentation page shows an example on how to send email.

permanent link

answered 25 Dec '13, 17:22

Mark%20Culp's gravatar image

Mark Culp
22.3k9129262
accept rate: 40%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×26

question asked: 25 Dec '13, 16:38

question was seen: 628 times

last updated: 25 Dec '13, 17:22