未知的 Db 文件格式 - 找出答案的最佳方法?

Def*_*Day 6 database-design disk-structures

一个客户给了我他想要在我的项目中可视化的数据 - 但我不知道它是什么数据库格式。他也很不清楚......
我可以访问表结构,但不知道如何阅读它在。它绝对不是一个平面文件。

每个数据集有几个文件:

  • file.dat(迄今为止最大的)
  • file.id(小)
  • file.ind(*.dat 大小的一半)

*.dat 文件中的前几个字节是03 6E 02 14 14 15 19 00(以防使用幻数)。

这些扩展是否敲响了警钟?有什么软件可以确定格式吗?

ran*_*omx 5

如果您使用的是 *nix 系统,您可以尝试在每个文件上使用“strings”命令来查看内容。标题可能会给你一个线索。

例如

strings file.dat | head
Run Code Online (Sandbox Code Playgroud)

这是一个针对快速 sqlite3 数据库文件运行的示例。

~$ sqlite3 test.db
SQLite version 3.6.12
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> create table testtable (id INT);
sqlite> insert into testtable values (1);
sqlite> .quit
~$ strings test.db
SQLite format 3
Ktabletesttabletesttable
CREATE TABLE testtable (id INT)
Run Code Online (Sandbox Code Playgroud)


Mar*_*ian 4

我在 MapInfo Google 小组中找到了这个帖子。他们说,MapInfo(后来的 MicrosoftMaps 产品)数据库使用了类似的文件类型结构(id、ind、dat)。

最初的问题是:“如何从mapinfo所需的站点数据的excel文件创建选项卡文件、地图文件、dat文件、id文件、ind文件。使用哪个应用程序以及如何创建?”

答案是一些创建文件的方法。

我对他们不熟悉..但我希望这对你有一点帮助:-)。