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 > nohup db2 -tvf issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-01-08, 16:43
db2rocks db2rocks is offline
Registered User
 
Join Date: Jan 2008
Posts: 45
nohup db2 -tvf issue

Hi friends,

I am kicking off two sql scripts at a time::

nohup db2 -tvf script1.sql &//contains RUNSTATS on tables for SAMPLE database

nohup db2 -tvf script2.sql &// contains a simple connect to database command


I was surprised to notice that script2.sql is waiting for script1.sql to finish...Any idea why there is no parallelism in execution here....FYI the OS i use is linux..Thanks
Reply With Quote
  #2 (permalink)  
Old 04-01-08, 16:53
SuperKuper SuperKuper is offline
Registered User
 
Join Date: Apr 2008
Posts: 51
It is probably hanging somewhere in the operating system - not DB2. Lets capture output from both scripts and post here. Is there any response from DB2 to CONNECT in the second script?
__________________
db2topgun.com
Reply With Quote
  #3 (permalink)  
Old 04-01-08, 17:42
db2rocks db2rocks is offline
Registered User
 
Join Date: Jan 2008
Posts: 45
Hi SuperKuper

Thanks for your reply..

Output of the first script...

RUNSTATS completed successfully...

RUNSTATS completed successfully...

It is still running and the second script was not even able to connect to database and waiting until the first one is done
Reply With Quote
  #4 (permalink)  
Old 04-01-08, 18:04
SuperKuper SuperKuper is offline
Registered User
 
Join Date: Apr 2008
Posts: 51
I tried it myself and see what you mean. You can open a problem with IBM on this - it is clearly a bug. Or I will when I have time. Come to think of it, I have seen this before but never got around to getting them to fix it. Thanks for the reminder
__________________
db2topgun.com
Reply With Quote
  #5 (permalink)  
Old 04-01-08, 18:14
db2rocks db2rocks is offline
Registered User
 
Join Date: Jan 2008
Posts: 45
I opened a PMR today but no reply from the folks yet..Please let me know if you find any info abt that..Thanks
Reply With Quote
  #6 (permalink)  
Old 04-01-08, 20:52
SuperKuper SuperKuper is offline
Registered User
 
Join Date: Apr 2008
Posts: 51
PMR 49632 180 000 .... lets see if they realize that these are duplicates
__________________
db2topgun.com
Reply With Quote
  #7 (permalink)  
Old 04-01-08, 23:26
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Did you try it without the comments (// and following text on the line)?
__________________
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
  #8 (permalink)  
Old 04-01-08, 23:50
SuperKuper SuperKuper is offline
Registered User
 
Join Date: Apr 2008
Posts: 51
Yes, I did. Never use //. It hangs consistently.
__________________
db2topgun.com
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