7-4 Oracle Fusion Middleware Developers Guide for Oracle Universal Content Management
7.3.2 Precedence
IdcCommand uses precedence to resolve conflicts among the namevalue pairs within the LocalData section of the command file. When normal namevalue pairs are
parsed, they are assumed to be within the Properties LocalData tag. If the section contains HDA tags, the normal namevalue pairs take precedence over
namevalue pairs within the Properties LocalData tag.
For example, if foo=x is in a normal namevalue pair and foo=y is within the Properties LocalData tag, the namevalue pair foo=x takes precedence
because it is outside the tag.
7.3.3 Special Tags and Characters
These special tags and characters can be used in a command file.
7.4 Configuration Options
To run the IdcCommand utility, specify the following parameters on the command line or in the DomainHomeucmcsbinintradoc.cfg configuration file.
Special Character Description
IdcService=service_name Each section of the command file must specify the name of the
service it is calling. EOD
The end of data marker. The command file can include one or more sections separated with an end of data marker. For an
example, see Section 7.3.1, Command File Syntax.
The pound character placed at the beginning of a line indicates that the line is a comment.
\ The backslash is an escape character.
Include filename This tag enables you to include content from another file at the
spot where the Include tag is placed. This tag can be used to include a complete HDA file or to include shared namevalue
pairs. This inclusion takes the exact content of the specified file and places it in the location of the Include tag. A file can be
included as many times as desired and an included file may include other files. However, circular inclusions are not allowed.
Parameter Required?
Command Line Syntax Configuration File Syntax
Command File Yes
-f name.txt IdcCommandFile=name.txt
User Yes
-u sysadmin IdcCommandUserName=sysadmin
Log File No
-l C:logslog.txt IdcCommandLog=C:logslog.txt
Connection Mode No
-c auto ConnectionMode=auto
Note:
Command-line configuration options override the settings in the configuration file.
Using the IdcCommand Utility to Access Services 7-5
7.4.1 Command File
You must specify the name of the command file that contains the service commands and parameters. The command file parameter can specify a full path such as
C:command_filescommand.txt, or it can specify a relative path. For more information, see
Section 7.3, Command File.
7.4.2 User
You must specify an Oracle Content Server user name. This user must have permission to execute the services being called.
7.4.3 Log File
You can specify a path and file name for an IdcCommand log file. As each command is executed, a message is sent to the log file, which records the time the command was
executed and its success or failure status. If the log file already exists, it is overwritten with the new message. The log file can be used to display processing information to
the user.
■
If the action performed is successful, a success message is written to the log file.
■
If the action performed is not successful, an error message is written to the log file.
■
If no log file is specified, information is logged only to the screen.
7.4.4 Connection Mode
You can specify the connection mode for executing the IdcCommand services.
7.5 Running IdcCommand