473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

ALTER BUFFERPOOL with no DB connect

Hi!

Is it possible to alter tablespace so that you don't connect to the
database?
The problem I have is this. I got a DB backup from a machine with 16 Gb of
RAM. There was a bufferpool set to use 10 Gb of RAM. Now I have to put it
on a machine with only 8 Gb of RAM. The restore is OK, but I'd like to
decrease that bufferpool to only use 4 Gb.

Best regards,
Kovi

--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
May 29 '07 #1
3 5214
Gregor Kovač wrote:
Hi!

Is it possible to alter tablespace so that you don't connect to the
database?
The problem I have is this. I got a DB backup from a machine with 16 Gb of
RAM. There was a bufferpool set to use 10 Gb of RAM. Now I have to put it
on a machine with only 8 Gb of RAM. The restore is OK, but I'd like to
decrease that bufferpool to only use 4 Gb.
You want to change the tablespace or the bufferpool?

You could simply start DB2 and activate the database. If there is not
sufficient RAM, DB2 will start with very small bufferpools (usually
hidden). Now you can change the BP and re-activate the database with the
new, reduced size.

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
May 29 '07 #2
Knut Stolze wrote:
Gregor Kovač wrote:
>Hi!

Is it possible to alter tablespace so that you don't connect to the
database?
The problem I have is this. I got a DB backup from a machine with 16 Gb
of RAM. There was a bufferpool set to use 10 Gb of RAM. Now I have to put
it on a machine with only 8 Gb of RAM. The restore is OK, but I'd like to
decrease that bufferpool to only use 4 Gb.

You want to change the tablespace or the bufferpool?

You could simply start DB2 and activate the database. If there is not
sufficient RAM, DB2 will start with very small bufferpools (usually
hidden). Now you can change the BP and re-activate the database with the
new, reduced size.
We are on a 64-bit machine and Windows and when you connect to the database
the pagefile (Windows virtual memory) grows for Gbs and it takes almost an
hour for connect to succeed.
I just thought that there is a command like activate database with default
bufferpool :)))

Best regards,
Kovi

--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
May 29 '07 #3
Gregor Kovač wrote:
Knut Stolze wrote:
>Gregor Kovač wrote:
>>Hi!

Is it possible to alter tablespace so that you don't connect to the
database?
The problem I have is this. I got a DB backup from a machine with 16 Gb
of RAM. There was a bufferpool set to use 10 Gb of RAM. Now I have to put
it on a machine with only 8 Gb of RAM. The restore is OK, but I'd like to
decrease that bufferpool to only use 4 Gb.
You want to change the tablespace or the bufferpool?

You could simply start DB2 and activate the database. If there is not
sufficient RAM, DB2 will start with very small bufferpools (usually
hidden). Now you can change the BP and re-activate the database with the
new, reduced size.

We are on a 64-bit machine and Windows and when you connect to the database
the pagefile (Windows virtual memory) grows for Gbs and it takes almost an
hour for connect to succeed.
I just thought that there is a command like activate database with default
bufferpool :)))
I pinged backstage and here is the recommendation:
DB2_OVERRIDE_BPF
Operating system: All
Default: not set, Values: a positive numeric number of pages OR
<entry>[;<entry>…] where <entry>=<buffer pool ID>,<number of pages>
This variable specifies the size of the buffer pool, in pages, to be
created at database activation, rollforward recovery, or crash recovery.
It is useful when memory constraints cause failures to occur during
database activation, rollforward recovery, or crash recovery. The memory
constraint could arise either in the rare case of a real memory shortage
or, because of the attempt by the database manager to allocate a large
buffer pool, in the case where there were inaccurately configured buffer
pools. For example, when even a minimal buffer pool of 16 pages is not
brought up by the database manager, try specifying a smaller number of
pages using this environment variable. The value given to this variable
overrides the current buffer pool size.
You can also use <entry>[;<entry>…] where <entry>=<buffer pool
ID>,<number of pagesto temporarily change the size of all or a subset
of the buffer pools so that they can start up.
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
May 29 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Li Kao | last post by:
After incrementally increasing SORTHEAP (and the commensurate increase in SHEAPTHRES) and *slightly* reducing the bufferpool size, I find that my query is no longer taking advantage of async IO for...
5
by: Paul | last post by:
Hi, is there any way to know the content of the bufferpool : - space usage not present in snapshot - tables actually cached in and number of pages, same for index ... thx
3
by: Paul Samundar | last post by:
Hi All, Consider a scenario of (let's say) total of 8 MLNs. How can I change BP size (which is defined over all of these 8 MLNs) on one particular node (or subset of nodes). I understand that...
5
by: Hemant Shah | last post by:
Folks, I am not sure what I am doing wrong, but We have an transaction that does some serious calculation on small chink of data over and over again. It selects few rows from the table...
3
by: dotyet | last post by:
Hi Everyone, I am in a very strange situation, and am looking for suggestions to tackle it. I have a 10 gig database on 64-bit windows 2003 running platform. The database has about 5 gigs of...
9
by: aczapran | last post by:
Everything I read on DB2 indicates that the bufferpool is a pool of database pages used to speed up database access. It is controlled by us, when we specify how many pages we would like to have...
0
by: Ian | last post by:
dcruncher4@aim.com wrote: The issue here is that you're hitting bufferpool 4097. This is the "hidden" 8k bufferpools that will be used if your system does not have enough memory to support...
3
by: dunleav1 | last post by:
In 9.1 and 9.5 (Linux 64 bit) when a buffer pool is set to self- tuning, how are blocks configured in respect to blocked vs non-blocked when self-tuning is set to on? (ie) I have one bufferpool...
0
by: dot.yet | last post by:
Hi Everyone, environment: DB2 9.5 WSE with FP 2a Solaris 10 u5 - 64-bit SMP - 2 Quad CPUS - total 8 cores 16 GB RAM SAMPLE database Solaris Containers
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.