Oracle 模式设计器
我不知道该应用程序的真实名称,但我想做的很简单,我有一个包含 50 多个表的 Oracle 数据库。我想得到他们的名字和字段名称,所以我认为使用设计器或像 mssql 这样的东西会很好。然后我可以轻松获取字段名称和表名称。我怎样才能做到这一点?
感谢您的帮助, 穆罕默德·谢里夫·托兹鲁
I don't know the real name of that application but what i want to do is so simple, i have an oracle database with more than 50 tables. I want to get their names also their field names, so i thought that it would be nice to use a designer or something like mssql has. Then i can get the field names and table names easily. How can i do that?
Thanks for the help,
Mehmet Şerif Tozlu
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果“获取表和字段名称”是指在程序内部,您需要通过任何您觉得更熟悉的 METADATA API 使用 Oracle 的 METADATA:JDBC、ADO.NET、ODBC,甚至对 METADATA 表(user_tables、 all_tables 等)。
如果“获取表和字段名称”是指检查它们的可视化工具,那么它们有很多。
希望它有所帮助。
If by "getting table and field names" you mean, inside a program, you need to use Oracle's METADATA through any METADATA API you feel more comfortable with: JDBC, ADO.NET, ODBC, or even performing queries against METADATA tables (user_tables, all_tables, etc).
If by "getting table and field names" you mean a visual tool to inspect them, there are a lot of them.
Hope it helps.
您可能想要生成多个图表,每个图表都包含系统功能部分的表,而不是一次输出所有 50 个表和所有列。在假设的系统中,这可能是“客户和帐户”、“银行交易”等等。有些表格可能出现在多个图表中。并非所有列都需要输出,特别是如果它们不属于系统的特定功能区域。
您可以使用适用于 Oracle 的 SchemaCrawler。 SchemaCrawler 允许您搜索并仅输出与正则表达式匹配的表和列,以及生成借助 GraphViz 绘制数据库图表。如果模式使用命名约定,它还会发现表之间的隐含关系。
Instead of outputting all 50 tables and all columns all at once, what you may want to do is to generate several diagrams, each containing tables for a functional part of your system. In a hypothetical system, this could be "client and accounts", "bank transactions", and so on. Some tables may appear in multiple diagrams. Not all columns may need to be outputted, especially if they do not belong to a particular functional area of your system.
You can use SchemaCrawler for Oracle. SchemaCrawler allows you to search for and only output tables and columns that match a regular expression, as well as to generate database diagrams, with the help of GraphViz. It also find implied relationships between tables if the schema uses a naming convention.