Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
What is DB2 Bind and what does it do

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
chandrasekhar

New User


Joined: 29 Sep 2004
Posts: 35
Location: bangalore

PostPosted: Thu Oct 07, 2004 8:23 pm    Post subject: What is DB2 Bind and what does it do
Reply with quote

CAN ANY BODY TELL ME WHAT IS DB2 BIND WHAT DOES IT ACTUALLY DO?

DON'T MIND ALTOUGH IT IS A VERY BASIC QUESTION BUT UR ANSWER COULD CLEAR MY FUNDA

THANKS
Back to top
View user's profile Send private message

priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Fri Oct 08, 2004 8:40 am    Post subject:
Reply with quote

DB2 Bind compiles all your sql statements(dbrm) into an executable format. It uses DB2 Optimizer to create the better access path.
Back to top
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Fri Oct 08, 2004 2:06 pm    Post subject:
Reply with quote

Hi Chandrasekhar,

Check out this link:

http://www.db2mag.com/story/showArticle.jhtml?articleID=15300107

This explains you very clearly about,precompilation,Bind,packages,plan etc etc details.


Thanks,
Anu
Back to top
View user's profile Send private message
chandrasekhar

New User


Joined: 29 Sep 2004
Posts: 35
Location: bangalore

PostPosted: Fri Oct 08, 2004 7:56 pm    Post subject:
Reply with quote

THANKS TO PRIYA AND ANURADHA WHO HELP ME TO UNDERSTAND THE DB2 CONCEPT.SPECIALLY THE LINK U GIVE IS REALLY A WONDERFUL ONE.
IF THERE ANY FURTHER DOUBT THEN I LL CONTACT U.
THANKS
Back to top
View user's profile Send private message
chandrasekhar

New User


Joined: 29 Sep 2004
Posts: 35
Location: bangalore

PostPosted: Fri Oct 08, 2004 8:32 pm    Post subject: PLAN AND PACKAGE
Reply with quote

WHAT IS PLAN AND PACKAGE
WHAT ARE THE DIFERENCE???
Back to top
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Fri Oct 08, 2004 9:04 pm    Post subject:
Reply with quote

Hi Chandrasekhar,


I suppose all this were clearly explained in that link:

Anyway:

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 is clear,

Thanks,
Anu
Back to top
View user's profile Send private message
Sabry Krishnan L

New User


Joined: 30 Dec 2006
Posts: 11
Location: Chennai-India

PostPosted: Tue Jan 23, 2007 10:53 am    Post subject:
Reply with quote

Thank Anu... The info in the link is very useful!
Back to top
View user's profile Send private message
md.khajapasha

New User


Joined: 28 Jun 2008
Posts: 3
Location: Hyderabad

PostPosted: Mon Jul 07, 2008 4:45 pm    Post subject: Reply to: What is DB2 Bind and what does it do
Reply with quote

hi,
bind it takes dbrm as input and gnerates optimized access path(best access path feed into plan).
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Mon Jul 07, 2008 4:50 pm    Post subject: Reply to: What is DB2 Bind and what does it do
Reply with quote

it is very nice for a newcomer to try to help...
but why resurrect for the second time a thread started four years ago
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Why myself doing Package Bind always ... Susanta DB2 5 Thu Mar 02, 2017 10:47 pm
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am
No new posts What's plan, package, bind ? jackzhang75 DB2 2 Sun Feb 28, 2016 7:29 pm
No new posts What is Bind Error? Chetan Kumar Mainframe Interview Questions 1 Fri Oct 16, 2015 7:00 pm
No new posts Related to BIND parameters in DB2 sivareddy123 ABENDS & Debugging 2 Fri Jan 30, 2015 4:12 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us