Oracle:仅导出模式
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4049657/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Oracle: exporting only schema
提问by domiSchenk
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!)
我有一个 Oracle 10g 数据库,现在我需要导出,如果可能的话,只导出模式。
(只有带有索引等的表结构......没有数据!)
Is this possible with exp/imp or do I need expdp/impdp?
这可以用 exp/imp 还是我需要 expdp/impdp?
Greets
问候
回答by Alex Poole
回答by Rene
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.
如果您只对表定义及其约束和索引感兴趣,您还可以使用 Oracle 的 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.
在 SQL Developer 4.0 中,这是在工具 | 下。数据库导出... 在向导的第一页上,确保选中“导出 DDL”而未选中“导出数据”。请注意,这允许您导出所有类型的数据库对象;如果您喜欢在“对象类型”页面上,您可以将其限制为仅表格和索引。
回答by popalka
Check scheme2ddl tool from oracle-ddl2svnbundle.
从oracle-ddl2svn包中检查 scheme2ddl 工具。
scheme2ddlis 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
scheme2ddl是用于在 ddl 脚本集中导出 oracle 模式的命令行实用程序。通过基本命令行选项或高级 XML 配置提供大量配置