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 > Multipage file allocation

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-30-04, 04:40
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Multipage file allocation

Hi,

On page 243 in DB2 UDB Exploitation of the Windows Environment redbook
it states:


Code:
Multipage file allocation

When using SMS table spaces, DB2 uses the operating system file system to
allocate space. By default this space allocation is acquired in small increments
that can introduce a great deal of overhead when insert activity for a table 
space is high. Multipage file allocation is used to improve insert performance 
for SMS table spaces. If enabled, all SMS table spaces are affected: there is 
no selection possible for individual SMS table spaces.

The default for the parameter is No — multipage file allocation is not enabled.
Following database creation, the parameter may be set to Yes, which indicates
that multipage file allocation is enabled. This is done using the db2empfa tool.

The db2empfa tool can be executed from a command prompt, with the name of
the database to enable multipage file allocation as a parameter as follows:
DB2EMPFA SAMPLE
Important: Once set to Yes, the parameter cannot be changed back to No.
How to check out if database uses multipage file allocation or single page file allocation (the default)?

My system:
DB2 v7.2 FP5 on Windows XP SP1

Thanks,
Grofaty

Last edited by grofaty; 08-30-04 at 04:47.
Reply With Quote
  #2 (permalink)  
Old 08-30-04, 05:08
vidyaraok vidyaraok is offline
Registered User
 
Join Date: Aug 2004
Posts: 15
you can use

get db cfg for db-alias


and observe the value for parameter " Multi-page file allocation enabled "
Reply With Quote
  #3 (permalink)  
Old 08-30-04, 05:22
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,

Thanks a lot. It works fine for me.
On Windows: get db cfg for db-alias | find "Multi"

Grofaty
Reply With Quote
  #4 (permalink)  
Old 11-10-04, 08:06
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,

1. I checked the multi-page parameter: get db cfg for <database> | find "Multi". It was set to NO.
2. I made a backup of database.
3. I enabled multi-page allocation with command: db2empfa <database>
4. I checked the multi-page parameter: get db cfg for <database> | find "Multi". It was set to YES.
5. I tested multi-page allocation, it works fine
6. I restored the database from backup image.
7. I checked the multi-page parameter: get db cfg for <database> | find "Multi". It was set to YES???

Why is Multi-page paramters set to YES after restore of backup image? I have expected that this parameter after step 7 would be set to NO. Why isn't it?

Thanks,
Grofaty

Last edited by grofaty; 11-10-04 at 08:10.
Reply With Quote
  #5 (permalink)  
Old 11-10-04, 09:04
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
when you restore over an existing database, the database config parameters of the exisiting parameters are retained ... If you want the original config settings of the database being restored, then restore as a new db

HTH

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #6 (permalink)  
Old 11-10-04, 12:11
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
I believe that starting with version 8.1 or 8.2 (I don't remember which), multipage file allocation is now the default. But it may not get changed if you upgrade from a previous release.
__________________
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
  #7 (permalink)  
Old 11-11-04, 01:15
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,

sathyaram_s thanks a lot. I have tested and it works fine with "create database using restore".

Marcus_A, thanks a lot. As I have tested databases and the multipage allocation is the default setting in db2 v8.2 and "one page allocation" is default setting in v7.2 and v8.1. I still use v7.2 so multipage allocation in default is set to multipage=NO.

Thanks to you both, no more help is needed.

Thanks,
Grofaty

Last edited by grofaty; 11-11-04 at 02:58.
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