Using Siebel Tools > Managing Repositories > Viewing, Renaming, Comparing, and Configuring Repositories >

Comparing Two Repository Files


You can use the SRFDiff utility to compare two repository files. The differences between these files can include new, deleted, or modified objects. The SRFDiff utility saves any modifications that it finds in an XML file. If it does not find any differences, then it does not create this file.

To compare two repository files

  1. Log in to Siebel Tools.
  2. Click the Help menu, and then click Technical Support.
  3. Make sure the repository files that you want to compare use the same locale and language.
  4. Make sure the repository files that you want to compare are part of the same major schema version.

    The SRFDiff utility validates only repository files that are part of the same major schema version. For example, it can validate repositories that each use a different minor schema version, such as 44.39.0.248 and 44.40.0.1, where 44 identifies the major schema version.

  5. Click the Tools menu, Utilities, and then click Compare SRFs.
  6. In the Compare SRFs dialog box, enter the following information:
    • Full path to the first repository file.
    • Full path to the second repository file.
    • Full path for the output file. If you do not specify a location, then the SRFDiff utility saves the output file to the SIEBEL_TOOLS_ROOT\OBJECTS folder.
  7. Click Compare.

    The SRFDiff utility does the following work:

    • Validates each repository for file parameters, such as file existence, version, and language.
    • Creates one or more of the following output files:
      • diff_srf1_srf2.xml. Includes a description of the differences between the repository files. It includes a list of new and modified objects. It might also include new objects that it finds in one repository but not in the other repository. It uses an attribute name and value list to display the differences that it finds during the comparison. You can use this information to identify a modified or new object.
      • deleted_records_diff_srf1_srf2.xml. Includes a description of the deleted objects. In includes the definitions of objects in one repository but not in the other repository.
  8. Analyze the differences in the xml file.

    You can manually inspect the results. A modified object includes the following comment:

    <!-- Changed

    A new object includes the following comment:

    <!-- Start: New object section
    -->

Using a Command-Line Interface to Start the SRF Differences Utility

You can use a command-line interface to start the SRFDiff Utility.

To use a command-line interface to start the SRF Differences Utility

  1. Open a command-line interface in the following folder:

    SIEBEL_TOOLS_ROOT\bin

  2. Enter the following command:

    siebdev /srfdiff "pathname1" "pathname2" "output_pathname"

    where:

    • pathname1 is the full path and file name of one of the repository files that you want to compare.
    • pathname2 is the full path and file name of one of the repository files that you want to compare.
    • output_pathname is the full path where the utility saves the output file.

      For example, you want to compare the siebel.srf file to the siebel_1.srf file, and that these files reside in the C:\Programs Files\Siebel Tools 8.1\OBJECTS\ENU\ folder. In this example, you enter the following command:

    siebdev /srfdiff "C:\Programs Files\Siebel Tools 8.1\OBJECTS\ENU\siebel.srf" "C:\Programs Files\Siebel Tools 8.1\OBJECTS\ENU\siebel_1.srf" "C:\Programs Files\Siebel Tools 8.1\OBJECTS\"

Using Siebel Tools Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices.