MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Replace version of the Bind and ReBind

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
srini_igsi
Beginner


Joined: 12 May 2006
Posts: 41
Topics: 16
Location: Mumbai

PostPosted: Thu May 18, 2006 4:35 am    Post subject: Replace version of the Bind and ReBind Reply with quote

Hi,

Can anybody explain me in detail abt the exact diff between 'REPLACE' version of the BIND and REBIND...??

Some where i have read that, if the original SQL statements are changed then, we have to use the 'REPLACE' version of the BIND, where as if the physical structure of the Table/Database is changed then we have to use REBIND.

if somebody can explain me in detail abt the exact diff it will be greatful to me.
_________________
Thanks,
-Srini
Back to top
View user's profile Send private message
CZerfas
Intermediate


Joined: 31 Jan 2003
Posts: 211
Topics: 8

PostPosted: Thu May 18, 2006 7:57 am    Post subject: Reply with quote

Hello Srini,

in your question you are mixing multiple concepts. To sort it out, simply read the manual (DB2 V8 Command Reference).

regards
Christian
Back to top
View user's profile Send private message
a_seshu
Beginner


Joined: 30 Sep 2004
Posts: 16
Topics: 4
Location: Chennai

PostPosted: Thu May 18, 2006 3:00 pm    Post subject: Reply with quote

BIND and REBIND are two different animals.

You have ADD and REPLACE options in BIND. If no package with the same userid, same name bound to the same database, as you are BINDing now is present then it will be a BINDADD.

If you have already bound a package to the database and you are now binding a new version of the DBRM (with some SQL changes) it would be a BINDREPLACE.

Say no SQL changes in your DBRM occured but you still need to rebind in some cases when the underlying tables are dropped and recreated or runstats have been run and you want to pick the best accesspath available as of today you can do a REBIND
_________________
I dont think I would ever stop learning. - Seshu.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group