Kbase 3404: where is the size of the db stored?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
where is the size of the db stored?
890807-LRB01To find out the size of a version 4 database, you can do the
following:
od -x test.db +0x18 | more
The first 4 bytes form this output is the file size, for example:
0000 ffff
Then do the following:
adb -w test.db
0x18?X -- this returns the file size from above without the 0000
0x18?W -- returns output somewhat like: 00 00 00 60
which i sthe number of databse blocks
database blocks should equal
db size in bytes (from ls -l) / block size of machine
$q -- to leave adb
Progress Software Technical Support Note # 3404