Notes 数据库到 MySQL(使用 CF?)/或如何获取 NSF 数据结构
我有一个商业 ColdFusion 应用程序,在 MySQL 数据库上运行。一位可能的新客户找到了我,他们已经在 Lotus Notes 环境(以及他们自己的数据库)中工作了很多年。当然,他们希望在迁移之前将数据迁移到我的应用程序。
我试图掌握如何全面了解当前数据库应用程序中的数据、结构和相互依赖性。是否有任何工具可以查看 NSF 文件的数据库结构(例如在 RDBMS 中),或者是否有使用 ColdFusion 等转储结构的工具...我对 Lotus Notes 没有任何实际经验(我同时拥有本地 Lotus 客户端及其数据库)。
我需要一个好的起点来确定是否可以找到迁移数据的方法。
有什么想法吗? 谢谢 巴特
I have a commercial ColdFusion application, running on a MySQL database. A possible new client has approached me, they have been working in a Lotus Notes environment (and their own database) for many years now. Ofcourse they want to migrate their data to my application, before making the move.
I'm trying to get a grip on how to get a thorough feeling of the data, structure and interdependencies in their current database-application. Are there any tools to see a database-structure (like in a RDBMS) of a NSF-file, or is there anyway to dump the structure using ColdFusion etc....I don't have any handson experience with Lotus Notes (I do in the meanwhile have a local Lotus client and their database).
I need a good startingpoint to be able to determine whether or not I can find a way to migrate the data.
Any ideas??
thanks
Bart
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要获取 Notes 中的数据,一个不错的选择是使用 NotesSQL,它可以是 在这里找到:
Notes 数据结构的快速概述如下:Notes 是一个以文档为中心的数据库,每个文档中都包含非关系数据。 Notes 数据库 (NSF) 包含任意数量的 Notes 文档,而 Notes 文档又包含任意数量的保存数据的项目。每个 Notes 文档可以有一组不同的项目,因此其中有不同的数据。虽然这听起来像是一团糟,但通常文档具有基于用于创建文档的表单的类似数据。
这就是为什么没有简单的方法从 Lotus Notes 获取数据的原因。还有一些其他选项,这些选项可能有用也可能没用,具体取决于您需要迁移的数据量。
我个人喜欢使用 XML 从 Lotus Notes 中提取数据。您可以通过在 Notes 数据库中创建 XML 视图来实现此目的。 IBM 有一个看起来很有帮助的教程。
使用 Java 或 LotusScript,您可以编写代码从文档中提取数据为您想要的任何格式(CSV、XML、TXT 等)。
如果数据不是很多,您可能会发现将数据转换为 Excel 格式是最简单的中间步骤。很久以前,我为 将数据从 Lotus Notes 导出到 Excel,这可能会对您有所帮助。或者,您可以使用 Lotus Notes 客户端中的“编辑 > 将所选内容复制到表”功能,将 Notes 视图中可见的内容复制到剪贴板,然后将其粘贴到 Excel 中。在这种情况下,您需要编辑视图,以便它们显示您需要的所有数据。
我希望这有帮助!
To get at the data in Notes, a good option is to use NotesSQL which can be found here:
A quick overview of the Notes data structure is this: Notes is a document-centric database, with non-relational data contained within each document. Notes Databases (NSFs) contain any number of Notes Documents, which in turn contain any number of items that hold data. Each Notes Document can have a different set of items, and thus different data in it. While that sounds like a horrible mess, usually the documents have similar data based on the form used to create the documents.
This all leads to why there is no simple way to get data out of Lotus Notes. There are a few other options, which may or may not be useful depending on how much data you have to migrate.
I personally like using XML to extract data from Lotus Notes. You can do so by creating XML views within a Notes database. IBM has a tutorial that looks helpful.
Using Java or LotusScript, you can write code to extract data from the documents to any format you wish (CSV, XML, TXT, etc)
If it's not a lot of data, you may find getting the data into an Excel format is the simplest intermediary step. Long ago I wrote an add-in tool for exporting data from Lotus Notes to Excel, which may help you. Or you can use the "Edit > Copy Selected To Table" feature in the Lotus Notes client to copy what is visible in a Notes View to the clipboard, and then paste that into Excel. In that scenario, you'd want to edit the views so they show all the data you need.
I hope this helps!