Running a mapping using a properties file
You can run a mapping using the parameters specified in the executeMapping.properties file. Use this option if you want to encrypt your database passwords in the mapping. This is the only option that allows you to encrypt passwords. However, you can use this option without running the encryption script, if you wish.
Before you begin
About this task
Properties file parameters
The executeMapping.properties file stores user identifiers and passwords that are used to access the Integration Composer repository, plus source and target data sources, when mappings are run. The properties file, located in the bin subdirectory, can be used in order to run the executeMapping.bat or executeMapping.sh files securely.
- MAPPINGNAME
- Name of the mapping. Use the name that you assign to the mapping when you create it.
- REPOSITORYUSER
- User identifier for the Integration Composer repository.
- REPOSITORYPWD
- Password for the Integration Composer repository.
- SOURCEUSER
- User identifier for the data source for the mapping.
- SOURCEPWD
- Password for the data source for the mapping.
- TARGETUSER
- User identifier for the target for the mapping.
- TARGETPWD
- Password for the target for the mapping.
To enhance security when processing a mapping, administrators can run a script that encrypts the passwords in this properties file.
Running the encryption script—with validation processing
- encryptExecuteMappingProperties.bat (on Microsoft Windows systems)
- encryptExecuteMappingProperties.sh (on UNIX systems)
The encryption scripts are in the bin subdirectory of the Integration Composer installation directory.
When you run the encryption script, the Integration Composer encryption utility by default validates that the passwords are correct by attempting to connect to the data sources that are specified in a mapping.
To run the script, use the following syntax, where filename is the name of the executeMapping.properties file that you created for this mapping:
- encryptExecuteMappingProperties.bat filename (on Microsoft Windows systems)
- encryptExecuteMappingProperties.sh fully_qualified_filename (on UNIX systems)Note: UNIX requires both a file path and file name.
After the script runs, the executeMapping.bat or executeMapping.sh file can run the mapping with the encrypted passwords.
Running the encryption script—without validation processing
To skip the step that validates your data source and target connections, and instead encrypt the file even if connections are unsuccessful, use the following syntax that includes the -s parameter (where filename is the name of the executeMapping.properties file):
- encryptExecuteMappingProperties.bat -s filename (on Microsoft Windows systems)
- encryptExecuteMappingProperties.sh -s fully_qualified_filename (on UNIX systems)
The encryption utility will encrypt the values specified in the executeMapping.properties file without validating the connections.
Encrypting multiple files
If you want more than one properties file to use for different mapping runs, you can create multiple properties files by copying and renaming the executeMapping.properties file.
To use the encryption script to encrypt multiple files at one time, use the following syntax:
- encryptExecuteMappingProperties.bat [-s] filename_1 filename_2 ... filename_n (on Microsoft Windows systems)
- encryptExecuteMappingProperties.sh [-s] fully_qualified_filename_1 fully_qualified_filename_2 ... fully_qualified_filename_n (on UNIX systems)
The -s option applies to all files. If you omit the -s, all files will be validated. If you include the -s, no files will be validated.
The steps for running a mapping using the executeMapping.properties file follow: