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
 
Db2 v10 - Package invalidated on alter table for null column

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

New User


Joined: 23 Apr 2009
Posts: 20
Location: India

PostPosted: Tue Oct 28, 2014 12:56 pm    Post subject: Db2 v10 - Package invalidated on alter table for null column
Reply with quote

Hi All,

We are facing this strange issue. We are in Db2 v10 and are using Native SQl stored procedures. Whenever we Alter a nullable column, all our stored proc packages are getting invalidated. The BIND PACKAGE with DEPLOY option does not help either nor the REBIND command. The Stored procs work only if we drop and recreate them. Can someone help me understand whats happening as the references I have seen says the package should not be invalidated if a nullable column is altered (All alter column is for increasing the size of VARCHAR columns).
Back to top
View user's profile Send private message

Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 2015
Location: NY,USA

PostPosted: Tue Oct 28, 2014 10:16 pm    Post subject:
Reply with quote

Have you looked here?
http://www-01.ibm.com/support/docview.wss?uid=swg1PK21362

did you try and correct the values before rebind?
Back to top
View user's profile Send private message
apvardhini

New User


Joined: 23 Apr 2009
Posts: 20
Location: India

PostPosted: Tue Nov 04, 2014 1:57 pm    Post subject:
Reply with quote

Yes.. I have, but my scenario is slightly different.

As per redbooks, the packages would also be invalidated when we change the length attribute of a CHAR or VARCHAR column.

So a REBIND should resolve an issue but in my case, only DROP and CREATE works...
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 714
Location: Pennsylvania

PostPosted: Tue Nov 04, 2014 6:28 pm    Post subject:
Reply with quote

I believe the situation is this.

With a Cobol program, the Package is created when the Bind is done.
The DBRM and Load module come together and the Package is created.

With a Stored Procedure, there is no DBRM or LOAD module. No Bind is performed.
The Package is created with the CREATE statement.

Quote:
So a REBIND should resolve an issue but in my case, only DROP and CREATE works...


The first part of is statement is not correct. The second part is correct.

Just do the Drop and Create.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1191
Location: Bangalore,India

PostPosted: Wed Nov 05, 2014 3:53 pm    Post subject: Reply to: Db2 v10 - Package invalidated on alter table for n
Reply with quote

Hi There,

After rebinding please try stop and start the procedure.
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 CLOB Column data to External File usi... lalitmehta12 DB2 9 Tue Aug 21, 2018 7:22 pm
No new posts Facing Issue in Table Reorg satish.ms10 DB2 1 Tue Aug 07, 2018 2:44 am
No new posts SQL IN predicate using COBOL table jerryte DB2 16 Fri Jun 29, 2018 10:30 pm
No new posts Extracting DDL for all list of intere... Ashishpanpaliya DB2 5 Mon May 21, 2018 4:08 pm
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am

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