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 > sql1478w for new database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-23-09, 20:11
L_DBA_L L_DBA_L is offline
Registered User
 
Join Date: Sep 2009
Posts: 49
sql1478w for new database

Hi,

I can't connect to a brand new database, getting sql1478w - defined buffer pool can't be started. I'm using 9.5 on Linux.

Thank a lot.
Reply With Quote
  #2 (permalink)  
Old 09-23-09, 20:47
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You have run out of free memory on the machine. DB2 cannot use virtual memory, real memory must be available.

You will need to temporarily override your bufferpool sizes, then you can connect into the database and alter bufferpool size(s) via SQL, then reset the override back to null (so the override is no longer in effect).

These are the steps:

db2stop
db2set DB2_OVERRIDE_BPF=1000
db2start
db2 connect to <database-name>
db2 ALTER bufferpool <oversized-bufferpool-name> SIZE <some reasonable number of pages based on real memory available>
db2 terminate
db2stop
db2set DB2_OVERRIDE_BPF=
db2start
db2 connect to <database-name>
__________________
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
  #3 (permalink)  
Old 09-23-09, 20:52
L_DBA_L L_DBA_L is offline
Registered User
 
Join Date: Sep 2009
Posts: 49
Marcus_A, I did not create any bufferpools. All I did was to issue - create database command.
Reply With Quote
  #4 (permalink)  
Old 09-23-09, 21:35
L_DBA_L L_DBA_L is offline
Registered User
 
Join Date: Sep 2009
Posts: 49
I want to correct myself, I can connect but with sql1478w. I checked the bufferpools - default one exists with a very large size. The size is almost 1.5 gig. I don't understand why it was created using this size if I only have 2 gig of memory on this server.
Reply With Quote
  #5 (permalink)  
Old 09-24-09, 00:05
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Keep in mind that if you receive the SQL1478W error message, the defined buffer pools could not be started. Instead, one very small buffer pool for each page size has been started by DB2. So your database will perform very slowly with such as small bufferpool size when you connect with that error messge. Please change the bufferpool size of the default bufferpool (that you mentioned is defined to 1.5 GB) to something more reasonable and restart DB2.
__________________
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
  #6 (permalink)  
Old 09-24-09, 19:46
L_DBA_L L_DBA_L is offline
Registered User
 
Join Date: Sep 2009
Posts: 49
I lowered the buffer pool size and then connected without sql1478w. I then decided to drop the database and created it again - used create database command. Database was created okay and then connect generated sql1478w. I don't understand why.
Reply With Quote
  #7 (permalink)  
Old 09-24-09, 21:40
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Try creating your db with the "autoconfigure apply none" option
Reply With Quote
  #8 (permalink)  
Old 09-24-09, 22:57
L_DBA_L L_DBA_L is offline
Registered User
 
Join Date: Sep 2009
Posts: 49
okay, I dropped the database and created using this option. Connected to the database without sql1478w. Why do I need to use this option?
Reply With Quote
  #9 (permalink)  
Old 09-25-09, 01:28
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by L_DBA_L
okay, I dropped the database and created using this option. Connected to the database without sql1478w. Why do I need to use this option?
There is a bug in DB2. I believe it has been fixed in FP4a.
__________________
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
  #10 (permalink)  
Old 09-25-09, 01:51
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
Quote:
Originally Posted by Marcus_A
There is a bug in DB2. I believe it has been fixed in FP4a.
IBM IZ41200: CONFIGURATION ADVISOR SETTINGS DURING CREATE DB MAY CAUSE CONNECTIONS TO RETURN SQL1489W - United States
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
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