SQL Anywhere 11.0.1.2837 (Windows 2008 R1 64bit)
We run dbvalid on a backup of a database. The database has two dbspaces, total size is 26GB.
Backup is performed using:
"%SQLANY11%\bin64\dbbackup.exe"-krecover-s-c"links=tcpip;dsn=dbbackup"E:\backups\db-y-r
Database validation is performed using:
"%SQLANY11%\bin64\dbvalid.exe"-c"dbf=E:\backups\db\database.db;uid=validator;pwd=validator;dbs=-ds E:\backups\db"
A recent backup that was validated raised some errors like so:
Databasevalidationfailedforpage0046df32ofdatabasefile"E:\backups\db\databaseLogs.db"Databasevalidationfailedforpage0046df33ofdatabasefile"E:\backups\db\databaseLogs.db"
When running the exact same dbvalid command a second time on the exact same database files, it still produced errors but for different pages. Like so:
Databasevalidationfailedforpage0046e141ofdatabasefile"E:\backups\db\databaseLogs.db"Databasevalidationfailedforpage0046e142ofdatabasefile"E:\backups\db\databaseLogs.db"
But then also produced the following:
VALIDATETABLE"Database"."ExampleTable"Primarykeyfor"ExampleTable"hasinvalidorduplicateindexentries
Does that sound correct? I would've assumed that dbvalid would've returned the exact same errors in both runs?
(note - I've changed db names, uids, pwds and table names to protect the innocent)