If you experience problems running the BuildMetadataTemplate.bat batch file, you may wish to run the process in "dry run" mode. This generates all of the SQL statements required to create the external metadata database and saves those statements to a text file, but does not actually create anything in the external database.
This can be useful if you need to overcome limitations in the external database. For example, Oracle has a limit of 30 characters for object names. To work around any such issues, you can use dry run mode to write the SQL statements to a file, edit the statements in the file, and then execute the SQL statements against your database directly.
This might also be useful if corporate policy does not allow your database user to have CREATE TABLE privileges. In this case you can provide the file containing the SQL statements to your database administrator to execute against the database.
To use dry run mode:
- Complete all the standard steps to configure BuildMetadataTemplate.bat, and also databases.txt and metacolumns.txt.
- Before running BuildMetadataTemplate.bat, open the file in a text editor.
Go to the end of the file:
-dryrun <file>option to the end of the file.
<file>can either be a simple filename, a relative path, or an absolute path. For example:
- You can now run the batch process, edit the SQL output as necessary, and then execute it against your database.
- Once you have finished these steps you can continue with the standard process for setting up Metadata Server.