Using Siebel Tools > Archiving Objects > Exporting Objects to an Archive >

Using the Command Line to Export Objects to an Archive


You can use the command line to export objects to an archive.

To use the command line to export an archive

  1. Open a command line, and then navigate to the SIEBEL_TOOLS_ROOT\BIN folder.
  2. Use the following command to run the siebdev.exe file:

    siebdev /c config_file /d database /u user_name /p password /batchexport repository_name input_file_name log_file

    The following example exports the objects that the obj.txt input file specifies. It logs results to the export.log file:

    siebdev /c tools.cfg /d sample /u sadmin /p sadmin /batchexport "siebel repository" obj.txt export.log

    For more information about the input file, see Input File That Batch Export Uses.

Input File That Batch Export Uses

The batch export switch uses an input file that specifies the objects to export. This input file uses the following format. You cannot use a space before or after a comma in this file:

object_type,object_name,query_expression,file_name.sif

where:

  • object_type identifies the object type to export, such as Business Component.
  • object_name identifies the name of the object to export, such as Account.
  • query_expression can include any query that Siebel Tools can use. For more information, see Using the Query Menu to Run a Query.
  • file_name.sif can use an absolute file path or a relative file path to the current folder.

You can include multiple lines in the input file and each of these lines can specify to export multiple objects to a different SIF file. If you specify the same SIF export file in multiple lines, then batch export uses only the last export that you specify.

For example, consider the following line from an input file. In this example, the batch export switch exports all business components where the Name property is like *Account* to a repository file named export.sif:

Business Component,*Account*,export.sif

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