Beruflich Dokumente
Kultur Dokumente
Table of Contents
Overview ........................................................................................................................................................................... 2
Steps to Complete a Deployment ..................................................................................................................................... 3
Create the Object Query ................................................................................................................................................... 3
Deployment through pmrep Commands ........................................................................................................................... 3
Connect to the Repository ............................................................................................................................................ 3
Run the Object Query................................................................................................................................................... 4
Create the Deployment Group...................................................................................................................................... 4
Create the Deployment Control File ............................................................................................................................. 5
Deploy the Objects ....................................................................................................................................................... 6
Validate the Deployment .............................................................................................................................................. 6
Roll Back the Deployment ............................................................................................................................................ 7
Deployment through Scripts.............................................................................................................................................. 7
Run the Query .............................................................................................................................................................. 8
Create a Deployment Group......................................................................................................................................... 8
Deploy Objects ............................................................................................................................................................. 8
Validate the Objects ..................................................................................................................................................... 8
Roll Back Objects ......................................................................................................................................................... 9
Overview
After you create objects in the development repository you can deploy them to the test repository to test the objects.
You can roll back the objects to the development repository in case of modification. You can use a deployment group
to copy the objects in the development repository to the test repository.
Before you copy a deployment group, you must identify the object types and the dependent objects that you want to
deploy. To identify objects, you can use an associated object query with a dynamic deployment group. You can run the
query and write the results to a persistent output file.
Create a deployment control file depending on the operation and content of the deployment group that you want to
copy and the target repository type.
Use pmrep commands in the interactive mode or run executable scripts containing pmrep commands in the command
line mode. For more information about pmrep command options and arguments, see the PowerCenter Command
Reference.
2
The sample deployment control file and scripts are included as attachments to this article. You can download these
files to the following directory:
<PowerCenter Installation Directory>\client\bin
3
The Connect command uses the following syntax:
connect
-r <repository_name>
{-d <domain_name> |
{-h <portal_host_name>
-o <portal_port_number>}}
[-n <user_name>
[-s <user_security_domain>]
[-x <password> |
-X <password_environment_variable>]]
[-t <client_resilience>]
2. Enter pmrep.
3. Enter the Connect command and its options and arguments.
For example, enter the following command:
connect –r HR_85 –d Development –n joe –x joe
The command line displays a message indicating that you connected to the repository successfully.
pmrep ExecuteQuery
The ExecuteQuery command uses the following syntax:
executequery
-q <query_name>
[-t <query_type (shared or personal)>]
[-u <output_persistent_file_name>]
[-a (append)]
[-c <column_separator]
[-r <end-of-record_separator>]
[-l <end-of-listing_indicator>]
[-b (verbose)]
The command line displays a message stating the total number of records returned as the results of a successful
query. The persistent output file appears in the following directory:
<PowerCenter Installation Directory>\client\bin
4
pmrep CreateDeploymentGroup
The CreateDeploymentGroup command uses the following syntax:
createdeploymentgroup
-p <deployment_group_name>
[-t <deployment_group_type (static or dynamic)>]
[-q <query_name>]
[-u <query_type (shared or personal)>]
[-c <comments>]
The command line displays a message indicating that the CreateDeploymentGroup command completed
successfully.
<DEPLOYPARAMS COPYDEPLOYMENTGROUP="YES"
DEPLOYTIMEOUT="1"
COPYPROGRAMINFO="YES"
COPYMAPVARPERVALS="YES"
COPYWFLOWVARPERVALS="YES"
COPYWFLOWSESSLOGS="NO"
COPYDEPENDENCY="YES"
LATESTVERSIONONLY="YES"
RETAINGENERATEDVAL="YES"
RETAINSERVERNETVALS="YES">
<DEPLOYGROUP CLEARSRCDEPLOYGROUP="NO">
You can download sample dg.xml to use with the deployment process examples.
5
Note: If you include the VALIDATETARGETREPOSITORY attribute in the deployment control file, the Repository
Service validates all objects in the target repository. To validate deployment group objects, use the pmrep Validate
command.
pmrep DeployDeploymentGroup
The DeployDeploymentGroup command uses the following syntax:
deploydeploymentgroup
-p <deployment_group_name>
-c <control_file_name>
-r <target_repository_name>
[-n <target_repository_user_name>
[-s <target_repository_user_security_domain>]
[-x <target_repository_password> |
-X <target_repository_password_environment_variable>]
[-d <target_domain_name> |
{-h <target_portal_host_name>
-o <target_portal_port_number>}]] (only if target is in a differentdomain)
[-l <log_file_name>]
The command line displays the deployment output and states that the DeployDeploymentGroup command
completed successfully.
pmrep Validate
The Validate command uses the following syntax:
validate
{{-n <object_name>
-o <object_type (mapplet, mapping, session, worklet, workflow)>
[-v <version_number>]
6
[-f <folder_name>]} |
-i <persistent_input_file>}
[-s (save upon valid)
[-k (check in upon valid)
[-m <check_in_comments>]]]
[-p <output_option_types (valid, saved, skipped, save_failed, invalid_before,
invalid_after, or all)>
[-u <persistent_output_file_name>]
[-a (append)]
[-c <column_separator>]
[-r <end-of-record_separator>]
[-l <end-of-listing_indicator>]
[-b (verbose)]
The command line displays the validation summary and states that the validate command completed successfully.
pmrep RollbackDeployment
The RollbackDeployment command uses the following syntax:
rollbackdeployment
-p <deployment_group_name>
-t <nth_latest_deploy_run>
The command line displays the rollback information and states that the RollbackDeployment command
succeeded.
7
Script Name pmrep Command Operating System
CreateDeploymentGroup.sh CreateDeploymentGroup UNIX
DeployDeploymentGroup.bat DeployDeploymentGroup Windows
DeployDeploymentGroup.sh DeployDeploymentGroup UNIX
Validate.bat Validate Windows
Validate.sh Validate UNIX
RollbackDeployment.bat RollbackDeployment Windows
RollbackDeployment.sh RollbackDeployment UNIX
When you run a script from the command line, information messages are written to action.txt and error messages are
written to error.txt. You can find the information and message text files in the following location:
<PowerCenter Installation Directory>\client\bin
Deploy Objects
Create a script that invokes the pmrep Connect and pmrep DeployDeploymentGroup commands.
For example, the sample script invokes the pmrep deploydeploymentgroup command and allows the
-p <deployment_group_name>, -r < target_repository_name>, -n < target_repository_user_name>,
-x < target_repository_password>, and -l < log_file_name> options to be entered in the command line.
At the command prompt, enter the following text:
DeployDeploymentGroup HR_ListOfValidObjects Samples_87 joe joe DeploymentLogFile
8
Roll Back Objects
Create a script that invokes the pmrep Connect and pmrep RollbackDeployment commands.
For example, the sample script invokes the pmrep RollbackDeployment command and allows the -p
<deployment_group_name> and -t <nth_latest_deploy_run > options to be entered in the command line.
At the command prompt, enter the following text:
RollbackDeployment HR_ListOfValidObjects 1
Author
Radhika Singh
Technical Writer