Monday, September 7, 2015

DRM Configuration File / INI file for Batch Client

Batch Client is a command line utility by which one can performs various actions in DRM in batch mode.

Batch Client Utility: drm-batch-client.exe

This utility accepts options from command line, configuration file or a combination from both. Refer to Oracle DRM documentation for more details.

In this post, I am showing a structure of a configuration file or .ini file for couple of operations as given below:

  1. DeleteVersion
  2. Import 



The example shown performs multiple operations.

The first section is the [General] section where you specify Operation, Username, Password and URL.

In the [Operations] section, list total number of operations you would like to perform and list names in the order you want system to execute.

Operation1 will be executed before Operation2 and so on. If any section is not defined as part of [Operations] section then it won't be executed.

Note that the name provided for Operation1, Operation2...OperationN must match the Section names you define else you will get an error.

Details of [Version_Delete] section:

[Version_Delete] is the name given to the section. You can give any name but the name defined here must match when you specify in [Operations] section.

Operation=DeleteVersion: This operation is used to delete the specified version.

VersionAbbrev="METADATA_PROD_IMPORT": "METADATA_PROD_IMPORT" is the version name which will be deleted on the execution of the script.

Details of [Product_Import] section:


This section is used to import product hierarchy in the specified version.


Operation=Import: This parameter is key and required to import a file.

Infile="product_integration.txt": Specify file name you want to import along with path.

ImportAbbrev=ADMIN_PRODUCT_INT: This is the import name to run. Note that an import needs to be defined in DRM as a pre-requisite.

ImportLogFileName="product_import_log.txt": Specify log file name.

Object_Access=Admin: If the import is not defined under Standard group then according to security this may be required.

VersionAbbrev="METADATA_PROD_IMPORT": Specify the version name where you want to import the hierarchy.