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 > db2move import is running out of heap space

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-19-04, 04:38
bagsakan bagsakan is offline
Registered User
 
Join Date: May 2004
Posts: 9
Angry db2move import is running out of heap space

hi,

i exported the contents of a database using the db2move. however i am getting this error when i try to import the exported data:

*** SQLCODE: -973 - SQLSTATE: 57011
*** SQL0973N Not enough storage is available in the "APP_CTL_HEAP" heap to process the statement. SQLSTATE=57011


i have already maxed out the target db's pckcachesz and app_ctl_heap_sz variables to 64000. i have already restarted the whole computer to make sure that the changes did take effect.

im runing DB2 EE v7.2.5 on a Windows2K Professional machine if it helps. i find it rather ironic that DB2 cannot import what it has exported.

regards...
Reply With Quote
  #2 (permalink)  
Old 07-20-04, 23:54
bagsakan bagsakan is offline
Registered User
 
Join Date: May 2004
Posts: 9
*bump*

anybody know of any setting to tell DB2 to commit the records after a certain limit is set (commit after every 1000 records read by db2move import)?

regards...
Reply With Quote
  #3 (permalink)  
Old 07-21-04, 01:04
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
There is a parm called "COMMITCOUNT n" parm on the IMPORT command. You can find the details in the Command Reference Manual. I recommend setting "n" to about 1000 -2000.

For best import performance, you should also increase your log buffer size (logbufsz) significantly. If you do increase the log buffer, you must increase the dbheap by the same amount.
__________________
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
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