IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Whether to rebind or not?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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
Reply with quote

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

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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Rebind issue - Package DB2 2
No new posts Should we Rebind Plan if no SQL changes DB2 2
No new posts Rebind package not working as intended DB2 10
No new posts Is Rebind required for dynamic SQL Co... DB2 1
No new posts Rebind issue DB2 11
Search our Forums:

Back to Top