cancel
Showing results for 
Search instead for 
Did you mean: 

Backup of Database while in Use

baventjr
Explorer
0 Kudos
1,560

I have a 40gb database (SQL Anywhere 17) that I am trying to backup and have begun to get errors when validating a certain table. I am using a maintenance plan that runs when the database should be at the lowest level of use (3:45 am) but I can't get it to validate and do the backup. I have added some prevalidation commands to rebuild the indexes on the table that fails validation and they run successfully. It continually fails with this message:

The maintenance plan has ended because of the following error: Run time SQL error -- Validation of table "TRAV_MODS" has failed SQLSTATE: 40000 SQLCODE: -300 Maintenance plan Backup ZZZZZZ for YYYYY on XXXXXXX finished on 2020-01-15 at 03:50:36.470

Any ideas as to what I might try?

Accepted Solutions (0)

Answers (1)

Answers (1)

asa25
Product and Topic Expert
Product and Topic Expert
0 Kudos

Does the following information help you?

1958942 - Error: "Assertion failed: 123456" / SQLCODE -301 "Internal Database Error" - Handling an Assertion Failure

How to Salvage the database if there is no valid backup and the database starts, but assertion failures occur frequently during operation

Breck_Carter
Participant
0 Kudos

Did you post this to the wrong question?

BudDurland
Participant

Just my 2 cents, if you continue to have problems with validation, and dbbackup is having trouble, I would schedule some downtime and do a dbUnload / reload.

baventjr
Explorer
0 Kudos

Ok, I was finally able to get a backup without using validation. Now I need to test to see if it will validate before I unload and reload. I do need to schedule some downtime to unload and reload as you suggested. I think I have a grip on what I need to do now. Thanks for all your help.

Breck_Carter
Participant
0 Kudos

> schedule some downtime to unload and reload

For testing purposes, try copying your backup database and running the unload/reload on a different computer; e.g., use a USB drive and an ordinary workstation.

FWIW "40GB" is not big.

VolkerBarth
Contributor
0 Kudos

But just when the validation of the copy has failed, right?