Oracle:仅导出模式

发布于 2024-09-29 12:06:40 字数 124 浏览 1 评论 0原文

我有一个 Oracle 10g 数据库,现在我需要导出(如果可能的话)仅架构。
(只有带有索引等的表结构...没有数据!)

这可以使用 exp/imp 还是我需要 expdp/impdp?

问候

I have an Oracle 10g database, and now I need to export, if possible, only the schema.
(Only table structures with index etc... without data!)

Is this possible with exp/imp or do I need expdp/impdp?

Greets

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

谁的年少不轻狂 2024-10-06 12:06:41

可以使用exp,使用参数ROWS=N

10g 文档位于此处

不过,数据泵现在是首选;等效参数是CONTENT=METADATA_ONLY

It is possible with exp, using parameter ROWS=N.

10g documentation is here.

Data pump is preferred these days though; the equivalent parameter is CONTENT=METADATA_ONLY.

万人眼中万个我 2024-10-06 12:06:41

检查 oracle-ddl2svn 捆绑包中的 schema2ddl 工具。

scheme2ddl 是用于在 ddl 脚本集中导出 Oracle 模式的命令行实用程序。通过基本命令行选项或高级 XML 配置提供大量配置

Check scheme2ddl tool from oracle-ddl2svn bundle.

scheme2ddl is command line utility for export oracle schema in set of ddl scripts. provide lot of configurations via basic command line options or advanced XML configuration

别在捏我脸啦 2024-10-06 12:06:41

如果您只对表定义及其约束和索引感兴趣,您还可以使用 Oracle 的 SQL Developer 进行导出。

在 SQL Developer 4.0 中,它位于“工具”|“工具”下。数据库导出... 在向导的第一页上,确保选中“导出 DDL”而不选中“导出数据”。请注意,这允许您导出所有类型的数据库对象;如果您愿意,可以在“对象类型”页面上将其限制为仅表和索引。

If you are only interested in the table definitions with their constraints and indexes you can also do an export using Oracle's SQL Developer.

In SQL Developer 4.0, this is under Tools | Database Export... On the first page of the wizard, ensure that "Export DDL" is checked and "Export Data" is not. Note that this allows you to export all types of database objects; you can limit it to just tables and indices if you like on the "Object Types" page.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文