Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

I have been able to repeat this behavior in version 10.0.1.3887 in a 32 bit environment and the most recent EBF (I was testing the upgrade on a 64 bit server). If I'm dumb enough to do anything during the full backup (which is set up as a triggered event), it usually hangs and never comes back. Usually what I'm doing is attempting to connect at approximately the same time as the backup kicks off, but occasionally I'm doing something else. Today the thing I did ran several minutes after the backup started, but was the first thing I did that touched replication. (I'm doing a disaster recover routine, so I was creating remote users for extraction).

When I say hangs and never comes back, I'm talking about a database and backup file that usually finishes in less than six minutes being unresponsive (you can't connect to it, whatever you were doing is hung) for over an hour before I give up on it. We're running "transaction log rename match" and it looks like the whole 41+G database file has finished copying, but the log file never copies to the mirror directory.

Is this a known problem? Is there some way to set the server so it will disconnect anyone connected when the backup is about to run and then won't let anyone connect until it's finished?

asked 05 Jan '11, 00:19

carolstone's gravatar image

carolstone
3413817
accept rate: 22%

1

Do you use "BACKUP DATABASE ... WAIT AFTER END" and may it be that any transactions are still active (or new transactions are started during the backup)? - To disable new connections (but not drop existing ones) before the backup, you can use "CALL SA_SERVER_OPTION( 'ConnsDisabled', 'Yes' );". As a sample, the latter is done by the default event for validation that is created for maintenance plans.

(05 Jan '11, 08:24) Volker Barth

I'm gonna go test all those suggestions. That sounds like just the thing. I'll let you know what I find!

(05 Jan '11, 16:25) carolstone

@Carol: Any results from your tests yet?

(10 Jan '11, 08:49) Mark Culp

As a result of the testing, we have added "wait before start" and "wait after end" to our daily backup. It has only been live for one backup so far, but in my testing, this gave us the behavior we really wanted and didn't go out to lunch without coming back. We'll play a bit with the sa_server_option later, as this appears to be exactly what we need for now, but I bet that would be very useful to solve some other little problems that creep up on us from time-to-time.

Edited 11/30/2011 to add: This has been working reliably now for months. We're very happy with it, even when we think the server is hung!

 backup database directory 'C:\\Database Server\\backups' transaction log rename match wait before start wait after end
permanent link

answered 10 Jan '11, 18:39

carolstone's gravatar image

carolstone
3413817
accept rate: 22%

edited 30 Nov '11, 15:37

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:

×84
×10

question asked: 05 Jan '11, 00:19

question was seen: 2,449 times

last updated: 30 Nov '11, 15:37