Following a rigorous methodology is key to delivering customer satisfaction and expanding analytics use cases across the business.
Develop a promotion strategy for PowerCenter that ensures clean promotion between development, test, quality assurance (QA), and production environments, thereby protecting the integrity of each of these environments as the system evolves.
This Best Practice provides information on options to help ensure that developed objects/code go through a smooth migration process between development, QA, and production environments. This is essential for the deployment and integrity of an application. This document does not include step-by-step instruction on how to accomplish each of the code promotion suggestions, but rather highlights key and useful information. Detailed instructions for completing the code promotion options can be found in the Informatica documentation.
Key considerations include:
All of these come into play when working on setting up a strategy for promotion.
PowerCenter offers flexible promotion options that can be adapted to fit the needs of each application. These options include folder migration, object migration, and XML import/export. In versioned PowerCenter repositories, users can also use static or dynamic deployment groups for promotion -- which provides the capability to migrate any combination of objects within the repository with a single command. All of the above options can be accomplished via the command line utility. This will be discussed further in this best practice.
A distributed repository environment maintains separate, independent repositories, hardware, and software for development, test, and production environments. Separating repository environments is preferable for the handling of development to production migrations. Since the environments are segregated from one another, work performed in development cannot impact QA or production.
There are four methods for code promotion. Keep in mind that this code promotion process typically consists of going from environment-to-environment (e.g., Dev to QA). However, using one or more of the below processes would also allow the capability to test code migrations within the same environment.
IMPORTANT: Exercise extreme caution with code migrations within the same environment as this could seriously impact other work.
PowerCenter’s XML export/import functionality offers great versatility with code promotion. This method is most useful in a distributed environment because objects can be exported into an XML file from one source repository and imported into the target destination repository.
The XML export/import process is very simple using the Power Center client tools. Designer/Workflow Manager and Repository Manager all have export/import features. Keep in mind when using this feature that objects exported from Designer will only contain objects that can be developed in designer (e.g., Mappings/Sources/Targets/Transformations). This is the same for objects developed in Workflow Manager. In order to ensure that all related objects and their dependencies are being exported, use the Repository Manager for exporting and importing.
Pros
Cons
Using the Repository Manager client, a user is able to copy from one repository to another. This method has some advantages and disadvantages. One of the biggest things to keep in mind with this method is that the client software must be installed.
Pros
Cons
For versioned repositories, the use of Deployment Groups for promoting code between distributed environments allows the most flexibility and convenience. With Deployment Groups, migrating individual objects is just like an object copy migration, but can also have the convenience of a repository or folder-level migration as all objects are deployed at once. The objects included in a deployment group have no restrictions and can come from one or multiple folders. For additional convenience, dynamic deployment groups can be set up that allow the objects in the deployment group to be defined by a repository query, rather than being added to the deployment group manually. Because deployment groups require versioned repositories, they also have the ability to be rolled back, reverting to the previous versions of the objects, when necessary.
Pros
Cons
Using the PMREP commands is essentially the same as the XML Export/Import method, folder copy, and deployment group, except that it is run from the command line rather than through the GUI client tools. The Informatica client and server installs the command line utility when the installation is completed, and a separate installer is included if needed for use. The pmrep command utility has the capability of running commands from the client machine or the server which accomplishes the same goals as using the PowerCenter client software. Refer to the product documentation for a full list of pmrep commands.
The pmrep utility is a very useful utility that can be used in scripting or interactive mode. The command line utility is utilized by many due to the requirements of the project. In most cases projects will script the various commands and then package all the code that is to be promoted and push these packages. This allows for a fully automated process with no manual intervention except for pushing the package to get it started.
Some key information to keep in mind when using the command line utility:
This method is basically the same as the XML Export/Import, as an xml file is used for importing. The only difference is that the client software GUI is not used for the export/import. This option also allows a project to utilize configuration management software that can check in all the scripts and xml files related to a code promotion.
Ultimately all the options above are useful options for code promotion. Each of the above listed options has its pros and cons and these should be measured against requirements to determine which will be the most useful option for each specific situation.
Success
Link Copied to Clipboard