Quote:
Originally Posted by BELLO4KA
Take a look at DB2_OVERRIDE_BPF registry variable. You can set on the target system.
|
Thanks Bella, I also found this article from 2009 --
SQL1218N There are no pages currently available in bufferpool "". SQLSTATE=57011
So if I understand correctly, even though the rollforward currently works on our backup server.. it may not work in future restores using the values of the hidden bufferpools so it's better to use the DB2_OVERRIDE_BPF variable?
Should the variable be set before the database image is restored and then change bufferpools / unset variable after the rollforward? Something like this --
db2 "force applications all"
db2 terminate
db2stop
db2start
[[ SET DB2_OVERRIDE_BPF variable ]]
db2 restore db dbname incremental automatic from /DBDATA/backup/ taken at `ls -trd /DBDATA/backup/* | tail -1 | xargs basename | cut -d '.' -f 6` logtarget /home/db2inst1/logs/ REPLACE EXISTING || {
echo "inc restore failed";
exit 1
}
db2 rollforward db dbname to end of logs and stop overflow log path \(/home/db2inst1/logs\) || {
echo "inc rollforward failed";
exit 1
}
[[ ALTER BUFFERPOOL COMMANDS -- SPECIFIC TO BACKUP SERVER ]]
[[ UNSET DB2_OVERRIDE_BPF variable ]]
------------------------------------------------------------------------------------
If we have 8GB of memory, what's an ideal value of DB2_OVERRIDE_BPF? thanks!!