Command Reference > infacmd tools Command Reference > patchApplication
  

patchApplication

Deploys an application patch using a .piar file to a Data Integration Service. The Data Integration Service applies the patch to the corresponding incremental application. The incremental application must be deployed on the same Data Integration Service where you want to deploy the patch.
If you created the patch based on a previous version of the incremental application, the patch might not be valid. A patch is not valid if the application objects in the patch have been updated by other application patches since the patch that you currently want to deploy was created. To proceed, you can force the Data Integration Service to apply the patch.
You can also choose to retain or discard state information. State information refers to mapping properties and the properties of run-time objects such as mapping outputs or the Sequence Generator transformation.
For more information about state information, see the "Application Deployment" chapter in the Informatica Developer Tool Guide.
Note: If you deploy a previous version of a patch, the Data Integration Service does not roll back the incremental application to the time that the patch was created. The Data Integration Service updates the application based on the application objects in the patch.
The infacmd tools patchApplication command uses the following syntax:
patchApplication

<-DomainName|-dn> Domain name

<-UserName|-un> User name

<-Password|-pd> Password

[<-SecurityDomain|-sdn> Security domain]

<-DataIntegrationService|-dis> Data Integration Service name

<-FilePath|-fp> Patch file path

[<-force|-f> True | False]

[<-RetainStateInformation|-rsi> True | False]
The following table describes infacmd tools patchApplication options and arguments:
Option
Argument
Description
-DomainName
-dn
Domain name
Required. Name of the Informatica domain. You can set the domain name with the -dn option or the environment variable INFA_DEFAULT_DOMAIN. If you set a domain name with both methods, the -dn option takes precedence.
-UserName
-un
User name
Required if the domain uses Native or LDAP authentication. User name to connect to the domain. You can set the user name with the -un option or the environment variable INFA_DEFAULT_DOMAIN_USER. If you set a user name with both methods, the -un option takes precedence.
Optional if the domain uses Kerberos authentication. To run the command with single sign-on, do not set the user name. If you set the user name, the command runs without single sign-on.
-Password
-pd
Password
Required if you specify the user name. Password for the user name. The password is case sensitive. You can set a password with the -pd option or the environment variable INFA_DEFAULT_DOMAIN_PASSWORD. If you set a password with both methods, the password set with the -pd option takes precedence.
-SecurityDomain
-sdn
Security domain
Required if the domain uses LDAP authentication. Optional if the domain uses native authentication or Kerberos authentication. Name of the security domain to which the domain user belongs. You can set a security domain with the -sdn option or the environment variable INFA_DEFAULT_SECURITY_DOMAIN. If you set a security domain name with both methods, the -sdn option takes precedence. The security domain name is case sensitive.
If the domain uses native or LDAP authentication, the default is Native. If the domain uses Kerberos authentication, the default is the LDAP security domain created during installation. The name of the security domain is the same as the user realm specified during installation.
-DataIntegrationService
-dis
Data Integration Service name
Required. The name of the Data Integration Service where the incremental application is deployed.
-FilePath
-fp
Patch file path
Required. Path and .piar file name of the patch to deploy. You can specify an absolute path or a relative path to the file name.
-force
-f
True | False
Optional. Use true to ignore the validity of the patch and force the Data Integration Service to apply the patch to the application. Default is false.
-RetainStateInformation
-rsi
True | False
Optional. Indicates whether state information is retained or discarded.
Note: This option overrides the setting to retain or discard state information in the application patch archive file.