1. 问题
2.解决办法
load database msgdb from "compress::/usr/u/nweng/msgdb.cmp"
3.原因
备份文件是压缩备份的,所以。。。。
This usually indicates that the file is either not an ASE dump file at all, or is a dump file created using the "compress::" backupserver API module (or some other custom backupserver API module).
诊断办法
On UNIX systems, run the "strings" utility on the dump file and pipe to the "more" utility. If this is a normal dump file (you might want to compare outputs doing the same thing to some known good dump files), you will typically see about 18 lines of readable text including the values "VOl1", "HDR1", the name of the databse, "HDR2", the name of the database, "EOF1", EOF2", "EOF3", "VOL1", "USTH", and versions strings for an ASE and a Backupserver, followed by some system table names. (sample output here).
假设备份文件是 "/work/model.dmp"
bret-sun2% strings /work/model.dmp | head -30
VOL1 0 7
HDR1model132540832B
000100 13254 13254
Sybase 0832B
HDR2F
bret-sun2% strings /work/model.cmp.dmp | head -30
`]Gu7> H d ; ) , K
PbYz
. +PB 4,
ei n_
~mJ X? MKX
I
9g
s