In preparation to allow DB2 job to remotely execute SSIS packages several configurations need to be put in place mostly on Windows side.
1.
Create a .BAT file on the Windows servers and apply the following code. (Include the disk letter)
Driver Letter:Call osql.exe -Q"execute msdb.dbo.sp_start_job [My SQL Agent Job]"
-S MySQLServer -U My SQL account -P My Password
2.
Create a Windows account that has execute permissions to the .BAT file.
3.
DB2 command to remotely execute the SSIS Package.
RUNRMTCMD CMD('I:\SSISJobs\ExecuteMySQLJob.BAT') +
RMTLOCNAME('111.111.111.111' *IP) +
RMTUSER('MyWindowsUser') RMTPWD('password') +
CCSID(1252)
You will need to include the full path of the Batch file, IP address of the windows server, Windows user account and password.
There are several other ISeries DB2 commands that can be used as an alternative to RUNRMTCMD
but this is sufficient to handle the task.
4.
Install the following IBM ISeries Client service. This needs to be enabled on the Windows Server.
5.
Allow port 512 to be opened on the Windows server firewall.
No comments:
Post a Comment