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
 
Whether to rebind or not?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
swko

New User


Joined: 09 May 2011
Posts: 2
Location: India

PostPosted: Tue May 24, 2011 2:45 pm    Post subject: Whether to rebind or not?
Reply with quote

Hi ,
I know that if there are any changes to table and if those columns are accessed by the program, then the package gets invalidated by DB2 and the package needs to bound again.

But if the program is not using those new columns, then do we still need rebind the package or it will be automatically get rebound when VALIDATE(RUN) is specified?


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

DB2 Guy

New User


Joined: 28 Oct 2008
Posts: 98
Location: Cubicle

PostPosted: Tue May 24, 2011 8:23 pm    Post subject:
Reply with quote

Look here: http://db2portal.blogspot.com/2005/11/to-rebind-or-not-to-rebind-that-is.html

http://ibmmainframes.com/about3893.html

AFAIK, Altering a table(add column) will invalidate the packages in following circumstances.

1) If the column which is added is a timestamp field
2) if the package contains any insert statement where columns are not
specified

INSERT TABLE1 VALUES( , , , , ,)
instead of INSERT TABLE1(COL1,OCL2...) VALUES ( , , , , ,).

Otherwise rebind is not necessary until program is promoted.
Back to top
View user's profile Send private message
DB2 Guy

New User


Joined: 28 Oct 2008
Posts: 98
Location: Cubicle

PostPosted: Tue May 24, 2011 8:27 pm    Post subject: Re: Whether to rebind or not?
Reply with quote

swko wrote:
or it will be automatically get rebound when VALIDATE(RUN) is specified?
With VALIDATE(RUN), DB2 initially verifies the authorization at bind time, but if the authorization check fails, DB2 rechecks it again at run time. So, I'm confused why do you relate it to REBIND?
Back to top
View user's profile Send private message
Jeevankumar.Pochammala

New User


Joined: 04 May 2011
Posts: 7
Location: INDIA

PostPosted: Sun Jun 12, 2011 11:21 pm    Post subject:
Reply with quote

Hello swko,

When you Alter any table the concern Packages will go in to status called Invalid('N') or Alter ('A') .

so once you added the column you must rebind all the pakcages associated with concern table
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    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 Should we Rebind Plan if no SQL changes sappy_mf DB2 2 Thu Mar 03, 2016 2:13 pm
No new posts Rebind package not working as intended Abhinav Chandra DB2 10 Tue Oct 01, 2013 7:24 pm
No new posts Is Rebind required for dynamic SQL Co... Furor DB2 1 Thu Sep 19, 2013 9:35 am
No new posts Rebind issue gylbharat DB2 11 Wed Apr 24, 2013 7:59 pm
No new posts Is it mandatory to Rebind after we pe... Furor DB2 1 Fri Mar 01, 2013 2:02 pm

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