命令行和配置文件语法

批处理客户端可与命令行参数或配置文件配合使用。

命令行语法和示例

批处理客户端可以与“命令行参数和配置文件键”中的命令行参数配合使用。括在括号 ([]) 中的值是为了清晰明了而提供的可选扩展部分。同时支持值的简短版本和长版本。命令和参数不区分大小写。

注意:

对于所有参数,包含空格的版本名称必须使用引号括起来,例如 "April – Production"。

下面是命令行语法的一个示例。

C:\Oracle\Middleware\EPMSystem11R1\products\DataRelationshipManagement\client\batch-client\drm-batch-client.exe /url=net.tcp://localhost:5210/Oracle/Drm/Engine /u=mylogin /pw=mypassword /log="C:\Oracle\Data Relationship Management\rdsc.log" /op=Export
/xtype=Export /xname="WeeklyExport" /cver="COA Current" /pver="COA Previous"
/outfile="C:\Oracle\Data Relationship Management\export_data.txt"

配置文件语法和示例

配置文件的格式类似于 INI 文件,包含节、键和值。对于特定的操作,有一个常规节和一个其他节。节名称括在括号 ([]) 中,可为任意字符串值,但是必须与操作键指定的值匹配。每节中行的格式都为键=值对。批处理客户端可以与“命令行参数和配置文件键”中的配置文件键配合使用。

下面是批处理客户端配置文件示例。

[General]
Operation=Export
UserName=mylogin
Password=mypassword
URL=net.tcp://localhost:5210/Oracle/Drm/Engine
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/Engine
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"