473,385 Members | 2,015 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,385 software developers and data experts.

Error activating a database/cannot allocate agent

Hi there,

I previously posted this to the DB2-Express-C forum at ibm.com, but
this group seems to get more traffic so I've reposted it here. The
previous (off-group) post is at the URL below and unless anyone can't
access it I won't repost the attachments inline here.

http://www-128.ibm.com/developerwork...=170162&cat=81

The post read:

I'm running a 32-bit Fedora 4 linux box with 2GB of RAM. I've
installed DB2 Express-C 9.12 manually, and while I can create a
database using

db2 "CREATE DATABASE src_prod AUTOMATIC STORAGE YES ON /home/db2inst1/
data USING CODESET UTF-8 TERRITORY GB PAGESIZE 8 K"

I cannot then activate it using

db2 "ACTIVATE DATABASE src_prod"

I get the following error:

to stdout:
SQL1225N The request failed because an operating system process,
thread, or
swap space limit was reached. SQLSTATE=57049

db2inst1.nfy:
ADM7519W DB2 could not allocate an agent. The SQLCODE is "-1225".

I'm no linux guru or DB2 guru, but I'm willing to have a damn good
try. However, I've got to the point where I don't know what to do -
fiddle with the kernel settings or simply play with the DB2 registry
settings? I've had a good google around, but found no concrete steps I
can take to get out of this problem.

I've attached a tar.gz file containing the files

db2diag.log
db2inst1.nfy
db2 "get dbm cfg" dbm.cfg
/etc/sysctl.conf

Hopefully these can help someone get me out of this hole! Installing
DB2 shouldn't be this hard! It worked fine on my Ubuntu laptop...

Cheers

Michael

Jul 26 '07 #1
4 6776
Michael,

I also had similar problems running DB2 9.1 on FC4 after applying a fixpack
(1 or 2).
For me running DB2 9.1 without any fixpacks works OK. (uninstall and install
again. Problem behaviour is the same for Express-C as for Express and ESE).

If you don't want "restriction" you should try a different Linux
distribution.

Knôkmans

"michaelg" <mi************@gmail.comwrote in message
news:11**********************@o61g2000hsh.googlegr oups.com...
Hi there,

I previously posted this to the DB2-Express-C forum at ibm.com, but
this group seems to get more traffic so I've reposted it here. The
previous (off-group) post is at the URL below and unless anyone can't
access it I won't repost the attachments inline here.

http://www-128.ibm.com/developerwork...=170162&cat=81

The post read:

I'm running a 32-bit Fedora 4 linux box with 2GB of RAM. I've
installed DB2 Express-C 9.12 manually, and while I can create a
database using

db2 "CREATE DATABASE src_prod AUTOMATIC STORAGE YES ON /home/db2inst1/
data USING CODESET UTF-8 TERRITORY GB PAGESIZE 8 K"

I cannot then activate it using

db2 "ACTIVATE DATABASE src_prod"

I get the following error:

to stdout:
SQL1225N The request failed because an operating system process,
thread, or
swap space limit was reached. SQLSTATE=57049

db2inst1.nfy:
ADM7519W DB2 could not allocate an agent. The SQLCODE is "-1225".

I'm no linux guru or DB2 guru, but I'm willing to have a damn good
try. However, I've got to the point where I don't know what to do -
fiddle with the kernel settings or simply play with the DB2 registry
settings? I've had a good google around, but found no concrete steps I
can take to get out of this problem.

I've attached a tar.gz file containing the files

db2diag.log
db2inst1.nfy
db2 "get dbm cfg" dbm.cfg
/etc/sysctl.conf

Hopefully these can help someone get me out of this hole! Installing
DB2 shouldn't be this hard! It worked fine on my Ubuntu laptop...

Cheers

Michael

Jul 26 '07 #2
On 26 Jul, 11:04, "Knokmans" <knokm...@nospam.comwrote:
I also had similar problems running DB2 9.1 on FC4 after applying a fixpack
(1 or 2).
For me running DB2 9.1 without any fixpacks works OK. (uninstall and install
again. Problem behaviour is the same for Express-C as for Express and ESE).

If you don't want "restriction" you should try a different Linux
distribution.

Knôkmans
Hi Knôkmans,

Thanks for your comment. This is a clean install of the 9.012 DB2
Express-C for Linux. Hopefully if the problem is not confined to my
server it may get some more visibility.

Cheers

Michael

Jul 26 '07 #3
Michael,

If you enter the command /opt/ibm/db2/V9.1/bin/db2level it will give info
about the software level.
DB2 v9.1 without fixpack has info like this: Informational tokens are "DB2
v9.1.0.0"
Yours might be like this: Informational tokens are "DB2 v9.1.0.2"
That means fixpack 2 !!

