Table of Contents

Search

  1. Preface
  2. Introduction
  3. Getting Started with Repository Manager
  4. Validating Metadata
  5. Promoting Changes Between Repositories
  6. Importing Design Objects
  7. Exporting Repositories
  8. Common Warehouse Model Support
  9. Appendix A: Design Objects Reference
  10. Appendix B: Change List Reference
  11. Appendix C: MetCommand Reference

Example Script

Example Script

The following code shows a Windows batch script that makes various MetCommand calls. You can adapt this script using your schema names.
REM Sample Windows batch script using METCommand echo off set target_ors=localhost-orcl-target_ors set source_ors=localhost-orcl-newtest1 set changelist_file=changelist1.change.xml cmd /c metcommand -validateMetadata -targetOrsId %source_ors% IF NOT %ERRORLEVEL% == 0 GOTO METCOMMAND_ERRORED cmd /c metcommand -validateMetadata -targetOrsId %target_ors% IF NOT %ERRORLEVEL% == 0 GOTO METCOMMAND_ERRORED cmd /c metcommand -createChangeList -targetOrsId %target_ors% -sourceOrsId %source_ors% -outputFilename %changelist_file% IF NOT %ERRORLEVEL% == 0 GOTO METCOMMAND_ERRORED cmd /c metcommand -validateChangeList -targetOrsId %target_ors% -sourceXmlFilename %changelist_file% IF NOT %ERRORLEVEL% == 0 GOTO METCOMMAND_ERRORED cmd /c metcommand -applyChangeList -targetOrsId %target_ors% -sourceXmlFilename %changelist_file% IF NOT %ERRORLEVEL% == 0 GOTO METCOMMAND_ERRORED cmd /c metcommand -validateMetadata -targetOrsId %target_ors% IF NOT %ERRORLEVEL% == 0 GOTO METCOMMAND_ERRORED GOTO DONE :METCOMMAND_ERRORED ECHO MetCommand Failed :DONE ECHO Done

0 COMMENTS

We’d like to hear from you!