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 > Load Insert Vs Statistics Yes option

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-30-06, 03:38
nagbuchi nagbuchi is offline
Registered User
 
Join Date: Feb 2005
Location: Bangalore,India
Posts: 39
Question Load Insert Vs Statistics Yes option

I am loading the data and would like to take the statistics at load time.I am using the below load command and receiving a error message.

db2 "LOAD FROM in.txt OF DEL INSERT INTO Test_tbl STATISTICS YES"

SQL3525N The "STATISTICS" option is incompatible with the "INSERT " option.

I am able to run the LOAD.. REPLACE..STATISTICS YES successfully.Problem is coming only when appending the data to the table.

I am using UDB V8.2 ,Fixpack : 9

Please advise if you have any thoughts.

Thanks in advance,
Reply With Quote
  #2 (permalink)  
Old 08-30-06, 13:13
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Statistics are only valid for the entire table, not just the rows being inserted.
__________________
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-31-06, 09:30
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
IIRC, the limitation is documented!
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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