Difference between Bind Package and Bind Plan



IBM's flagship relational database management system

Difference between Bind Package and Bind Plan

Postby gauthamnagpur18 » Wed Aug 31, 2011 9:09 am

Hi ,

Could you please explain the difference between Bind Package and Bind Plan ? :)

Thanks,
Gautham

These users thanked the author gauthamnagpur18 for the post:
soheila (Mon Feb 19, 2018 12:35 pm)
gauthamnagpur18
 
Posts: 93
Joined: Sat Oct 23, 2010 1:28 pm
Location: Chennai, India
Has thanked: 3 times
Been thanked: 3 times

Re: Difference between Bind Package and Bind Plan

Postby dick scherrer » Wed Aug 31, 2011 10:01 am

Hello,

Found this from a few years ago. . .

Package is the executable access path code for the sql statements in the DBRM

Plan contains package list which is nothing but pointers to packages.

Here i give you some more information which clearly says you the use of plan,package.

We can BIND the instructions for the SQL that was in the DBRM into a PLAN (the old way), or We can BIND the instructions into a PACKAGE (this also become old now).But binding the instructions into a plan works fine as long as the program will be standalone pgm.It has many drawbacks.After that we started binding instructions into a package

If only one DBRM could be bound into a PACKAGE, and if PGMA need to CALL PGMB and PGMB need to CALL PGMC etc etc., then a structure was needed to gather all of the PACKAGEs into a searchable list. This structure became a packagelist, rather than a memberlist, bound into a PLAN.

To solve a few more problems, IBM introduced the concept of COLLECTIONs. A collection is simply a way of grouping packages into meaningful groups. you could use COLLECTIONs to separate programs for different application areas, such as payroll and inventory.

Hence program bound into the COLLECTION will be accessible by the named PLAN.
Hope this helps,
d.sch.

These users thanked the author dick scherrer for the post:
soheila (Mon Feb 19, 2018 12:42 pm)
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Difference between Bind Package and Bind Plan

Postby gauthamnagpur18 » Wed Aug 31, 2011 2:18 pm

Thanks dick scherrer .. :D
gauthamnagpur18
 
Posts: 93
Joined: Sat Oct 23, 2010 1:28 pm
Location: Chennai, India
Has thanked: 3 times
Been thanked: 3 times


Return to DB2

 


  • Related topics
    Replies
    Views
    Last post