Skip to Main Content
IBM Data Platform Ideas Portal for Customers


This portal is to open public enhancement requests against products and services offered by the IBM Data Platform organization. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:


Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,


Post your ideas

Post ideas and requests to enhance a product or service. Take a look at ideas others have posted and upvote them if they matter to you,

  1. Post an idea

  2. Upvote ideas that matter most to you

  3. Get feedback from the IBM team to refine your idea


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

IBM Employees should enter Ideas at https://ideas.ibm.com



Status Under review
Workspace Db2
Components Db2 on-premise
Created by Guest
Created on Nov 18, 2025

Add a way to wait for bufferpool creation when creating tablespaces

What we do when creating tablespaces as part of migration files (think flyway, but any similar utility will be relevant) is to create a bufferpool and then create the tablespace. Example:


create bufferpool dummy
size 5000
pagesize 8k;

create tablespace dummy
pagesize 8192
managed by automatic storage
autoresize yes
initialsize 200 M
extentsize 64
prefetchsize 128
bufferpool dummy;


Problem is that more often than not, the bufferpool is not ready to be used when the tablespace is created. This means that the tablespace will be using - in this example - IBMSYSTEMBP8K until next time Db2 allocates bufferpools, say after db2stop; db2start.


Our current workaround is to add a sleep and a commit (in the case of flyway this can be achieved by creating the bufferpool in a separate migration file), example:


cat file_1

create bufferpool dummy2
size 5000
pagesize 8k;

call DBMS_LOCK.SLEEP(10);

cat file_2

create tablespace dummy2
pagesize 8192
managed by automatic storage
autoresize yes
initialsize 200 M
extentsize 64
prefetchsize 128
bufferpool dummy2;


This is however error prune since the amount of time needed to allocate the bufferpool varies with the size and the amount of resources like cpu availible at the server. AFAIK there is no way to tell if the bufferpool is ready to be used or not. Two possible ways for a solution would be:


A procedure that can be called:


cat file_1

create bufferpool dummy ....;

CALL WAIT_FOR_BP_CREATION('DUMMY2');


cat file_2

create tablespace dummy2 ...;



Add an option in create tablespace statement:


create tablespace dummy2

...

bufferpool dummy2 WITH WAIT;


In my experiments, both the sleep and the commit is necessary to prevent the phenomena, but I'm not sure if that is just bad luck. I don't think it would be a good idea to do an implicit commit in any of these suggestions, but perhaps a note of the necessity of a commit (if that is the case) could be added to the documentation.


FWIW, there is an old thread at https://dba.stackexchange.com/questions/262775/new-bufferpool-not-being-used and also https://chat.stackexchange.com/rooms/106007/discussion-between-lennart-and-mark-barinstein where this phenomena is discussed

Needed By Quarter
  • Admin
    Siji Daniel
    Nov 28, 2025

    Thank you for submitting your request. We are reviewing this. Please expect an update in the portal within 90 days.
    Thank you.