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 > -802 error for count(*) query for a DB2 table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-20-09, 07:22
srilata83 srilata83 is offline
Registered User
 
Join Date: Aug 2009
Posts: 6
-802 error for count(*) query for a DB2 table

Hi,
I am trying to query a big table which contains huge data,I just tried to check the no of records of table, i have run the query for COUNT(*) in QMF, But i am not getting the result , i am getting an error -802 ,saying commit frequency must be greater than zero.
Is there any way of getting the count?
I tried in platinum tool also, but its N/A over there in 'No. of rows' field.

Please help me in this regard.
Reply With Quote
  #2 (permalink)  
Old 08-20-09, 07:57
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Try using the DB2 CLP.

Andy
Reply With Quote
  #3 (permalink)  
Old 08-20-09, 08:08
srilata83 srilata83 is offline
Registered User
 
Join Date: Aug 2009
Posts: 6
Hi Andy, actually I m using zos v8.
Reply With Quote
  #4 (permalink)  
Old 08-20-09, 10:40
Lenny77 Lenny77 is offline
Registered User
 
Join Date: Jul 2009
Location: NY
Posts: 886
Try to use

count_big(*) instead of count(*)

Lenny
Reply With Quote
  #5 (permalink)  
Old 08-20-09, 23:43
srilata83 srilata83 is offline
Registered User
 
Join Date: Aug 2009
Posts: 6
Thanks a lot Lenny

Really today I learnt a new thing.
Reply With Quote
  #6 (permalink)  
Old 08-21-09, 10:42
Lenny77 Lenny77 is offline
Registered User
 
Join Date: Jul 2009
Location: NY
Posts: 886
Quote:
Originally Posted by srilata83
Thanks a lot Lenny

Really today I learnt a new thing.
No problem !
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