To import rules and data by connecting directly to the database, complete the following steps. This is most commonly done for a stopped instance.
If you are importing an application with schema changes and a separate DB-Admin-DB-Name and you are using IBM DB2 for z/OS, configure the import parameters before you import the application, or the import will fail. For more information about configuring the import parameters, see IBM DB2 for z/OS: Preparing to import an application with schema changes and a separate DB-Admin-DB-Name. For more information about your application, see your database administrator.
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. |
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: |
Run the prpcUtils.bat or prpcUtils.sh script with the import option, for example:
prpcUtils.bat import
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. |