View previous topic :: View next topic
|
Author |
Message |
swko
New User
Joined: 09 May 2011 Posts: 2 Location: India
|
|
|
|
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 |
|
|
DB2 Guy
New User
Joined: 28 Oct 2008 Posts: 98 Location: Cubicle
|
|
|
|
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 |
|
|
DB2 Guy
New User
Joined: 28 Oct 2008 Posts: 98 Location: Cubicle
|
|
|
|
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 |
|
|
Jeevankumar.Pochammala
New User
Joined: 04 May 2011 Posts: 7 Location: INDIA
|
|
|
|
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 |
|
|
|