除了使用命令行参数,批处理客户端还可以通过配置文件运行。配置文件的格式类似于 INI 文件,包含节、键和值。对于特定的操作,有一个常规节和一个其他节。节名称括在括号 ([]) 中,可为任意字符串值,但是必须与操作键指定的值匹配。每节中行的格式都为键=值对。
[General]
Operation=Export
UserName=mylogin
Password=mypassword
URL=net.tcp://localhost:5210/Oracle/Drm/ProcessManager
LogFileName=C:\Oracle\Data Relationship Management\rdsc.log
[Export]
ExportType=Export
ExportName=WeeklyExport
OutFile= C:\Oracle\Data Relationship Management\export_data.txt
CurrentVersionAbbrev=COA Current
PrevVersionAbbrev=COA Previous
配置文件可以包括多个操作。每个操作都包含在具有唯一标签的单独节中。标记为 [Operations] 的特殊节用于指定文件中操作节的数量以及各个操作节的标签。操作按照列出的顺序执行。
下面是包含多个操作的配置文件的示例。请注意,当使用多个操作时,必须在每节中包括操作键(例如 Operation=Import)。
[General]
Operation=Multiple
UserName=mylogin
Password=mypassword
URL=net.tcp://localhost:5210/Oracle/Drm/ProcessManager
LogFileName=C:\Oracle\Data Relationship Management\rdsc.log
[Operations]
OperationCount=3
Operation1=Weekly_Import
Operation2=Update_CostCenters
Operation3=Merge_Data
[Weekly_Import]
Operation=Import
InFile="COA_data.txt"
ImportAbbrev="RDSC Import"
ImportLogFileName="C:\Oracle\Data Relationship Management\Batch Client\import_log.txt"
VersionAbbrev="COA Current"
VersionDescription="COA for this month"
[Update_CostCenters]
Operation=Action Script
InFile=CostCenter_changes.txt
StripQuotedStrings=True
Delimiter=comma
[Merge_Data]
Operation=Blend
Blendname="COA Blender"
SourceVersionAbbrev="COA Current"
TargetVersionAbbrev="COA Previous"
NewVersionAbbrev="COA Blended"
NewVersionDescription="Current and Previous COA"
|
BlendLogFileName |
指定混合日志文件的名称(与批处理客户端日志文件不同)。默认值存储在混合配置文件中。 |
|
指定是保存混合的版本还是将其保留为分离状态。请指定下列值之一: 有关保存版本的信息,请参阅在批处理客户端中保存版本。 |
|
指定导入日志文件的路径和文件名。(这不是 [General] 节中 LogFileName 键定义的相同日志文件。)默认文件名为 DRM_Batch_ClientMMDDYYYY.log,其中 MM = 月份,DD = 日期,YYYY = 年份 | |
|
指定是保存导入的版本还是将其保留为分离状态。请指定下列值之一: 有关保存版本的信息,请参阅在批处理客户端中保存版本。 |