Solved

sybase error : while loading database bad magic number

Posted on 2016-10-09
2
70 Views
Last Modified: 2016-10-10
Dears,
I got the following error when I was loading a database as usual:

 Volume validation error: bad magic number 0ءّ, expected USTH.

is it because I try to load dump from sybase ase 15.7 onto ase 15.0.3 ??
I read some thing like this :
The 'bad magic number' is usually raised when you attemp to load a backup with and older version of the backupserver than then backserver that made the backup

Loading database from higher version to lower version is possible but we can't use higher version features in this way.

I was sure the oposit is the right case i.e we can load dump from older version onto higher, but cannot load dump from higher version.
advice please.
0
Comment
Question by:suzn cas
2 Comments
 
LVL 17

Expert Comment

by:BudDurland
ID: 41836265
How are you migrating the data?  Are you doing a backup and trying to ready the backup with the other version, or are you doing a DBUNLOAD / DBLOAD process.  When changing version (up or down), DBUNLOAD / DBLOAD is preferred.
0
 
LVL 24

Accepted Solution

by:
Joe Woodhouse earned 500 total points
ID: 41836345
Sorry, the advice you read is wrong and what you thought is correct.

We cannot dump from a higher version and load into a lower version. This is straight out of the manuals.

Lower version to higher version is fine, and it will try to upgrade when you bring the database online. Upgrade-during-load has been stable for many years now and for any healthy database (i.e. no corruption) it works fine.

For what you're trying to do you will need some kind of physical rebuild, bcp out, scripts to recreate every object, and bcp in.
1

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
To form a query 10 405
SQL Left join on same table 4 315
How to get the table names associated with a server 3 74
set dsync and directio options according to device type 4 45
If you are looking at this article, you have most likely been hit by some version of ransomware and are trying to find out if there is anything you can do, or what way you should react - READ ON!
Ransomware continues to grow in reach and sophistication, putting data everywhere at risk. Learn how to avoid being caught in its sinister clutches with these 11 key tips.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question