schemacrawler

Can I get schemacrawler to ignore the schema name?


I'm attempting to make a comparison of two Oracle DBs - I'm running a report on two different schema names - in my case, a schema prefix. E.g. Using:

-schemas=FOO.*

then

-schemas=BAR.*

Is there a way of hiding this prefix from the report, so that it isn't shown as an obvious difference when comparing the two reports?

I know I can use the 'unimportant' text feature in Beyond Compare, but it would be nice to cover this upfront.

I have a feeling that I'm missing something obvious, or maybe no one ever requires this as the schema name is fairly fundamental. I suppose I am just comparing across schemas.

If it is in the help, I have probably misunderstood what I have read.

Any hints would be welcome.

Many thanks.


Solution

  • Of course, this was answered in an obvious place...

    SchemaCrawler HowTo

    How to hide catalog and schema names in text output

    Change the configuration for the SchemaCrawler schemacrawler.format.show_unqualified_names=true in the schemacrawler.config.properties file. This setting will show unqualified names of database objects such as tables and prcodures. That is, the catalog and schema names will not be displayed. Use with care, especially if you have foreign keys that reference tables in other schemas, or synonyms.

    However, in my situation, the output was actually within returned SQL and procedures etc, so is fundamental to what the DB is holding. As far as I can see, my best way is to use Beyond Compare or something similar to strip these small strings out to aid in the comparison.