阻止 firebird .GDB 数据库被打开
我有一个 .GDB 格式的 firebird 数据库。
如果我设置一个 interbase 服务器并使用默认密码(例如 IB Expert)打开 .GDB,我可以打开数据库。
那么我想阻止数据库被其他软件打开,我该怎么做呢?
使用“gsec.exe”我可以添加和修改用户,但这并没有给我提供一个工具来阻止新的 firebird 实例打开数据库。
I have a firebird database in format .GDB.
If I setup a interbase server and I open the .GDB with (for ex. IB Expert) with the default password I can open the Database.
So I'd like to prevent the database to be opened by other softwares how could I do it?
with "gsec.exe" I can add and modify users, but this doesn't give me a tool to prevent a database to be opened by a new firebird instance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,您无法避免 Interbase 或 Firebird 实例打开 .GDB 或 .FDB 数据库。它是一个具有此类实例已知结构的文件(或文件组),并且只要(恶意)用户知道 SYSDBA 密码,就可以访问它。
说到这里,有一些建议:
还有另一种解决方案可能会部分帮助您:在存储数据之前加密并在读取数据时解密,但是它可能会在搜索数据时导致一些问题,因为您将无法使用某些索引(实际上只有 PK 和 FK 索引会)工作完美)。
我知道这不是您期望的答案,对此感到抱歉。也许其他人会提出替代的更好的解决方案。 :-)
HTH
As far as I know you can not avoid a .GDB or .FDB database to be opened by a Interbase or Firebird instance. It is a file (or group of files) with a known structure for such an instance and, provided the (malicious) user knows the SYSDBA password, it can be accessed.
Said this, some suggestions:
There is another solution that might help you partially: encrypting before storing data and decrypting when reading data, but it can cause some problems on searching through the data, since you will not be able to use some indexes (actually only PK and FK indexes will work flawlessly).
I know this is not the answer which you expected, so sorry about that. Maybe someone else will come with an alternative and better solution. :-)
HTH