简体   繁体   English

DOS数据库 - 需要帮助识别它是什么

[英]DOS Database - help needed to recognize what is it

today I got a copy of an old system from which I need to import data. 今天我得到了一个旧系统的副本,我需要从中导入数据。 The system is written in C and runs in DOS. 系统用C语言编写,在DOS下运行。 It uses some kind of database. 它使用某种数据库。 The file format seems to be rather simple(1 file = 1 table, header contains some description and then records, fields are delimited by 0 ASCII character, but it's not that simple as it seems). 文件格式似乎相当简单(1个文件= 1个表,标题包含一些描述然后记录,字段由0个ASCII字符分隔,但它并不像看起来那么简单)。

The question is: how to recognize what database is used? 问题是:如何识别使用的数据库?

Is there any kind of software that maybe opens many formats? 是否有任何类型的软件可能会打开许多​​格式?

Or is there any software that could help me? 或者有没有可以帮助我的软件?

Or any links to sites describing dos databases? 或者描述dos数据库的网站的任何链接?

Or just anything that can help will be appreciated:) 或者只是可以帮助的任何东西将被赞赏:)

PS> I can post some small files from the db if anyone wants to try guessing. PS>如果有人想尝试猜测,我可以从数据库发布一些小文件。

One small db file: 一个小的db文件:

http://www.2shared.com/file/9137583/f840f261/WCENNIK.html http://www.2shared.com/file/9137583/f840f261/WCENNIK.html

Almost every version of Unix including linux and Mac OS has a command called "file" that recognizes a huge range of file types by their content. 几乎每个Unix版本(包括Linux和Mac OS)都有一个名为“file”的命令,可以通过其内容识别大量文件类型。 Try copying one of the data files to a Mac OS or Linux computer and running 尝试将其中一个数据文件复制到Mac OS或Linux计算机并运行

file [filename]

from the command line. 从命令行。

Most of those older flat-file apps used proprietary(ie, non-standard) formats. 大多数旧的平面文件应用程序使用专有(即非标准)格式。 If the db is a standard format, you should see some kind of identifier close to the header that tells you what it is. 如果db是标准格式,您应该在标题附近看到某种标识符,告诉您它是什么。

If you can't determine the format by visually inspecting the file in a hex editor, your best bet is to trace through the C code that reads each record and reverse-engineer the format. 如果您无法通过在十六进制编辑器中直观地检查文件来确定格式,那么最好的办法是跟踪读取每条记录的C代码并对格式进行反向工程。

Sounds like a dBase file to me. 对我来说听起来像一个dBase文件。 They were very common. 它们很常见。 It's not necessary for DBF to appear in the header. DBF没有必要出现在标题中。 See the format description here: 请参阅此处的格式说明:

http://www.dbase.com/knowledgebase/int/db7_file_fmt.htm http://www.dbase.com/knowledgebase/int/db7_file_fmt.htm

edit Better link : 编辑更好的链接

http://www.clicketyclick.dk/databases/xbase/format/ http://www.clicketyclick.dk/databases/xbase/format/

What's the value of the first byte? 第一个字节的值是多少?

I just double checked some DBF files that I have on hand and they do not have DBF in the header. 我只是仔细检查了我手头的一些DBF文件,并且标题中没有DBF。

Is the original application functional? 原始应用程序是否有效? Poke around a bit, and you may find a way to export the data. 稍微捅一下,你可能会找到一种导出数据的方法。 Another thing to try is to "print" application reports to text file. 另一件要尝试的是将应用程序报告“打印”到文本文件中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM