If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > New Column Issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-25-10, 08:33
vijay_87 vijay_87 is offline
Registered User
 
Join Date: Aug 2010
Posts: 2
New Column Issue

Hi Team,

We created 5 new columns to the existing table. The columns were created WITHOUT Not Null With Default. IT worked fine in Basic environments. But when we moved the code(Front end Java code and BAckend Mainframe) to prod. The web screen crashed. No values were there in the table.

Is it because of the creation of field without not null with default?

After this we updated the table by running a update query and inserted some values into the new columns. But still screen crashes. Any Ideas or suggestions in this issue?

And also i wanted to know, If a web screen crashes, do we need to restart anything..
Reply With Quote
  #2 (permalink)  
Old 08-25-10, 11:10
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
This sounds like an application issue. Does your java application code know that the table definitions have changed?
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 08-25-10, 11:28
MarkhamDBA MarkhamDBA is offline
Registered User
 
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
do you know that if a col is nullable you need to check null indicator when you fetch in your application program?
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS
Reply With Quote
  #4 (permalink)  
Old 08-25-10, 12:13
vijay_87 vijay_87 is offline
Registered User
 
Join Date: Aug 2010
Posts: 2
We checked the same code.. in dev and qa... but it is not working for prod environment only... Java has the code for the new fields... and the code hasn't handle the null for new fields.. i doubting the screen is crashing because of this null.. Is it true? Please give your suggestion on this...

And now we ran a Update query to update the values in Prod table. Now new fields has values in it. But still the screen is crashing.Thanks

It crashed before running the update query and right now we updated the table with values. still crashing... Do we need to restart the server or Web for this. OR a normal refresh in browser can handle this thing?

Last edited by vijay_87; 08-25-10 at 12:17.
Reply With Quote
  #5 (permalink)  
Old 08-25-10, 14:21
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
This is a DB2 forum, not an application or web forum.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #6 (permalink)  
Old 08-25-10, 15:17
watchman watchman is offline
Registered User
 
Join Date: Aug 2010
Posts: 1
Quote:
Originally Posted by vijay_87 View Post
Hi Team,

We created 5 new columns to the existing table. The columns were created WITHOUT Not Null With Default. IT worked fine in Basic environments. But when we moved the code(Front end Java code and BAckend Mainframe) to prod. The web screen crashed. No values were there in the table.

Is it because of the creation of field without not null with default?

After this we updated the table by running a update query and inserted some values into the new columns. But still screen crashes. Any Ideas or suggestions in this issue?

And also i wanted to know, If a web screen crashes, do we need to restart anything..
Maybe an application problem!
Reply With Quote
  #7 (permalink)  
Old 08-25-10, 15:34
dav1mo dav1mo is offline
Registered User
 
Join Date: Dec 2007
Location: Richmond, VA
Posts: 782
what is the sql error you are getting? Are there any messages in your DB2 diag log or in the mstr?
Dave
Reply With Quote
  #8 (permalink)  
Old 08-25-10, 16:05
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Fix your application.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On