Use the prpcUtils tool if you have a direct connection to the database to manage system management actions even if you do not have an active instance of Pega Platform.
If you need to run asynchronous operations, or you do not have a direct connection to the database, use the prpcServiceUtils tool. For more information about the prpcServiceUtils tool, see prpcServiceUtils properties and arguments.
Configure the prpcUtils.bat or prpcUtils.sh script actions in the prpcUtils.properties file.
You can also pass arguments to the script to override settings in the prpcUtils.properties file.
Use the properties file to set property values for reuse to minimize errors in entering commands.
Use the command-line arguments to augment or override values in the property file, for example, to customize one script action. The use of these arguments is optional. Each argument should be preceded with two hyphens (--
).
Property name | Value |
---|---|
pega.jdbc.driver.jar
|
Path to the database driver .jar file. |
pega.jdbc.driver.class
|
The database driver class. |
pega.database.type
|
Database vendor type. |
pega.jdbc.url
|
URL of your database. |
pega.jdbc.username
|
Database user name. |
pega.jdbc.password
|
Database password. |
rules.schema.name
|
If you use a split schema, the value for the rules schema name. If you do not use a split schema, the value for the schema name. |
data.schema.name
|
If you use a split schema, the value for the data schema name. |
For more information, see Exporting rules and data by using a direct connection to the database.
Property name | Value |
---|---|
export.archive.full.path
|
The full path of the output archive file. |
In addition to the general properties, you must also configure properties for exporting by product, application, ruleset, or class list.
Property name | Value |
---|---|
export.application.context
|
The application name and version to export, for example: PegaRULES!07.10 |
Property name | Value |
---|---|
export.classes.included
|
A comma-separated list of the classes to be included. To export by classes, you must specify either export.classes.included
or export.keys.file ; you cannot specify both.
|
export.included.descendent
|
Optional: true or false . The default value, true , exports the class and its descendants. Set this to false to export only the parent class. |
export.classes.excluded
|
Optional: A comma-separated list of classes that you want to exclude. |
export.excluded.descendent
|
Optional: true or false . The default value, true , exports the class and its descendants. Set this to false to export only the parent class. |
export.startVersion
|
Optional: For rule-resolved instances of Rule-, the minimum ruleset version. For example, 07-10 |
export.endVersion
|
Optional: For rule-resolved instances of Rule-, the maximum ruleset version. For example, 07-10-31 |
export.keys.file
|
The full path to the file name specifying the values of pzInsKey to be exported, containing one pzInsKey per line. You must specify either export.classes.included
or export.keys.file ; you cannot specify both. |
Property name | Value |
---|---|
export.ruleset.name
|
The name of the ruleset whose instances should be exported. This value is case sensitive, for example: Pega-Desktop |
For more information, see Populating properties by using a direct connection to the database.
To specify the data for populating the new column, use the include and exclude classes properties. For example, if you include Rule- with descendants and exclude Rule-File- with descendants, Pega Platform processes all descendant classes of Rule-, except rules in Rule-File-.
Property name | Value |
---|---|
expose.classes.included
|
List one or more concrete classes to be processed, separated by commas. |
expose.included.descendent
|
Optional: |
Property name | Value |
---|---|
expose.classes.excluded
|
Optional: If you entered one or more classes in the |
expose.excluded.descendent
|
Optional: |
Property name | Value |
---|---|
expose.startKey
|
Optional: You can restrict which instances are processed by using the handle or an initial portion of a handle. Enter the lowest pzInsKey value to be processed, enclosed within quotation marks. If you provide a pzInsKey range, specify only a single class in the Include classes field, and leave the other include and exclude class fields blank. The pzInsKey range values limit the number of rows returned when using a character sort, not a numerical sort. To process a set of work objects that have similar pzInsKey numerical values, you use date ranges for limiting the range of rows to return. |
expose.endKey
|
Optional: You can restrict which instances are processed using the handle or an initial portion of a handle. Enter the highest pzInsKey value to be processed, enclosed within quotation marks. If you provide a pzInsKey range, specify only a single class in the Include classes field, and leave the other include/exclude class fields blank. |
expose.startDate
|
Optional: You can restrict which instances are processed based on creation date. Enter a start date value in YYYYMMDD format. Leave blank if the The pzInsKey range values limit the number of rows returned when using a character sort, not a numerical sort. To process a set of work objects that have similar pzInsKey numerical values, you use date ranges for limiting the range of rows to return. |
expose.endDate
|
Optional: You can restrict which instances are processed based on creation date. Enter an end date value in YYYYMMDD format. The end date cannot be the same as the start date. Leave at least one day between the dates, for example,
Leave blank if the |
Property name | Value |
---|---|
expose.reindex
|
To expose property references, set |
expose.reindexType
|
Specify the rulesets to process:
In most cases, enter |
expose.commitRate
|
Specifies the number of data instances to process with each database commit. The default is 100. |
expose.numOfThreads
|
Specifies the number of threads to use. If no value is specified, the default is the number of classes being updated. When updating large sets of data, set the number of threads to a higher value. |
expose.update.rule.summary
|
True (default) or False , specifying whether to update Data-Rule-Summary on the database. The default is false . |
Property name | Value |
---|---|
expose.declareIndex.accessgroup
|
Specifies the access group in which the Rule-Declare-Index of the class being exposed exists. It is used when pega.user.username or pega.user.password is not provided. |
pega.user.username
|
Specifies the Pega user name used to derive the access group in which the Rule-Declare-Index of the class being exposed exists. It is used with pega.user.password when both properties are provided. |
pega.user.password
|
Specifies the Pega password used to derive the access group in which the Rule-Declare-Index of the class being exposed exists. It is used with pega.user.username when both properties are provided. |
For more information, see Importing rules and data by using a direct connection to the database.
Property name | Value |
---|---|
import.archive.path
|
The relative path to the archive from the \utils\ folder or the full path to the archive. If the path is a folder, the tool processes all archive files in that folder. |
import.codeset.name
|
The name of the code set to receive the Java .class files. |
import.codeset.version
|
The code set version to receive the Java .class files, for example: 01-01-01 |
import.mode
|
The import mode:
|
import.existing.instances
|
How the import action handles existing instances:
|
Property name | Value |
---|---|
import.nofailonerror
|
false , which will fail on error.
|
import.commit.count
|
Optional: The number of data instances processed with each database commit to balance memory usage and performance. The default of 100 is sufficient for most environments. |
import.compile.libraries
|
Optional: true or false , specifying whether to compile libraries after import. The default is true . |
import.allowImportWithMissingDependencies
|
Optional: true or false , specifying whether to allow the import to continue even if the archive is dependent on missing products. The default is false . |
import.enable.defaultcontext
|
Optional: true or false , specifying whether to allow triggers for the Pega Platform to run while performing command-line imports. The default is false . To allow triggers to run during imports, uncomment this property and set to true . |
import.preserveOrder
|
Optional: |
import.bypass.schema
|
Optional: Specify whether to apply database schema changes during the import. The default is |
import.skip.backup
|
Optional: |
For more information, see Scanning the system by using a direct connection to the database.
Property name | Value |
---|---|
hotfix.operation
|
scan
|
hotfix.catalogPath
|
Full path to the Catalog.zip file. |
hotfix.scan.downloadPath
|
Full path and .zip file name where you plan to save the scan results. |
For more information, see Creating an SQL script by using a direct connection to the database.
Property name | Value |
---|---|
hotfix.operation
|
generateDDL
|
hotfix.DLFilePath
|
Comma-delimited list of hotfix package download (DL) file names and paths. |
For more information, see Installing hotfixes by using a direct connection to the database.
Property name | Value |
---|---|
hotfix.operation
|
install
|
hotfix.DLFilePath
|
The full path to the hotfix package file |
hotfix.bypass.schema
|
The default value, |
hotfix.force
|
Set only at the request of Global Customer Support to skip hotfix validations and force the hotfix data into the system. |
For more information, see Committing hotfixes by using a direct connection to the database.
Property name | Value |
---|---|
hotfix.operation
|
commit
|
For more information, see Rolling back hotfixes by using a direct connection to the database.
Property name | Value |
---|---|
hotfix.operation
|
rollback
|
For more information, see IBM DB2 for z/OS: Preparing to import an application with schema changes and a separate DB-Admin-DB-Name.
For more information, see Rebuilding a search index.
Property name | Value |
---|---|
indexing.indextype
|
Specify one of the following:
|
indexing.indexdirectory
|
Path to the directory in which to store the indexes. |
indexing.classes
|
Optional: A comma-delimited list of classes to be included or excluded from indexing.
This is used with the indexing.exclude property.
If nothing is specified, then all classes of the specified type are included. |
indexing.exclude
|
Optional: If indexing.classes has been specified, do one of the following:
|
indexing.messagesfrequency
|
Optional: The frequency (in seconds) at which indexing progress should be shown. The default is 10 seconds. |
For more information, see Configuring index host nodes.
Property name | Value |
---|---|
removeIndexNode.nodeId
|
The node ID of the index node to be removed. |
Use the command-line arguments to augment or override values in the property file, for example, to customize one script action. The use of these arguments is optional. Each argument should be preceded with two hyphens (--
).
prpcUtils script argument | Value |
---|---|
connPropFile
|
The full path to the connection.properties file that includes information for multiple targets. |
driverClass
|
Your JDBC driver class (example: oracle.jdbc.OracleDriver). |
driverJAR
|
Location of your JDBC .jar file. |
dbType
|
Database vendor type (mssql, udb, oracledate, postgres, db2zos). |
dbURL
|
JDBC URL to the database. |
dbUser
|
Database user name. |
dbPassword
|
Database password. |
archivePath
|
Full path to the archive to be imported or exported. |
propFile
|
The full path to the properties file, to override the default prpcUtils.properties. |
hfixAction
|
If manageHotfixes is selected, sets the hotfix operation. Valid values are commit , rollback , generateDDL , install , and scan . |
rulesSchema
|
The rules schema. |
dataSchema
|
The data schema. |
noFailOnError
|
Set to true or false . When enabled, instances that fail to import are skipped and import continues instead of failing. |
U
|
Pega user name. |
P
|
Pega password. |
accessGroup
|
AccessGroup in which the Rule-Declare-Index of the classes being exposed exists. Applicable for the expose utility if --U or --P are not provided. |