【问题标题】:How do I get SchemaCrawler to export actual table row data to the text output?如何让 SchemaCrawler 将实际表行数据导出到文本输出?
【发布时间】:2014-04-05 09:17:09
【问题描述】:

如何让SchemaCrawler 将实际表格行数据导出到文本输出?我在任何地方都找不到示例,也找不到引用此选项的文档,尽管我在 Internet 上看到了暗示可以完成的参考。我能够导出有关架构的信息,但它只是缺少数据。

我正在使用 Oracle 版本的 SchemaCrawler。我正在使用 schemacrawler.config.properties 但我无法在任何地方找到所有可能选项的列表。我使用的命令是这样的:

java.exe -classpath lib/*;. schemacrawler.tools.oracle.Main -infolevel=maximum
-database=%5 -g=schemacrawler.config.properties -user=%1 -password=%2 
-schemas=%5 -port=%4 -host=%3 -table_types=TABLE -command="SELECT * FROM %5.%6" 
-sortcolumns=true

【问题讨论】:

    标签: database-schema snapshot schemacrawler


    【解决方案1】:

    试试这个:

    java.exe -classpath lib/*;. schemacrawler.tools.oracle.Main -infolevel=maximum
    -database=%5 -g=schemacrawler.config.properties -user=%1 -password=%2 
    -schemas=%5 -port=%4 -host=%3 -table_types=TABLE -command=dump 
    -sortcolumns=true
    

    或者这个(查看命令的引号)

    java.exe -classpath lib/*;. schemacrawler.tools.oracle.Main -infolevel=maximum
    -database=%5 -g=schemacrawler.config.properties -user=%1 -password=%2 
    -schemas=%5 -port=%4 -host=%3 -table_types=TABLE "-command=SELECT * FROM %5.%6" 
    -sortcolumns=true
    

    Sualeh Fatehi,SchemaCrawler

    【讨论】:

    • 谢谢,这可能对我有点帮助。您的回答不准确,但我肯定可以正常工作。这是我的结果代码:gist.github.com/djangofan/9997619。您应该在示例中包含此批处理脚本作为示例。
    猜你喜欢
    • 2021-12-02
    • 2018-05-20
    • 1970-01-01
    • 2022-11-15
    • 1970-01-01
    • 1970-01-01
    • 2011-06-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多