I dont' know if downloading Express-C v9.1 fixpack 0 is still possible.
If you also have non-free DB2 software you might download DB2 Express (not
the -C version) FP 0 from Passport Advantage
Before starting the install procedure replace the .lic file which is in the
....../db2/license directory with db2exp_uw.lic which is provided by the
Express-C version you already have.
Install the DB2 software and you have an Express-C running

I don't know how simple you can arrange a different distribution... might be
more simple than the above story..

Knôkmans

"michaelg" <mi************@gmail.comwrote in message
news:11**********************@22g2000hsm.googlegro ups.com...
On 26 Jul, 11:04, "Knokmans" <knokm...@nospam.comwrote:
I also had similar problems running DB2 9.1 on FC4 after applying a
fixpack
(1 or 2).
For me running DB2 9.1 without any fixpacks works OK. (uninstall and
install
again. Problem behaviour is the same for Express-C as for Express and
ESE).

If you don't want "restriction" you should try a different Linux
distribution.

Knôkmans
Hi Knôkmans,

Thanks for your comment. This is a clean install of the 9.012 DB2
Express-C for Linux. Hopefully if the problem is not confined to my
server it may get some more visibility.

Cheers

Michael
Jul 26 '07 #4
On 26 Jul, 14:45, "Knokmans" <knokm...@nospam.comwrote:
Michael,

If you enter the command /opt/ibm/db2/V9.1/bin/db2level it will give info
about the software level.
DB2 v9.1 without fixpack has info like this: Informational tokens are "DB2
v9.1.0.0"
Yours might be like this: Informational tokens are "DB2 v9.1.0.2"
That means fixpack 2 !!

I dont' know if downloading Express-C v9.1 fixpack 0 is still possible.
If you also have non-free DB2 software you might download DB2 Express (not
the -C version) FP 0 from Passport Advantage
Before starting the install procedure replace the .lic file which is in the
...../db2/license directory with db2exp_uw.lic which is provided by the
Express-C version you already have.
Install the DB2 software and you have an Express-C running

I don't know how simple you can arrange a different distribution... mightbe
more simple than the above story..

Knôkmans
Thanks - I ran the command and got the following output:

DB21085I Instance "db2inst1" uses "32" bits and DB2 code release
"SQL09012"
with level identifier "01030107".
Informational tokens are "DB2 v9.1.0.2", "special_17369",
"MI00183_17369", and
Fix Pack "2".
Product is installed at "/opt/ibm/db2/V9.1".

I do have an older download for linux on my laptop but would rather
fix the problem than "downgrade" to an earlier release. Surely someone
must have an idea about which settings to change so that either more
agents are available or DB2 doesn't request so many!

Cheers

Michael

Jul 26 '07 #5

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

Similar topics

0
by: Markus Enders | last post by:
Hi everybody, we are using version 7 of db2 and need to replicate a database. We are using two web-based systems, which access two different databases. One system is used for import data...
3
by: jcgeorge | last post by:
I am getting this: RETCODE : ZRC=0x8B59000D=-1957101555=SQLKF_NOMEM_BUFFER_HEAP "No memory available in 'FCMBP Heap'" DIA8300C A memory heap error has occurred. and this FUNCTION: DB2 UDB,...
1
by: rveloso | last post by:
Hi all, i'm having a really nasty problem with popen. I have the following code : --------------------- .... FILE *PD; .... sprintf(fname,"/usr/bin/gzip -dc %s/%s",dirname,dp->d_name); .......
13
by: hn.ft.pris | last post by:
Hi: I have the following simple program: #include<iostream> using namespace std; int main(int argc, char* argv){ const double L = 1.234; const int T = static_cast<const int>(L); int arr;
1
by: jesmi | last post by:
my code is: U]employee.cfm <html> <head> <title>Employee List</title> </head> <body> <h1>Employee List</h1>
1
by: td0g03 | last post by:
I have no idea why am I getting an error C2664: 'parseInput' : cannot convert parameter 2 from 'main::WORD_STRUCT ' to 'struct WORD_STRUCT ' #include <stdio.h> #include <stdlib.h> #include...
2
by: saneman | last post by:
I get the following error when I try to allocate the below code: cannot allocate an array of constant size 0 int main() { int dim = 3; int b; return 0; }
5
by: Abhinay | last post by:
hi, I have created a echo server which accepts request from client , for each client request processing my server creates new thread but after creating 305 thread it says "Cannot allocate memory"...
5
by: Manikrag | last post by:
Hi Team, I have copied one ASP.NET application on a new server and configured it all.Now I am getting below error when I am trying to authenticate users thru LdapAuthentication function. This...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.