Converting an existing plan into packages to run remotely
If you have an existing application that you want to run at a remote location by using remote access, you need a new plan that includes those remote packages in its package list.
Procedure
To turn an existing plan with member DBRMs into packages to run remotely, perform the following actions for each remote location:
Results
When you now run the existing application at your local Db2 system using the new application
plan, these things happen:
- You connect immediately to the remote location that is named in the CURRENTSERVER option.
- Db2 searches for the package in the collection REMOTE1 at the remote location.
- Any UPDATE, DELETE, or INSERT statements in your application affect tables at the remote location.
- Any results from SELECT statements are returned to your existing application program, which processes them as though they came from your local Db2 system.